You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Mark Derricutt <ma...@talios.com> on 2011/04/20 11:23:18 UTC
Supporting securitySettings.xml from a custom mojo
Hey all,
Does anyone have any pointers to what one needs to do to work with/support
securitySettings.xml from within a custom mojo?
In my mojo I'm looking up a server with:
final Server mavenServer = session.getSettings().getServer(server);
but only see the encrypted strings and don't seem to find any classes that
look like it would be security related.
Is there some service/component I need to pull into my mojo so I can decrypt
arbitrary strings or is this some deep internal maven magic that's not
exposed in a useful way currently?
Cheers,
Mark
--
"Great artists are extremely selfish and arrogant things" — Steven Wilson,
Porcupine Tree
Re: Supporting securitySettings.xml from a custom mojo
Posted by Mark Derricutt <ma...@talios.com>.
Excellent! Only a slight difference to what I had originally when wildy
guessing ( missing the role hinting ).
Cheers,
Mark
--
"Great artists are extremely selfish and arrogant things" — Steven Wilson,
Porcupine Tree
On Wed, Apr 20, 2011 at 11:28 PM, Brett Porter <br...@apache.org> wrote:
>
> On 20/04/2011, at 7:52 PM, Benjamin Bentmann wrote:
>
> > Mark Derricutt wrote:
> >
> >> Does anyone have any pointers to what one needs to do to work
> with/support
> >> securitySettings.xml from within a custom mojo?
> >
> > The comments and links in http://jira.codehaus.org/browse/MNG-4384should provide some good pointers.
>
> I dropped an example in here, as I had been meaning to use this myself:
> http://svn.apache.org/repos/asf/maven/sandbox/trunk/examples/plugins/maven-security-mojo
>
> - Brett
>
> --
> Brett Porter
> brett@apache.org
> http://brettporter.wordpress.com/
> http://au.linkedin.com/in/brettporter
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
Re: Supporting securitySettings.xml from a custom mojo
Posted by Brett Porter <br...@apache.org>.
On 20/04/2011, at 7:52 PM, Benjamin Bentmann wrote:
> Mark Derricutt wrote:
>
>> Does anyone have any pointers to what one needs to do to work with/support
>> securitySettings.xml from within a custom mojo?
>
> The comments and links in http://jira.codehaus.org/browse/MNG-4384 should provide some good pointers.
I dropped an example in here, as I had been meaning to use this myself: http://svn.apache.org/repos/asf/maven/sandbox/trunk/examples/plugins/maven-security-mojo
- Brett
--
Brett Porter
brett@apache.org
http://brettporter.wordpress.com/
http://au.linkedin.com/in/brettporter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Supporting securitySettings.xml from a custom mojo
Posted by Benjamin Bentmann <be...@udo.edu>.
Mark Derricutt wrote:
> Does anyone have any pointers to what one needs to do to work with/support
> securitySettings.xml from within a custom mojo?
The comments and links in http://jira.codehaus.org/browse/MNG-4384
should provide some good pointers.
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org