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 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