Issue Details (XML | Word | Printable)

Key: MANTTASKS-84
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Herve Boutemy
Reporter: Herve Boutemy
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Ant Tasks

VersionMapper does not work on SNAPSHOT dependencies where uniqueVersion="true"

Created: 26/Jul/07 03:20 AM   Updated: 19/Oct/07 03:52 PM   Resolved: 19/Oct/07 03:52 PM
Component/s: dependencies task
Affects Version/s: 2.0.7
Fix Version/s: 2.0.8

Time Tracking:
Not Specified

File Attachments: 1. File MANTTASKS-84.diff (2 kB)


Testcase included: yes
Patch Submitted: Yes


 Description  « Hide

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



Herve Boutemy added a comment - 26/Jul/07 03:32 AM

Here is a testcase and fix