Maven on Mac

November 28, 2017

I wanted to install Maven, the Java build tool on my Mac. This can be done using homebrew.


First I wanted to install Java 9. This can be done with:

$ brew update
$ brew cask install java


Next, to install Maven use:

$ brew install maven

To check if it has worked, run mvn from the command line.

Tags: maven, mvn, mac