diff --git a/cli/src/main/java/com/devonfw/tools/ide/tool/mvn/Mvn.java b/cli/src/main/java/com/devonfw/tools/ide/tool/mvn/Mvn.java index 4f8475c90..ba0aac130 100644 --- a/cli/src/main/java/com/devonfw/tools/ide/tool/mvn/Mvn.java +++ b/cli/src/main/java/com/devonfw/tools/ide/tool/mvn/Mvn.java @@ -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);