[ 
https://issues.apache.org/jira/browse/MNG-7188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17381428#comment-17381428
 ] 

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

I cannot reproduce this:
{noformat}
mosipov@mikaw10 /cygdrive/d
$ ls -l | grep maven
drwxrwx---+ 1 mosipov      Kein                   0 15. Jul 17:42 
apache-maven-3.8.2-SNAPSHOT
lrwxrwxrwx  1 mosipov      Kein                  27 15. Jul 17:43 
apache-maven-current -> apache-maven-3.8.2-SNAPSHOT
$ ./apache-maven-current/bin/mvn -v
Apache Maven 3.8.2-SNAPSHOT (176b272f30c4fbd62013b4702ab28518c21628ac)
Maven home: D:\apache-maven-3.8.2-SNAPSHOT
Java version: 1.8.0_292, vendor: AdoptOpenJDK, runtime: C:\Program 
Files\AdoptOpenJDK\jdk-8.0.292.10-hotspot\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
{noformat}

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

Reply via email to