在 Eclipse 中,当我转到 Maven 依赖关系层次结构页面时,我得到的输出指出了哪些冲突导致版本被忽略:
但是,如果我使用依赖:树 http://maven.apache.org/plugins/maven-dependency-plugin/usage.html,这被省略了,我只看到实际使用的 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
后来实际引用的版本......
+- commons-collections:commons-collections:jar:3.1:compile
有没有办法让 dependency:tree 输出因冲突而省略的版本?
Thanks!
是的,您可以通过设置来获得省略的工件verbose https://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html#verbose归因于true
:
是否在序列化依赖树中包含省略的节点。
该属性默认为false
。在命令行上,您将拥有
mvn dependency:tree -Dverbose=true
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)