diff --git a/maven-release-manager/src/main/java/org/apache/maven/shared/release/util/MavenCrypto.java b/maven-release-manager/src/main/java/org/apache/maven/shared/release/util/MavenCrypto.java index cc9bb11b..ce357da0 100644 --- a/maven-release-manager/src/main/java/org/apache/maven/shared/release/util/MavenCrypto.java +++ b/maven-release-manager/src/main/java/org/apache/maven/shared/release/util/MavenCrypto.java @@ -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 {