Maven依赖图 [英] Maven dependency graph
本文介绍了Maven依赖图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有办法获得给定项目集的Maven依赖图(如果可能,图形化),而没有绘制第三方依赖项?或者我选择退出我不感兴趣的依赖项?
Is there a way to have a Maven dependency graph of a given set of projects (if possible, graphical), without having 3rd party dependencies drawn too? Or where I opt out the dependencies I'm not interested in?
我想将工具/插件指向多个POM文件并查看描述这些项目之间的依赖关系。
I'd like to point the tool/plugin at a number of POM files and see a description of the dependencies between those projects.
推荐答案
如果你使用 mvn依赖:tree
,您可以使用 -Dexcludes
和 -Dincludes
指定要排除或包含的文件。输出是依赖关系的ASCII艺术风格描述。
If you use mvn dependency:tree
, you can specify files to exclude or include with -Dexcludes
and -Dincludes
. The output is an ASCII-art style depiction of the dependencies.
参见 docs 了解更多信息。
这篇关于Maven依赖图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文