Davor Krtic created MNG-7188: -------------------------------- Summary: Maven fails to start in Cygwin when installed with SDKMAN Key: MNG-7188 URL: https://issues.apache.org/jira/browse/MNG-7188 Project: Maven Issue Type: Bug Components: Command Line Affects Versions: 3.8.1 Environment: Windows 10, Cygwin, SDKMAN Reporter: Davor Krtic
Exception: {noformat} java.io.FileNotFoundException: C:\cygwin64\home\davor.krtic\.sdkman\candidates\maven\current\bin\m2.conf ...{noformat} {{current}} folder is a symlink which Windows doesn't recognize. (SDKMAN uses symlinks to manage different versions) Changing the following line in the {{mvn}} script from: {code:java} MAVEN_HOME=`cd "$MAVEN_HOME" && pwd` {code} to: {code:java} MAVEN_HOME=`cd "$MAVEN_HOME" && pwd -P` {code} fixes the problem as it avoids symlinks. -- This message was sent by Atlassian Jira (v8.3.4#803005)