devonfw / IDEasy

Tool to automate the setup and updates of a development environment for any project (Successor of devonfw-ide).
Apache License 2.0
11 stars 23 forks source link

Invalid MAVEN_ARGS: The specified user settings file does not exist #744

Closed hohwille closed 2 weeks ago

hohwille commented 3 weeks ago

Expected behavior

As a IDEasy user, I want to be able to install and use maven seamless so that I can run my builds.

Actual behavior

$ ide
IDE environment variables have been set for /d/projects/IDEasy in workspace main
$ mvn install
[ERROR] Error executing Maven.
[ERROR] The specified user settings file does not exist: D:\projects\IDEasy\conf\mvn\settings.xml-Dsettings.security=D:\projects\IDEasy\conf\mvn\settings-security.xml

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. ide
  2. mvn install

Related/Dependent Issues

705

Comments/Hints:

$ echo $MAVEN_ARGS
-s D:\projects\IDEasy\conf\mvn\settings.xml-Dsettings.security=D:\projects\IDEasy\conf\mvn\settings-security.xml

There is a space missing between the two arguments of MAVEN_ARGS.

Bug is here: https://github.com/devonfw/IDEasy/blob/d967d69d36dccd211b7a02af8929fe695e734959/cli/src/main/java/com/devonfw/tools/ide/tool/mvn/Mvn.java#L252

Affected version: