Skip to content

Commit

Permalink
devonfw#704 Fix mvn test
Browse files Browse the repository at this point in the history
  • Loading branch information
KianRolf committed Oct 23, 2024
1 parent 7d2b778 commit 3c92f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/main/java/com/devonfw/tools/ide/tool/mvn/Mvn.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ private String getEncryptedPassword(String variable) {
String input = this.context.askForInput("Please enter secret value for variable " + variable + ":");

ProcessContext pc = this.context.newProcess().executable("mvn");
pc.addArg("-Dsettings.security=" + this.context.getMavenRepository().getParent().resolve(SETTINGS_SECURITY_FILE).toString().replace("\\", "\\\\"));
pc.addArgs("--encrypt-password", input);
pc.addArg("-Dsettings.security=" + this.context.getMavenRepository().getParent().resolve(SETTINGS_SECURITY_FILE).toString().replace("\\", "\\\\"));
ProcessResult result = pc.run(ProcessMode.DEFAULT_CAPTURE);

String encryptedPassword = result.getOut().get(0);
Expand Down

0 comments on commit 3c92f49

Please sign in to comment.