Maven Install on Mac OS X

Edgardo Roldan picture Edgardo Roldan · Jan 11, 2012 · Viewed 817.7k times · Source

I'm trying to install maven through the terminal by following these instructions.

So far I got this

export M2_HOME=/user/apple/apache-maven-3.0.3
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
export JAVA_HOME=/usr/java/jdk1.6.0_22

This is probably a stupid question where do you go to find this?

Answer

brasskazoo picture brasskazoo · Jul 5, 2013

Alternatively, I recommend installing Homebrew for these kinds of utilities.

Then you just install Maven using:

brew install maven

PS: If you got a 404 error, try doing a brew update just before