You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christian Schulte (JIRA)" <ji...@apache.org> on 2016/01/09 22:13:39 UTC

[jira] [Assigned] (MNG-5710) mvn launcher does not set JAVA_HOME on OS X correctly

     [ https://issues.apache.org/jira/browse/MNG-5710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Schulte reassigned MNG-5710:
--------------------------------------

    Assignee: Christian Schulte

> 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
>            Assignee: Christian Schulte
>            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)