Dennis,
I have, and do, use this command, but it does not add the version number to the plugin when no version for the plugin exist in the POM. Also, when a plugin is not defined in the POM, it is not listed.

Paul Spencer

Dennis Lundberg wrote:
I find this command helpful:

mvn help:effective-pom

It prints the entire pom of your artifact, after inheritance and interpolation has been applied.

Paul Spencer wrote:
I would like to get an inventory of plugins used by my POM for the purpose of explicitly setting their version in my POM. This will make builds much more reliable. The help:describe can do this for one plugin at a time, but this is tedious and make the incorrect assumption I know all of the plugins used.

A command like the following would produce a list of plugins, including the GroupId, ArtifactId, and version used by a specific goal.
  mvn help:describe -Dgoal=test

Going a step further, adding a -DupdatePom=true to actually add the plugin information to the POM wound make the process much easier.

Paul Spencer


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to