如何在项目中显示* plugins *的Maven依赖树? [英] How can you display the Maven dependency tree for the *plugins* in your project?

查看:139
本文介绍了如何在项目中显示* plugins *的Maven依赖树?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

常见的Maven调试技术是使用 mvn依赖:树查看项目依赖关系图。

A common Maven debugging technique is to use mvn dependency:tree to view the graph of project dependencies.

但是,此列表显示项目依赖项,而不是每个插件的插件依赖关系树。有没有办法从项目中做到这一点?

However, this list shows the project dependencies, not the plugin dependency tree for each plugin. Is there some way to do this from a project?

推荐答案

通过mvn -X输出会间接打印出信息。目前没有其他选项可以获取Maven-Plugin的依赖项。

The output via mvn -X will printout the information indirectly. Currently there is no other option to get the dependencies of a Maven-Plugin.

更新
您可以使用以下命令获取插件依赖项列表( resolve-plugin goal 来自依赖项插件):

Update You can use the following command to get a list of plugin dependencies (resolve-plugin goal from dependencies plugin):

mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:resolve-plugins

较短的版本是(指定插件版本是一个坏习惯)

The shorter version is (and it is a bad habit to specify plugin versions)

mvn dependency:resolve-plugins

这篇关于如何在项目中显示* plugins *的Maven依赖树?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆