Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster dev » Adding username and password to maven provider
Adding username and password to maven provider [message #999380] Fri, 11 January 2013 19:09 Go to next message
Alan Underwood is currently offline Alan Underwood
Messages: 37
Registered: October 2010
Member
Tom

I'd like to add username and password properties to the maven provider so that those credentials can be passed in the connection to the maven repositories. This is driven by the fact that, at work, we no longer have anonymous access to our maven repo.

I know this can be done by putting them in the URL but if I do, then any failed connections are visible in the debug output with the username and password. This is particularly a problem on the hudson build server, whose maven login should not be visible to all.

I'd like to suggest two optional property elements that can be children of the mavenProvider element in the rmap, with key="maven.username" and key="maven.password".
These properties will need to be expandable from the query scope, as I expect users will supply their username and password from the properties file given in the cquery.

This would then be used to create the connection context, in preference to the url if the properties are present.

I'll put a patch together if that's okay, in the next couple of days.

Regards

Alan
Re: Adding username and password to maven provider [message #1001352 is a reply to message #999380] Wed, 16 January 2013 09:43 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3215
Registered: July 2009
Senior Member
Hi Alan,

I think this sounds like a good idea. Please enter a bugzilla for it.
I'm looking forward to your patch.

- thomas

On 2013-01-12 01:09, Alan Underwood wrote:
> Tom
>
> I'd like to add username and password properties to the maven provider
> so that those credentials can be passed in the connection to the maven
> repositories. This is driven by the fact that, at work, we no longer
> have anonymous access to our maven repo.
>
> I know this can be done by putting them in the URL but if I do, then any
> failed connections are visible in the debug output with the username and
> password. This is particularly a problem on the hudson build server,
> whose maven login should not be visible to all.
>
> I'd like to suggest two optional property elements that can be children
> of the mavenProvider element in the rmap, with key="maven.username" and
> key="maven.password".
> These properties will need to be expandable from the query scope, as I
> expect users will supply their username and password from the properties
> file given in the cquery.
>
> This would then be used to create the connection context, in preference
> to the url if the properties are present.
>
> I'll put a patch together if that's okay, in the next couple of days.
>
> Regards
>
> Alan
Re: Adding username and password to maven provider [message #1001524 is a reply to message #1001352] Wed, 16 January 2013 16:36 Go to previous messageGo to next message
Alan Underwood is currently offline Alan Underwood
Messages: 37
Registered: October 2010
Member
Bug raised. Work in progress.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=398334
Re: Adding username and password to maven provider [message #1002091 is a reply to message #1001524] Thu, 17 January 2013 18:00 Go to previous messageGo to next message
Alan Underwood is currently offline Alan Underwood
Messages: 37
Registered: October 2010
Member
Patch submitted.
Re: Adding username and password to maven provider [message #1007449 is a reply to message #999380] Tue, 05 February 2013 16:36 Go to previous messageGo to next message
Alan Underwood is currently offline Alan Underwood
Messages: 37
Registered: October 2010
Member
Hello! Anything happening?
Confused
Re: Adding username and password to maven provider [message #1007692 is a reply to message #1007449] Thu, 07 February 2013 02:41 Go to previous message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3215
Registered: July 2009
Senior Member
On 2013-02-05 22:36, Alan Underwood wrote:
> Hello! Anything happening?
> :?

You patch was accepted and a build is under way. Sorry for the slowness.

- thomas
Previous Topic:Multiple properties files
Next Topic:Lista de aprova
Goto Forum:
  


Current Time: Fri Aug 01 07:53:09 EDT 2014

Powered by FUDForum. Page generated in 0.05713 seconds