QuickStart with Apache Maven 3.x on Mac El Capitan
The Mac Tutorial Shows You Step-by-Step How-to Install Maven on Mac El Capitan 10.11 OS X BSD/Unix Desktop.
To Install Maven on Mac El Capitan a Working Java JDK 6+ Installation is Required, so You will Find Link to Installing Oracle Java JDK 7 on Mac OS X.
Maven calls its build scripts Project Object Model (POM) files. These POM files are in XML, and each Maven project or module will have an accompanying pom.xml file.
A Project Management Tool such as Maven provides a Superset of features found in a Build Tool.
But in Addition to providing Build capabilities, Maven can also Run Reports, Generate a Web Site, and Managig Communication among members of a Working Team.
- Download Apache Maven 3.x Binaries:Maven bin.tar.gz for Mac
Double-Click on Maven Archive to Extract
Open Terminal Window
(Press “Enter” to Execute Commands)
Verify that JDK 7+ is Installed on System1java -version
How-to Install Oracle JDK on Mac OS X:Install Oracle JDK for Mac
Relocating Maven Binaries
Switch to the Target directory:1cd ~
Then Login as Super-user:1sudo su
If Got “User is Not in Sudoers file” then Look: Solution
Remove the tar.gz archive:1rm Downloads/apache-maven*bin.tar.gz
Fix Permissions:1chown -R root:wheel Downloads/apache-maven*
Switch the Maven contents:1mv Downloads/apache-maven* /opt/apache-maven
Achieve the Admin session:1exit
Add Maven Binaries to User Path1nano $HOME/.profile
Change the [X.Y.Z] with the actual Maven Version!
Ctrl+x to Save and Exit from “nano”
To Load the New SetUp:1source $HOME/.profile
Test Maven Installation1mvn -version
Quick-Start with Maven Projects Management:Maven Quick-Start Guide
Quick-Start with Eclipse Java Developers on Mac OS X:
SetUp Eclipse for Java on Mac.