Skip to main content


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] Sat, 12 January 2013 00:09 Go to next message
Alan Underwood is currently offline Alan UnderwoodFriend
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 14:43 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
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 21:36 Go to previous messageGo to next message
Alan Underwood is currently offline Alan UnderwoodFriend
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 23:00 Go to previous messageGo to next message
Alan Underwood is currently offline Alan UnderwoodFriend
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 21:36 Go to previous messageGo to next message
Alan Underwood is currently offline Alan UnderwoodFriend
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 07:41 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
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 Apr 26 00:56:24 GMT 2024

Powered by FUDForum. Page generated in 0.03015 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top