[
http://jira.codehaus.org/browse/MANTTASKS-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Herve Boutemy updated MANTTASKS-84:
-----------------------------------
Attachment: MANTTASKS-84.diff
Here is a testcase and fix
> VersionMapper does not work on SNAPSHOT dependencies where
> uniqueVersion="true"
> -------------------------------------------------------------------------------
>
> Key: MANTTASKS-84
> URL: http://jira.codehaus.org/browse/MANTTASKS-84
> Project: Maven 2.x Ant Tasks
> Issue Type: Bug
> Components: dependencies task
> Affects Versions: 2.0.7
> Reporter: Herve Boutemy
> Fix For: 2.0.8
>
> Attachments: MANTTASKS-84.diff
>
>
> When a dependency is SNAPSHOT and uniqueVersion="true", the version is not
> removed from the filename, nor the directory if to="flatten"
> for example, adding in test-deps target of sample.build.xml the following:
> {code:xml}
> <copy todir="target/files/versionMapperFlatten">
> <fileset refid="dependency.fileset"/>
> <mapper classpathref="maven-ant-tasks.classpath"
> classname="org.apache.maven.artifact.ant.VersionMapper"
> from="${dependency.versions}" to="flatten" />
> </copy>
> {code}
> creates
> /target/files/versionMapperFlatten/it/ant-tasks/snapshotUniqueTrue/2.0.7-SNAPSHOT/snapshotUniqueTrue-2.0.7-20070610.180356-1.jar
> where it should be /target/files/versionMapperFlatten/snapshotUniqueTrue.jar
--
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