Installing Maven on the Mac OS X isn’t very different from the installation and setup on Linux. This really shouldn’t be a surprise because OS X is built on top of BSD Linux in the first place. Apache Maven is a command-line tool; it just needs to be extracted and configured with the operating system’s environment.
There is a chance Apache Maven may have been pre-installed on your machine. Verify that Maven isn’t already installed before proceeding.
See the recipe Verifying the Maven installation in this chapter
A pre-requisite for working with Maven is the availability of the Java Development Kit. Make sure the JDK is available before proceeding. This can be verified by running the following command ...