Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-419

dependency:list, dependency:build-classpath and dependency:tree result with the different dependencies order

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 3.0.1
    • Component/s: build-classpath, resolve, tree
    • Labels:
      None

      Description

      dependency:list and dependency:build-classpath goals doesn't resolve dependencies in the order declared in the project pom.xml.
      It should respect the given order as it is done for dependency:tree

        Activity

        Hide
        michael-o Michael Osipov added a comment -

        Fixed with r1791544.

        Show
        michael-o Michael Osipov added a comment - Fixed with r1791544 .
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build maven-plugins #8918 (See https://builds.apache.org/job/maven-plugins/8918/)
        MDEP-419 dependency:list, dependency:build-classpath and dependency:tree result with the different dependencies order

        MavenProject properly provides a set of dependencies in the order they appear in the POM. MDEP uses HashSet to copy those dependencies around. HashSet does not retain this order and causes confusion with the users. Use LinkedHashSet instead. (michaelo: http://svn.apache.org/viewvc/?view=rev&rev=1791544)

        • (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/PurgeLocalRepositoryMojo.java
        • (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java
        • (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/analyze/AnalyzeDepMgt.java
        • (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/analyze/AnalyzeDuplicateMojo.java
        • (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/fromDependencies/AbstractDependencyFilterMojo.java
        • (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/resolvers/AbstractResolveMojo.java
        • (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/resolvers/ResolvePluginsMojo.java
        • (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/utils/filters/DestFileFilter.java
        • (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/utils/filters/MarkerFileFilter.java
        • (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/utils/translators/ClassifierTypeTranslator.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build maven-plugins #8918 (See https://builds.apache.org/job/maven-plugins/8918/ ) MDEP-419 dependency:list, dependency:build-classpath and dependency:tree result with the different dependencies order MavenProject properly provides a set of dependencies in the order they appear in the POM. MDEP uses HashSet to copy those dependencies around. HashSet does not retain this order and causes confusion with the users. Use LinkedHashSet instead. (michaelo: http://svn.apache.org/viewvc/?view=rev&rev=1791544 ) (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/PurgeLocalRepositoryMojo.java (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/analyze/AnalyzeDepMgt.java (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/analyze/AnalyzeDuplicateMojo.java (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/fromDependencies/AbstractDependencyFilterMojo.java (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/resolvers/AbstractResolveMojo.java (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/resolvers/ResolvePluginsMojo.java (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/utils/filters/DestFileFilter.java (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/utils/filters/MarkerFileFilter.java (edit) maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/utils/translators/ClassifierTypeTranslator.java

          People

          • Assignee:
            michael-o Michael Osipov
            Reporter:
            boulayj Julien Boulay
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development