All I can say is I've added a lot of support for this sort of thing to maven trunk code, which will be the basis for Maven 2.1 eventually. In the debug output, it has a log like this:

Our build plan is:

1. ...
2. ...

Alternatively, there is a new plugin in the maven sandbox for querying this information in 2.1, called the maven-lifecycle-plugin. Using it, you could run:

mvn lifecycle:build-plan

I know, I know, that's not helpful for maven 2.0.x users. I don't have any good advice for you in 2.0.x, other than what's already been said:

1. Take a look at http://svn.apache.org/repos/asf/maven/components/ tags/maven-2.0.7/maven-core/src/main/resources/META-INF/plexus/ components.xml and look for "<role-hint>jar</role-hint>" or similar.
    ( you can just search for that string in the file)

2. To get a complete picture including those plugins from the POM, you may also need to use help:effective-pom

3. If there isn't a specific lifecycle mapping for the lifecycle (clean, default, site) for your packaging (from step 1), you may need to look at the component configuration for: org.apache.maven.lifecycle.DefaultLifecycleExecutor (you can just search for that class name to find it, and look at the <lifecycles> configuration).

You might also peruse: http://maven.apache.org/guides/introduction/ introduction-to-the-lifecycle.html

Hope that helps.

-john

On Feb 13, 2008, at 6:58 PM, Ryan H. wrote:

Hello Folks,

A quick question: is there a way to get the list of ALL maven plug- ins and their versions that are used by maven build life cycle? Maven uses tons of standard plug-ins explicitly and inexplicitly. Is there a way to get the
whole list of it for a given build?

Thanks
Ryan

---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john
rss: http://feeds.feedburner.com/ejlife/john


Reply via email to