I don't need the Mojo to get injected with thoses components, but a plexus
component used by My Mojo :
public class MyMojo
extends AbstractMojo
/**
* @component
*/
protected ClasspathBuilder buildClasspathUtil;
...
/**
* @plexus.component role="org.codehaus.mojo.gwt.shell.ClasspathBuilder"
*/
public class ClasspathBuilder
{
/**
* @plexus.requirement ???${localRepository}" ???
*/
private ArtifactRepository localRepository;
2008/11/26 Dan Tran <[EMAIL PROTECTED]>
> /**
> * @parameter default-value="${localRepository}"
> * @required
> * @readonly
> * @since 1.1
> */
> private ArtifactRepository localRepository;
>
>
> in
> http://svn.codehaus.org/mojo/trunk/mojo/build-helper-maven-plugin/src/main/java/org/codehaus/mojo/buildhelper/RemoveLocalArtifactMojo.java
>
>
> or perhaps i may miss what you asked :-)
>
> -D
>
> On Wed, Nov 26, 2008 at 6:05 AM, nicolas de loof <[EMAIL PROTECTED]>
> wrote:
> > build-helper does not define any plexus component !?
> > Did I miss something ?
> >
> > 2008/11/26 Dan Tran <[EMAIL PROTECTED]>
> >
> >> see build-helper-maven-plugin as example.
> >>
> >> -D
> >>
> >> On Wed, Nov 26, 2008 at 2:41 AM, nicolas de loof <[EMAIL PROTECTED]>
> >> wrote:
> >> > As my plugin is becoming complex, I've splitted it into plexus
> >> components,
> >> > injected in the Mojo.I need this plexus component to acces
> >> > the localRepository. How to configure the @component annotation ???
> >> > Same issue to get the MavenProject.
> >> >
> >> > Nicolas
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>