Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.5
-
Component/s: maven-plugin
-
Labels:None
-
Environment:Should be platform independent solution.
-
Complexity:Intermediate
-
Number of attachments :
Description
Currently, Maven 2.1.x and 2.2.x have support for storing encrypted passwords in the server.xml file and decrypting them for authentication to a specific maven repository. This task proposes a similar approach so that users can store their encrypted password in the server.xml file and the SCM plugin will decrypt and authenticate to the SCM server. I would assume this approach would use the same Maven crypto mechanism to encrypt/decrypt the passwords.
Attachments
Issue Links
| This issue relates to: | ||||
| MRELEASE-648 | Putting SVN password in settings.xml doesn't support password encryption |
|
|
|
| This issue is related to: | ||||
| MNG-4384 | Can not use the plexus component org.sonatype.plexus.components.sec.dispatcher.SecDispatcher since maven 2.2.0 |
|
|
|
It appears that the decryption only exists in the DefaultMaven.java (wagon dispatch) today. I'm adding it to AbstractScmMojo.java (conditionally) so that in Maven 2.1 or higher we can encrypt SCM passwords.
Full description of the process and code changes:
http://ambientideas.com/blog/index.php/2009/08/encrypted-scm-passwords-in-maven/
Patch attached.