You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Anders Hammar (JIRA)" <ji...@codehaus.org> on 2013/01/17 09:48:13 UTC

[jira] (MDEP-342) maven-dependency-plugin goal build-classpath is not written in correct order.

    [ https://jira.codehaus.org/browse/MDEP-342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=317462#comment-317462 ] 

Anders Hammar commented on MDEP-342:
------------------------------------

Either I can't reproduce, or it migth be me missing something.

Using Maven 3.0.4 on Mac OS 10.8.2 with Apple JDK 1.6.0_37, I get (with attached test project):

mvn org.apache.maven.plugins:maven-dependency-plugin:2.4:build-classpath

/Users/anders/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/anders/.m2/repository/args4j/args4j/2.0.16/args4j-2.0.16.jar:/Users/anders/.m2/repository/com/thoughtworks/xstream/xstream/1.2.2/xstream-1.2.2.jar:/Users/anders/.m2/repository/xpp3/xpp3_min/1.1.3.4.O/xpp3_min-1.1.3.4.O.jar

The same result with v2.6 of the plugin as well. And this is also the order I see in the POM (including transitive deps).

In the manifest of the jar I get:
Class-Path: lib/commons-logging-1.1.1.jar lib/args4j-2.0.16.jar lib/xs
 tream-1.2.2.jar lib/xpp3_min-1.1.3.4.O.jar

All seems fine!?
                
> maven-dependency-plugin goal build-classpath is not written in correct order.
> -----------------------------------------------------------------------------
>
>                 Key: MDEP-342
>                 URL: https://jira.codehaus.org/browse/MDEP-342
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: build-classpath
>    Affects Versions: 2.4
>            Reporter: Anders Lindgren
>         Attachments: classpathorderproblem.zip
>
>
> When running the goal build-classpath, the order of the dependencies in the output is not the same as in the pom.
> The dependency:tree is however producing output in correct order.
> Also, when producing an executable jar using the maven-jar-plugin with addClasspath set to true, the result is correct.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira