Cory Steers created MNG-5759:
--------------------------------
Summary: Change order of IF statements to determine JAVA_HOME
Key: MNG-5759
URL: https://jira.codehaus.org/browse/MNG-5759
Project: Maven
Issue Type: Improvement
Components: Command Line
Affects Versions: 3.2.5
Environment: Mac OS X/Darwin
Reporter: Cory Steers
Priority: Minor
I'm running a run configuration in Eclipse/STS called "Mule Application with
Maven" from Mulesoft. It does not appear to use the m2eclipse plugin or
anything like it to pass in a JAVA_HOME environment. Thus, the mvn shell
script in ${M2}/mvn is left to try and determine the JAVA_HOME environment.
In my case, my Mac has the Apple Java 6 installs, but also has the Oracle Java
7 installs. The java preferences has 1.7 specified and the
/usr/libexec/java_home variable returns
"/Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home"
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)