I have a couple of mojos which need to look up the first the mirror
configured under settings.xml.  Maven Settings seems to be the right place
to look this up . and To make reusable, I created a plexus component which
has a method with Settings as its argument

Thanks

-Dan

On Tue, Mar 3, 2015 at 12:27 PM, Jason van Zyl <[email protected]> wrote:

> I would also strongly urge you not to do this. The settings.xml is a CLI
> configuration mechanism that populates the MavenExecutionRequest. I've been
> trying very hard to get the Settings model out of the core because it does
> not belong in the core. Anything you need is in the MavenExecutionRequest
> so we need to make that the standard way to get information. What do you
> need exactly?
>
> On Mar 2, 2015, at 8:18 PM, Dan Tran <[email protected]> wrote:
>
> > I have a component that requires access to Settings where it is available
> > at MOJO level via @Parameter(defaultValue = "${settings}", readonly =
> true)
> >
> > So instead of have Mojo to pass the Settings to my plexus component
> method,
> >
> >
> > can my plexus component get Settings as an Injection?
> >
> > any sample?
> >
> > Thanks
> >
> > -Dan
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder, Takari and Apache Maven
> http://twitter.com/jvanzyl
> http://twitter.com/takari_io
> ---------------------------------------------------------
>
> Be not afraid of growing slowly, be only afraid of standing still.
>
>  -- Chinese Proverb
>
>
>
>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to