开发者

How to get all Maven plugins & their versions for a specific phase?

开发者 https://www.devze.com 2023-02-18 16:15 出处:网络
Do you know of a way to list all Maven plugins (with their 开发者_高级运维versions) that are going to be executed for a particular phase? This should include all plugins set in all parents of the curr

Do you know of a way to list all Maven plugins (with their 开发者_高级运维versions) that are going to be executed for a particular phase? This should include all plugins set in all parents of the current project.


One method would be to run:

mvn help:effective-pom

That will show you the projects POM after interpolation and inheritance have been applied. It should be fairly easy to look in the build configuration and determine the configured plugins for a phase from there.

http://maven.apache.org/plugins/maven-help-plugin/effective-pom-mojo.html

0

精彩评论

暂无评论...
验证码 换一张
取 消