You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/07/21 23:11:00 UTC
[jira] [Closed] (MNG-7188) Maven fails to start in Cygwin when
installed with SDKMAN
[ https://issues.apache.org/jira/browse/MNG-7188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MNG-7188.
-------------------------------
Fix Version/s: (was: waiting-for-feedback)
Resolution: Cannot Reproduce
> 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
> Assignee: Michael Osipov
> Priority: Major
>
> 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)