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/15 12:11:00 UTC
[jira] [Updated] (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 updated MNG-7188:
--------------------------------
Fix Version/s: waiting-for-feedback
> 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
> Priority: Major
> Fix For: waiting-for-feedback
>
>
> 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)