Display omitted versions depending on maven: tree?

In Eclipse, when I go to the Maven dependency hierarchy page, I get an output that says which conflicts caused the versions:

eclipse maven version

However, if I use dependency: tree , this is omitted, and I see only used evrsions:

| +- commons-httpclient:commons-httpclient:jar:3.1:compile | +- commons-codec:commons-codec:jar:1.4:compile | +- commons-io:commons-io:jar:2.4:compile | +- commons-net:commons-net:jar:3.1:compile | +- javax.servlet:servlet-api:jar:2.5:compile 

And later on actually referencing versions ...

 +- commons-collections:commons-collections:jar:3.1:compile 

Is there a way to get the dependency: a tree for outputting versions omitted for conflict?

Thanks!

+5
source share
1 answer

Yes, you can have artifacts omitted by setting the verbose attribute to true :

Whether to include the omitted nodes in the serialized dependency tree.

This attribute is false by default. At the command prompt you will have

 mvn dependency:tree -Dverbose=true 
+5
source

Source: https://habr.com/ru/post/1243711/


All Articles