How can you display the Maven dependency tree for the *plugins* in your project?

前端 未结 2 1028
一个人的身影
一个人的身影 2020-12-07 16:12

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

2条回答
  •  渐次进展
    2020-12-07 16:46

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

    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
    

提交回复
热议问题