Quick-Start with Apache Maven on Mac 10.10 Yosemite
The Unix Tutorial Shows You Step-by-Step How to Install and Getting-Started with Apache Maven 3.x on Mac OS X Yosemite 10.10.
The Apache Maven 3 SetUp Require a Working Java JDK 8+ Installation, so You will Find Link to Installing Oracle Java JDK 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 Website, and Managig Communication among members of a Working Team

-
Download Apache Maven 3.x Binaries
-
Double-Click on Maven Archive to Extract.
-
Open Terminal Window
(Press “Enter” to Execute Commands) -
Verify that JDK 8+ is Installed on System
java -version
How to Install Oracle JDK 8+ on Mac OS X
-
Relocate Maven Binaries
sudo su
If Got “User is Not in Sudoers file” then see: How to Enable sudo
rm /Users/[myUser]/Downloads/apache-maven*bin.tar.gz
sudo chown -R root:root /Users/[myUser]/Downloads/apache-maven*
mv /Users/[myUser]/Downloads/apache-maven* /opt/
exit
-
Add Maven Binaries to User Path
nano $HOME/.profile
Append:
export PATH=$PATH:/opt/apache-maven-[X.Y.X]/bin
Ctrl+x to Save and Exit from “nano” :)
Load New SetUp:
source $HOME/.profile
-
Test Maven Installation
mvn -v
-
Quick-Start with Maven Projects Management
Quick-Start with Eclipse Java Developers on Mac OS X:
SetUp Eclipse for Java on Mac.
Tags: Apache, Apache Maven, apache maven mac, berkeley software distribution, bsd, Getting Started, Guide, How-to, Install, install maven mac, install maven mac os x, Java, java build tools, JDK, Mac Os X, mac os x 10.10 yosemite, maven mac os x, oracle java, Tutorial, unix tutorial