Sebastian Krawczuk created MNG-5710:
---------------------------------------

             Summary: mvn launcher does not set JAVA_HOME on OS X correctly
                 Key: MNG-5710
                 URL: https://jira.codehaus.org/browse/MNG-5710
             Project: Maven
          Issue Type: Bug
          Components: Command Line
    Affects Versions: 3.2.3
         Environment: OS X
            Reporter: Sebastian Krawczuk
            Priority: Minor


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

{noformat}
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
{noformat}



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to