How to Install Maven on Mac High Sierra 10.13 Easy Guide

Apache Maven Mac High Sierra 10.13 Installation Guide

Hello Mac User! This is Tutorial Shows You Step-by-Step How-to Install Maven on Mac High Sierra 10.13 OS X BSD/Unix Desktop.

And Apache Maven for Mac 10.13 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.

Furthermore Project Management Tool such as Maven provides a Superset of features found in a Build Tool.

In Addition to providing Build capabilities, Maven can also Run Reports, Generate a Web Site, and Managig Communication among members of a Working Team.

Finally to Install Maven on Mac High Sierra a Working Java JDK 8+ Installation is Required, so You will Find Link to Installing Oracle Java JDK on macOS.

How to Install Maven on Mac High Sierra 10.13 Easy Guide
- Featured
  1. Download Apache Maven 3.x Binaries:

    Maven bin.tar.gz for Mac
  2. Double-Click on Maven Archive to Extract

  3. Open Terminal Window
    (Press “Enter” to Execute Commands)

    Install Maven on Mac High Sierra 10.13 - Open Terminal
  4. Verify that JDK 8+ is Installed on System

    java -version

    How-to Install Oracle JDK on Mac OS X:

    Install Oracle JDK for Mac
  5. Relocating Maven Binaries
    Switch to the Target directory:

    cd ~

    Then Login as Super-user:

    sudo su

    If Got “User is Not in Sudoers file” then Look: Solution
    Remove the tar.gz archive:

    rm Downloads/apache-maven*bin.tar.gz

    Fix Permissions:

    chown -R root:wheel Downloads/apache-maven*

    Switch the Maven contents:

    mv Downloads/apache-maven* /opt/apache-maven

    Achieve the Admin session:

  6. Add Maven Binaries to User Path

    nano $HOME/.profile


    export PATH=$PATH:/opt/apache-maven/bin

    Change the [X.Y.Z] with the actual Maven Version!
    Ctrl+x to Save and Exit from “nano” 🙂
    To Load the New SetUp:

    source $HOME/.profile
  7. Test Maven Installation

    mvn -version
  8. Quick-Start with Maven Projects Management:

    Maven Quick-Start Guide
  9. Quick-Start with Eclipse Java Developers on Mac OS X:
    SetUp Eclipse for Java on Mac.