Re: Getting a mojo instance from the embedder

2008-02-24 Thread Jason van Zyl
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

Getting a mojo instance from the embedder

2008-02-24 Thread Carlos Sanchez
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