nabeel saabna created MDEP-741:
----------------------------------

             Summary: Omitting incorrect occurrence in tree
                 Key: MDEP-741
                 URL: https://issues.apache.org/jira/browse/MDEP-741
             Project: Maven Dependency Plugin
          Issue Type: Bug
          Components: tree
    Affects Versions: 3.1.2, 2.10, 2.8
            Reporter: nabeel saabna
         Attachments: mvn_verbose_compare.html, test-dependency-bug.zip

*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:
{code:java}
+- org.mockito:mockito-core:jar:3.6.28:test       
|  +- net.bytebuddy:byte-buddy:jar:1.10.18:compile
{code}
Should be part of the omitted dependencies according to dependency:tree 
-Dverbose=true

{code:java}
+- 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){code}
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)


 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to