简体   繁体   English

如何只为多模块项目中的特定模块生成依赖树 - MAVEN

[英]How do I generate dependency tree only for the specific module in a multi module project - MAVEN

I have multi-module project.我有多模块项目。 say for example : x |_b |_c When I run the command mvn dependency : tree This will output dependency trees for the modules "b" and "c"比如说:x |_b |_c 当我运行命令 mvn dependency : tree 这将输出模块“b”和“c”的依赖树

I know we can get specific module dependency tree by using this command mvn -f modulename/pom.xml dependency:tree我知道我们可以通过使用这个命令 mvn -f modulename/pom.xml dependency:tree 来获取特定的模块依赖树

Is there a way to generate a dependency tree for specific module using only its groupId,artifactId, and version.有没有办法仅使用其 groupId、artifactId 和 version 为特定模块生成依赖树。

What about关于什么

mvn dependency:tree -pl modulename

? ?

This should run the command only on the desired module.这应该只在所需的模块上运行命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM