Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
3.8.1
-
None
-
None
-
Windows 10, Cygwin, SDKMAN
Description
Exception:
java.io.FileNotFoundException: C:\cygwin64\home\davor.krtic\.sdkman\candidates\maven\current\bin\m2.conf ...
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:
MAVEN_HOME=`cd "$MAVEN_HOME" && pwd`
to:
MAVEN_HOME=`cd "$MAVEN_HOME" && pwd -P`
fixes the problem as it avoids symlinks.