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] [Commented] (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:comment-tabpanel&focusedCommentId=17381298#comment-17381298 ] 

Michael Osipov commented on MNG-7188:
-------------------------------------

Please show the exact error.

> 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
>
>  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)