Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.7
-
Fix Version/s: 2.0.8
-
Component/s: dependencies task
-
Labels:None
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
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="$
" 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
Activity
Herve Boutemy
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | MANTTASKS-84.diff [ 28622 ] |
Herve Boutemy
made changes -
| Fix Version/s | 2.0.8 [ 13618 ] | |
| Patch Submitted | [Yes] |
Herve Boutemy
made changes -
| Description |
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 |
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 |
| Assignee | Herve Boutemy [ hboutemy ] | |
| Original Estimate | 0 minutes [ 0 ] | |
| Remaining Estimate | 0 minutes [ 0 ] |
Herve Boutemy
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |