Skip to content

Commit 2480664

Browse files
cstamasmichael-o
authored andcommitted
[MRELEASE-1103] Decryption of server password in settings.xml failed (works with 2.5.3)
Wrong file path used for master password file. Using plexus default, that is NOT same as Maven default. This closes #181
1 parent f96c6bc commit 2480664

File tree

1 file changed

+3
-0
lines changed
  • maven-release-manager/src/main/java/org/apache/maven/shared/release/util

1 file changed

+3
-0
lines changed

maven-release-manager/src/main/java/org/apache/maven/shared/release/util/MavenCrypto.java

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ private MavenCryptoException(String message, Throwable cause) {
6363
public MavenCrypto(DefaultSecDispatcher secDispatcher, PlexusCipher plexusCipher) {
6464
this.secDispatcher = secDispatcher;
6565
this.plexusCipher = plexusCipher;
66+
67+
// Adjust the default path (def path != maven path)
68+
this.secDispatcher.setConfigurationFile("~/.m2/settings-security.xml");
6669
}
6770

6871
public String decrypt(String value) throws MavenCryptoException {

0 commit comments

Comments
 (0)