Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.0.2, 2.0.4, 2.0.6
-
Fix Version/s: 2.0.7
-
Component/s: dependencies task
-
Labels:None
-
Number of attachments :
Description
Recall that in ant it handles dependencies different on the command line for no rational reason other than history. So this command runs a target that uses m2:depends twice:
ant test-classpath test-classpath
This fails with an error the second time round, claiming that the dest path already exists
build.xml
init:
test-classpath:
unspecified:unspecified:jar:0.0 (selected)
jtidy:jtidy:jar:4aug2000r7-dev (selected)
junit:junit:jar:3.8.1 (selected)
cactus:cactus:jar:13-1.7.1 (selected)
cargo:cargo:jar:0.5 (selected)
cactus:cactus-ant:jar:13-1.7.1 (selected)
commons-logging:commons-logging:jar:1.0.4 (selected)
httpunit:httpunit:jar:1.6 (selected)
nekohtml:nekohtml:jar:0.9.1 (selected)
xerces:xerces:jar:2.4.0 (selected)
servletapi:servletapi:jar:2.3 (selected)
rhino:js:jar:1.5R4.1 (selected)
xerces:xmlParserAPIs:jar:2.2.1 (selected)
xerces:xercesImpl:jar:2.6.2 (selected)
aspectj:aspectjrt:jar:1.2.1 (selected)
commons-httpclient:commons-httpclient:jar:2.0.2 (selected)
commons-logging:commons-logging:jar:1.0.3 (removed - nearer found: 1.0.4)
httpunit:httpunit:jar:1.6 (selected)
nekohtml:nekohtml:jar:0.9.1 (selected)
xerces:xerces:jar:2.4.0 (selected)
servletapi:servletapi:jar:2.3 (selected)
rhino:js:jar:1.5R4.1 (selected)
xerces:xmlParserAPIs:jar:2.2.1 (selected)
xerces:xercesImpl:jar:2.6.2 (selected)
init:
test-classpath:
unspecified:unspecified:jar:0.0 (selected)
jtidy:jtidy:jar:4aug2000r7-dev (selected)
junit:junit:jar:3.8.1 (selected)
cactus:cactus:jar:13-1.7.1 (selected)
cargo:cargo:jar:0.5 (selected)
cactus:cactus-ant:jar:13-1.7.1 (selected)
commons-logging:commons-logging:jar:1.0.4 (selected)
httpunit:httpunit:jar:1.6 (selected)
nekohtml:nekohtml:jar:0.9.1 (selected)
xerces:xerces:jar:2.4.0 (selected)
servletapi:servletapi:jar:2.3 (selected)
rhino:js:jar:1.5R4.1 (selected)
xerces:xmlParserAPIs:jar:2.2.1 (selected)
xerces:xercesImpl:jar:2.6.2 (selected)
aspectj:aspectjrt:jar:1.2.1 (selected)
commons-httpclient:commons-httpclient:jar:2.0.2 (selected)
commons-logging:commons-logging:jar:1.0.3 (removed - nearer found: 1.0.4)
httpunit:httpunit:jar:1.6 (selected)
nekohtml:nekohtml:jar:0.9.1 (selected)
xerces:xerces:jar:2.4.0 (selected)
servletapi:servletapi:jar:2.3 (selected)
rhino:js:jar:1.5R4.1 (selected)
xerces:xmlParserAPIs:jar:2.2.1 (selected)
xerces:xercesImpl:jar:2.6.2 (selected)
[ext:libraries] An error has occurred while processing the Maven artifact tasks.[ext:libraries] Diagnosis:
[ext:libraries]
[ext:libraries] Reference ID test.compile.classpath already exists
Recommend: check for the output ID existing and skip the process with nothing more than a message. Its the Ant way ![]()
Issue Links
| This issue duplicates: | ||||
| MANTTASKS-37 | The Dependencies task of Maven Antlib should override an existing path reference instead of failing |
|
|
|
this is fixed in SVN with
MANTTASKS-37and will be released with Maven Ant Tasks 2.0.7MANTTASKS-37and will be released with Maven Ant Tasks 2.0.7