1. Download Maven 3.3.9 On Macbook
  2. Apache Maven Download 3.3.9
  3. Apache Maven 3.2.5 Download

From Download page, get the latest version (currently 3.3.9) of the binary file. Step2 - Move the archive to destination folder (OPTIONAL) I want to install maven on /usr/local. I'm gonna go ahead and download the apache-maven-3.3.9-bin.zip file. It doesn't take long to download and you can see it's only 8.2 MB. Let's switch over to the installation instructions next. Download rh-maven33-maven-3.3.9-2.8.el6.noarch.rpm for CentOS 6 from CentOS SCLo RH Testing repository. Instructor To run Maven using a Mac Operating System,again, make sure that you already haveyour JDK downloaded and installed.Once we have the Apache Maven downloaded,in this case, we're downloading 3.3.9,we can go to the Install instructions.Under Install, it talks about Apache Maven, in general,you'll want to ensure that you have a variable definethat says Java.

I am setting up my new MAC pro for Java development. As I am new to MAC, I find issues while installing and configuring JAVA_HOME variable. Finally I got the solution and I explained in my JAVA_HOME post that how to configure the variable. In this post I am going to show you how to install Maven on MAC.

What is Maven

Apache Maven is a build tool which helps Java developers in building and managing projects. Here are the few features of Maven,

  1. It makes the build process easy
  2. It provides a uniform build system
  3. It provides quality project information
  4. It allow transparent migration to new features

Installing Maven on Mac OS

Download Maven 3.3.9 On Macbook

Now MAC OS is not coming with default installation of Maven. The time when I am writing this post I am using MacOS 10.12. To verify if the Maven is installed or not on the machine. Open the terminal window and type mvn and hit enter. If you get the message “command not found” then it means Maven is not installed. Download it from the Apache Maven website. And unzip the folder. Make sure you unzip the file in a proper location. I created a WorkSpace folder in my documents and I move the unzip folder in that. The path on MAC looks like this /Users/waqas80/Documents/WorkSpace/apache-maven-3.3.9 .

Before configuring it make sure you have install JDK on your machine and JAVA_HOME variable is set. You can type java-version in the terminal window to check if JDK is installed or not.


One JDK is set, follow the below steps,

  1. Add M2_HOME environment variable by typing the following command in the terminal window, make sure to give the correct path of Maven unzip folder.
    export PATH=/Users/waqas80/Documents/apache-maven-3.5.0/bin:$PATH

    Apache Maven 3.2.5 Download

    I extract the maven zip file in the documents. Once the path is exported type the following command in the terminal, if you see the below result then it means the maven is successfully configured.