You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2019/06/02 14:20:01 UTC

[jira] [Closed] (MANT-63) get phase uses snapshot repo for non-snapshot dependencies

     [ https://issues.apache.org/jira/browse/MANT-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MANT-63.
------------------------------
    Resolution: Auto Closed
      Assignee: Robert Scholte

Plugin is now retired, the issue won't be fixed.

> get phase uses snapshot repo for non-snapshot dependencies
> ----------------------------------------------------------
>
>                 Key: MANT-63
>                 URL: https://issues.apache.org/jira/browse/MANT-63
>             Project: Maven Ant Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Sebb
>            Assignee: Robert Scholte
>            Priority: Major
>
> 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 was sent by Atlassian JIRA
(v7.6.3#76005)