Further thoughts,
Dont think it is possible since how would plexus IOC know localRepo
path? Even if you can inject Local Respository into your component
using all default configuration, it is not safe either? what happens
if user changes local path in settings.xml....
Perhaps, you may want to passing localRepository from your MOJO into
your plexus component
-D
On Wed, Nov 26, 2008 at 7:38 AM, nicolas de loof <[EMAIL PROTECTED]> wrote:
> Does "hand written" component.xml have some hack available ?
>
> 2008/11/26 nicolas de loof <[EMAIL PROTECTED]>
>
>> I do.
>>
>>
>> 2008/11/26 Dan Tran <[EMAIL PROTECTED]>
>>
>>> umm, are you using plexus-maven-plugin to generate compoment.xlm?
>>>
>>> -D
>>>
>>> On Wed, Nov 26, 2008 at 7:31 AM, nicolas de loof <[EMAIL PROTECTED]>
>>> wrote:
>>> > "Component descriptor cannot be found in the component repository:
>>> > org.apache.maven.artifact.repository.ArtifactRepository."
>>> >
>>> > 2008/11/26 Dan Tran <[EMAIL PROTECTED]>
>>> >
>>> >> Ah, I total missed it :-) , sorry dont have an answer yet
>>> >>
>>> >> Perhaps=?
>>> >> /**
>>> >> * @plexus.requirement
>>> >> role="org.apache.maven.artifact.repository.ArtifactRepository"
>>> >> */
>>> >> private ArtifactRepository localRepository;
>>> >>
>>> >> On Wed, Nov 26, 2008 at 7:01 AM, nicolas de loof <[EMAIL PROTECTED]>
>>> >> wrote:
>>> >> > 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]
>>> >> >>
>>> >> >>
>>> >> >
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> 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]
>>>
>>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]