#1058: fixed missing JAVA_HOME env var#1100
Conversation
Fixes: devonfw#1058 ### Implements: * added missing JAVA_HOME to environment variables
Pull Request Test Coverage Report for Build 14975449259Details
💛 - Coveralls |
replaced new ProcessContext with runTool
replaced InstallCommandlet with Mvn
# Conflicts: # CHANGELOG.adoc
# Conflicts: # CHANGELOG.adoc
hohwille
left a comment
There was a problem hiding this comment.
@jan-vcapgemini thanks for your PR. You implemented everything exactly as I expected.
However, I tested this and found a new bug:
[ERROR] Error executing Maven.
[ERROR] The specified user settings file does not exist: D:\projects\test\conf\mvn\settings.xml
So in that case already the creation of the master password is failing.
Should we add a check for the existence before adding the -s option?
IDEasy/cli/src/main/java/com/devonfw/tools/ide/tool/mvn/Mvn.java
Lines 250 to 262 in 9f839b2
IMHO that would make sense.
# Conflicts: # CHANGELOG.adoc
I can't reproduce this bug. Could you please add the preparations/steps to reproduce it? |
…hub.com/devonfw/IDEasy into dependabot/maven/org.jline-jline-3.29.0
Added check for existing settings security file
|
I've added a check for the existence of the mvn settings security file now. |
hohwille
left a comment
There was a problem hiding this comment.
@jan-vcapgemini thanks for your rework and improvements. 👍
I still have some CRs to be addressed before merge.
removed unnecessary re-initialization of Mvn
made sure that getMavenArgs only returns null if both mvn configuration files (settings and settings-security) were not found
moved code from ProcessContext.runAndGetSingleOutput to ProcessResult implemented new getSingleOutput method in ProcessResultImpl using getSingleOutput in Mvn instead of getOut().getFirst() now
refactored encrypt password logic into retrievePassword method cleanup
replaced getMavenConfigurationFolder with getMavenConfFolder adjusted settings and setttingssecurity checks as suggested
changed getSingleOutput logger to null
|
build failed with: I did not yet see which change prevents that this file gets created. |
|
|
Is this maybe part of the problem: Also why do we have the second if condition? Maybe the |
set legacy of getMavenConfFolder to false
Fixes: #1058
Implements: