You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Kenney Westerhof <ke...@apache.org> on 2006/06/12 14:50:34 UTC

plugin extensions

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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: plugin extensions

Posted by Brett Porter <br...@apache.org>.
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: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 


-- 
Brett Porter <br...@apache.org>
Apache Maven - http://maven.apache.org/
Better Builds with Maven - http://library.mergere.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org