MacSetup
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:
- Install Java SE.
- Install the Homebrew package, which in turn will prompt you to install the Apple developer tools package.
- Open a terminal window (under Applications/Utilities). Use brew to install maven as:
brew install maven
- 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`
- 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`
- Confirm that maven is working with the command:
mvn -version