Skip to content

Commit 3930b8e

Browse files
committed
chore: added org.jboss.shrinkwrap.resolver.maven.ignoreDecryptionProblems system property to ignore maven 4 decryption issues
1 parent 7faa4a5 commit 3930b8e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ ShrinkWrap Resolvers allows you to override any programmatic configuration via S
232232
- `maven.legacyLocalRepo`: Flag whether to ignore origin tracking for artifacts present in local repository.
233233
- `org.jboss.shrinkwrap.resolver.maven.skipCompilation`: Flag to skip compilation of resolved artifacts (true/false) - default is false.
234234
- `org.jboss.shrinkwrap.resolver.maven.disableProjectLocal`: Flag to disable Maven 4 project-local repository (true/false) - default is false.
235+
- `org.jboss.shrinkwrap.resolver.maven.ignoreDecryptionProblems`: Flag to ignore decryption problems in settings-security*.xml files (true/false) - default is false.
235236

236237

237238
## Embedded Maven

maven/impl-maven/src/main/java/org/jboss/shrinkwrap/resolver/impl/maven/bootstrap/MavenSettingsBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ private Settings decryptPasswords(Settings settings) {
229229
SettingsDecryptionRequest request = new DefaultSettingsDecryptionRequest(settings);
230230
SettingsDecryptionResult result = decrypter.decrypt(request);
231231

232-
if (!result.getProblems().isEmpty()) {
232+
if (!result.getProblems().isEmpty()
233+
&& !Boolean.getBoolean("org.jboss.shrinkwrap.resolver.maven.ignoreDecryptionProblems")) {
233234
StringBuilder sb = new StringBuilder("Found ").append(result.getProblems().size())
234235
.append(" problems while trying to decrypt settings configuration.");
235236

0 commit comments

Comments
 (0)