You seem to be missing the quotes around the expression.

On 1/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Sorry for the confusion. I originally tried:
>
>
>     /**
>      * Local repository.
>      *
>      * @parameter expression=${localRepository}
>      * @required
>      * @readonly
>      */
>     private ArtifactRepository localRepository;
>
> and my field localRepository is null. What do I have to do that the field is
> populated with a reference to my artifact repository object?
>
>
> Brett Porter <[EMAIL PROTECTED]> wrote:
>  ${settings.localRepository} is a string. ${localRepository} should
> work as an ArtifactRepository.
>
> - Brett
>
> On 1/6/06, [EMAIL PROTECTED] wrote:
> > I'm not able to get the pointer to my local repository in my Mojo. I
> looked at maven-projectreports-plugin, and it uses the expression:
> ${localRepository}.
> >
> > e.g.
> >
> > /**
> > * Local repository.
> > *
> > * @parameter expression=${settings.localRepository}
> > * @required
> > * @readonly
> > */
> > private ArtifactRepository localRepository;
> >
> >
> > I tried this in my Mojo and guess what, the field is null.
> >
> > I set the pointer to my local repository using the environment variable
> MAVEN_REPOSITORY to point to R:\. I tried to set it in
> MAVEN_HOME/conf/settings.xml, but no success either.
> >
> > How can I guess access to it?
> >
> > Thanks,
> > Chris
> >
> >
> >
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to