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

mvn launcher does not set JAVA_HOME on OS X correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.2.3
    • None
    • Command Line
    • None
    • OS X

    Description

      There's a bug in the mvn launcher in JVM auto-detection. And here's the fix:

      diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn
      index c1442ec..31a5eb3 100755
      --- a/apache-maven/src/bin/mvn
      +++ b/apache-maven/src/bin/mvn
      @@ -83,7 +83,7 @@ case "`uname`" in
                   #
                   # Apple JDKs
                   #
      -             export JAVA_HOME=/usr/libexec/java_home
      +             export JAVA_HOME=`/usr/libexec/java_home`
                 fi
                 ;;
      esac
      

      Attachments

        Issue Links

          Activity

            People

              schulte77 Christian Schulte
              outdegree Sebastian Krawczuk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: