maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SebbASF (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MANT-63) get phase uses snapshot repo for non-snapshot dependencies
Date Thu, 26 May 2011 14:19:22 GMT
get phase uses snapshot repo for non-snapshot dependencies
----------------------------------------------------------

                 Key: MANT-63
                 URL: http://jira.codehaus.org/browse/MANT-63
             Project: Maven 2.x Ant Plugin
          Issue Type: Bug
    Affects Versions: 2.3
            Reporter: SebbASF


Create dummy Maven project using mvn archetype:generate

mvn ant:ant

Generated script contains the following, which is correct:

{code}
<get src="http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar" 
     dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" 
     usetimestamp="false" 
     ignoreerrors="true"/>
{code}

Now add the following to the POM:

{code}
<parent>
  <groupId>org.apache</groupId>
  <artifactId>apache</artifactId>
  <version>9</version>
</parent>
{code}

mvn ant:ant

now generates:

{code}
    <get src="http://repository.apache.org/snapshots/junit/junit/3.8.1/junit-3.8.1.jar"

         dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" 
         usetimestamp="false" 
         ignoreerrors="true"/>
    <get src="http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar" 
         dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar" 
         usetimestamp="false" 
         ignoreerrors="true"/>
{code}

which means that the script will generate an error for the download.

The generated script should only generate one download, based on whether the version is a
SNAPSHOT or not.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message