How to get all Maven plugins & their versions for a specific phase?
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
精彩评论