On 24-Feb-08, at 12:19 PM, Carlos Sanchez wrote:
Is it possible to get a Mojo instance from the embedder ?
If you have the component in the classpath then yes, but Maven plugins
are special cases in that in Maven itself dynamically downloads the
plugin, makes it visible to the container
Is it possible to get a Mojo instance from the embedder ?
I started with
getPlexusContainer().lookup(org.apache.maven.plugin.Mojo.ROLE,"resources:resources")
and of course didnt work, I guess you'd need the embedder to process
the lifecycle first so the Mojos are available. Any hints?
--
I could