“mvn dependency:tree” - 是否有可用于“详细”的等效物输出? [英] "mvn dependency:tree" - is there an equivalent available for "verbose" output?
问题描述
我有一个用例,我们想知道Maven项目每个依赖树获得的所有版本,即使它们被省略。
I have a use-case where we want to know all the versions that a Maven project gets per dependency tree even if they are omitted.
Per maven-dependency-plugin 文档verbose选项已经停止,因为Maven 3和依赖目标的treeMojo不能更好地显示省略的依赖项。
Per maven-dependency-plugin documentation the "verbose" option has been discontinued since Maven 3 and "tree" Mojo of dependency goal is not more able to show the omitted dependencies.
我正在使用Maven 3.5.0并尝试使用Maven 2.x的额外安装,但这会产生与Java 8应用程序的兼容性问题。
I am using Maven 3.5.0 and tried using an additional installation of Maven 2.x, but that yields compatibility issues with Java 8 apps.
是否存在在Maven 3中获取详细依赖关系树输出的方法?
Is there a way to get verbose dependency tree output in Maven 3?
推荐答案
您可以使用
mvn dependency:tree -X
请注意,此功能实际上使用了Maven 2算法并且可以在与Maven 3一起使用时给出错误的
结果。
这篇关于“mvn dependency:tree” - 是否有可用于“详细”的等效物输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!