From powerwiki
Jump to: navigation, search

Newer Apple Mac machines ship without the developer tools, and there is a package manager that will make maven installation much easier. Here's what we did to install everything on Wolf's new MacBook:

  1. Install Java SE.
  2. Install the Homebrew package, which in turn will prompt you to install the Apple developer tools package.
  3. Open a terminal window (under Applications/Utilities). Use brew to install maven as: brew install maven
  4. Assuming you installed Java 8, edit (or create) .bash_profile in your home directory to add the line (note the backquotes): export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
  5. In the terminal window, issue the same command (You only have to do this once): export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
  6. Confirm that maven is working with the command: mvn -version