Skip to content

Commit

Permalink
[MRELEASE-1103] Decryption of server password in settings.xml failed …
Browse files Browse the repository at this point in the history
…(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
  • Loading branch information
cstamas authored and michael-o committed Apr 20, 2023
1 parent f96c6bc commit 2480664
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ private MavenCryptoException(String message, Throwable cause) {
public MavenCrypto(DefaultSecDispatcher secDispatcher, PlexusCipher plexusCipher) {
this.secDispatcher = secDispatcher;
this.plexusCipher = plexusCipher;

// Adjust the default path (def path != maven path)
this.secDispatcher.setConfigurationFile("~/.m2/settings-security.xml");
}

public String decrypt(String value) throws MavenCryptoException {
Expand Down

0 comments on commit 2480664

Please sign in to comment.