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

2.10:tree -Dverbose shows "for duplicate" where "for conflict" is expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.10
    • None
    • tree
    • None

    Description

      I'm not sure what the support status of 2.10 is but here goes.  At the least maybe this is a documentation issue and -Dverbose should just be taken with a grain of salt, or perhaps this is a test case for any future implementations.

      In brief:
      Running mvn -B org.apache.maven.plugins:maven-dependency-plugin:2.10:tree -Dverbose shows "omitted for duplicate" where "omitted for conflict" is expected.

      I have attached a minimum pom.xml for reproducing the issue and the output from running the above command.  (Output shows a warning regarding inconsistencies between Maven 2 vs 3 but I'm presuming this is an issue regardless that pertains to version 2.)

      Points of note:

      • These two lines are contradictory because it shows 2.10.3 as the version used for "jackson-databind" but no conflict message is emitted when it tramples 2.12.3:
        • com.fasterxml.jackson.core:jackson-databind:jar:2.10.3:compile
        • (com.fasterxml.jackson.core:jackson-databind:jar:2.12.3:compile - omitted for duplicate)
      • Hierarchy printout shows "com.fasterxml.jackson.core:jackson-databind:jar:2.10.3:compile" as a dependency of "software.amazon.awssdk:sdk-core:jar:2.16.62:compile" but the pom for the former actually depends on version 2.12.3.

      Other noteworthy points:

      • "jackson-databind:jar:2.12.3" is three plus levels deep and first (via sts) while 2.10.3 is two and second (via java-jwt) so 2.10.3 wins by nearest-wins.  (Assuming this is how it works.)  The issue is only with the conflict message printout.

       

      Attachments

        1. tree-verbose.txt
          12 kB
          Atsushi Nakagawa
        2. pom.xml
          0.6 kB
          Atsushi Nakagawa

        Activity

          People

            Unassigned Unassigned
            antak Atsushi Nakagawa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: