You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@codehaus.org> on 2014/11/25 21:31:42 UTC
[jira] (MANTTASKS-20) Ant tasks does not support updatePolicy
correctly
[ https://jira.codehaus.org/browse/MANTTASKS-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MANTTASKS-20.
-----------------------------------
Resolution: Won't Fix
Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.
> Ant tasks does not support updatePolicy correctly
> -------------------------------------------------
>
> Key: MANTTASKS-20
> URL: https://jira.codehaus.org/browse/MANTTASKS-20
> Project: Maven Ant Tasks
> Issue Type: Bug
> Components: dependencies task
> Reporter: Chris Hilton
> Attachments: build.xml
>
>
> Attached is an example build.xml file. The relevant line is:
> <snapshots enabled="true" updatePolicy="never"/>
> I completely remove the com.alterpoint.thirdPart:example directory from my local repository and, in a separate project, I build a com.alterpoint.thirdParty:example:6.0-SNAPSHOT artifact and install it back into the local repository so it's the only version there. With regular Maven, because I have a locally installed snapshot and updatePolicy=never, nothing is downloaded and it references that snapshot directly. When I run the attached build file, though, I get the following output:
> F:\Temp\scratch>ant
> Buildfile: build.xml
> [INFO] snapshot com.alterpoint.thirdParty:example:6.0-SNAPSHOT: checking for updates from central
> Downloading: com/alterpoint/thirdParty/example/6.0-SNAPSHOT/example-6.0-20070110.005843-3.pom
> Transferring 2K
> Downloading: com/alterpoint/thirdParty/example/6.0-SNAPSHOT/example-6.0-20070110.005843-3.jar
> Transferring 17K
> dist:
> [copy] Copying 1 file to F:\Temp\scratch
> BUILD SUCCESSFUL
> Total time: 1 second
> F:\Temp\scratch>
> The Maven Ant tasks for some reason decide to download and update over my local SNAPSHOT even though updatePolicy=never is specified. Subsequent build deployments of that artifact remotely do not get downloaded, even if I rebuild a local SNAPSHOT. Only the first local SNAPSHOT, when it's the only SNAPSHOT, seems to cause this behavior. Unfortunately, that's a pretty common occurrence with our build system.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)