M2_HOME does not work in IntelliJ on OSX 10.10.1 Yosemite

ive tried:

echo $M2_HOME
/usr/local/apache-maven-3.2.3

looks like M2_HOME is installed

and the /etc/launchd.conf file looks like this:

setenv $M2_HOME /usr/local/apache-maven-3.2.3

ive restarted mac and still nothing works ...

any idea?

+4
source share
2 answers

checkout:

", and the /etc/launchd.conf file looks like this:"

change:

setenv $M2_HOME /usr/local/apache-maven-3.2.3

to

setenv M2_HOME /usr/local/apache-maven-3.2.3
0
source

Create a new file /Library/LaunchDaemons/setenv.M2_HOME.plist:

    <? xml version = "1.0" encoding = "UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      <key>Label</key>
      <string>setenv.BAR</string>
      <key>ProgramArguments</key>
      <array>
        <string>/bin/launchctl</string>
        <string>setenv</string>
        <string>M2_HOME</string>
        <string>/opt/local/share/java/apache-maven-3.1.1</string>
      </array>
      <key>RunAtLoad</key>
      <true/>
      <key>ServiceIPC</key>
      <false/>
    </dict>
    </plist>

launchctl load -w /Library/LaunchDaemons/setenv.M2_HOME.plist

IDEA, MAVEN_HOME. 10.10.3.

: http://lajosd.blogspot.be/2015/06/place-following-content-enhance-it-to.html

0

Source: https://habr.com/ru/post/1568007/


All Articles