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

Omitting incorrect occurrence in tree

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.8, 2.10, 3.1.2
    • None
    • tree
    • None

    Description

      Description:

      Dependency net.bytebuddy:byte-buddy:jar:1.10.18:compile appears only once under a test scope dependency  org.mockito:mockito-core:jar:3.6.28:test  when running mvn dependency:tree although it is a child of another dependency with scope compile

      Actual behavior:

      The same lines that appears when running dependency:tree command:

      +- org.mockito:mockito-core:jar:3.6.28:test       
      |  +- net.bytebuddy:byte-buddy:jar:1.10.18:compile
      

      Should be part of the omitted dependencies according to dependency:tree -Dverbose=true

      +- org.mockito:mockito-core:jar:3.6.28:test
      |  +- (net.bytebuddy:byte-buddy:jar:1.10.18:compile - scope updated from test; omitted for duplicate)

      Full compare report attached

      Expected behavior:
      net.bytebuddy:byte-buddy:jar:1.10.18:compile to appear in the correct place in the tree

      Attachments:
      test-dependency-bug.zip
      example project used to reproduce the issue and generate the report

      mvn_verbose_compare.html
      a compare report showing the issue
      expecting line 12 to appear only the right side (verbose mode)
      and line 18 to appear on both sides (appears only in verbose mode)

       

      Attachments

        1. test-dependency-bug.zip
          4 kB
          nabeel saabna
        2. mvn_verbose_compare.html
          65 kB
          nabeel saabna

        Activity

          People

            Unassigned Unassigned
            nabeels nabeel saabna
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: