[ https://issues.apache.org/jira/browse/MNG-5710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Schulte closed MNG-5710. ---------------------------------- Resolution: Duplicate > mvn launcher does not set JAVA_HOME on OS X correctly > ----------------------------------------------------- > > Key: MNG-5710 > URL: https://issues.apache.org/jira/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.3.4#6332)