It is an optimisation to ensure you don't need to look at all of the plugins first. Possibly a better alternative is to resolve plugins in two phases (get all the plugins up front, figure this stuff out, get dependencies of the plugins later when the code is actually executed). I think that is the only reason it is of benefit.

- Brett

Kenney Westerhof wrote:
Hi,

I was wondering if the <plugin><extensions>true couldn't be auto-detected
by maven by looking at the components.xml in the plugin's jar or something
similar, or wheter it could on by default.

It seems that when a plugin defines packaging/lifecycle extensions and you
do not specify <extensions>true</extensions> you get a
ComponentLookupException (Error looking up lifecycle mapping ...).

I haven't looked at the code yet but I'm wondering why this manual step is
necessary. The project model descriptor says it's disabled by default for
performance reasons. I don't understand why this can have a performance
impact, since maven-core also defines lifecycle mappings, and a plugin's
components.xml is processed anyway (again, I haven't looked at the code).

Btw, what's happened to the idea of having a discussion queue of 5 items
for design issues?

-- Kenney


--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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



--
Brett Porter <[EMAIL PROTECTED]>
Apache Maven - http://maven.apache.org/
Better Builds with Maven - http://library.mergere.com/

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

Reply via email to