There is an addition to the enforcer that can handle this:
http://jira.codehaus.org/browse/MENFORCER-15

It will be available in version 1.0, which has not yet been released.

Wayne Fay wrote:
The original email sounds like a bug report or rather enhancement
request. Those things should be filed in the Maven JIRA.

And I agree that this is not currently available, but might be a nice
thing to add. So I'd file this as an Improvement in JIRA against the
help plugin, and perhaps they can add it.

Wayne

On 3/21/08, Paul Spencer <[EMAIL PROTECTED]> wrote:
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]



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




--
Dennis Lundberg

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

Reply via email to