Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7188

Maven fails to start in Cygwin when installed with SDKMAN

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 3.8.1
    • None
    • Command Line
    • 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.

      Attachments

        Activity

          People

            michael-o Michael Osipov
            dkrtic Davor Krtic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: