In this Post we will see How to install Maven on Mac OS. Maven is build tool primary for Java projects.
Install Maven on Mac OS X. Step 1: Download Apache Maven from maven.apache.org. Choose one release of Maven to download. Here, I downloaded the Apache Maven 3.6.3 release. Step 2: Unzip the downloaded maven file in any directory using the unzip or tar command. Tar xzvf apache-maven-3.6.3-bin.tar.gz. Unzip apache-maven-3.6.3-bin.zip. To install maven on windows, you need to download apache maven first. Download Maven latest Maven software from Download latest version of Maven. For example: apache-maven-3.1.1-bin.zip. Now it will look like this: 2) Add MAVENHOME in environment variable. Right click on MyComputer- properties- Advanced System Settings. From the download page, we need to download the binary file. Now I will demonstrate how to install Maven on a mac OS machine. When Maven is downloaded you will notice that the file is not very large.
Prerequisites:
With simple maven clean install, maven clean deploy and more command, your word project just builds and deployed with all dependencies. Maven downloads all of the dependencies download to the path specified in settings.xml file. Do you have a new Macbook Pro and is your Mac running on latest Mac OS X version? If yes, it doesn’t come.
Maven is written in Java. Therefore, we need to have Java JDK installed on Mac OS. Java can be install from Oracle’s download website.
If you have to View How to install Java JDK on Mac OS X ( with JAVA_HOME ) the follow the Video instruction in https://youtu.be/y6szNJ4rMZ0
Maven Installation Steps:
Step 1 Download the Apache Maven bin.tar.gz file from
Extract/unzip the distribution archive file into
http://maven.apache.org/download.cgi
.Extract/unzip the distribution archive file into
/Applications/apache-maven-3.4.5
by the following command.How To Install Maven
2 | export PATH=$PATH:$M2_HOME/bin |
Step 4 Use source command on ~/.bash_profile which is used to load any functions file into the current shell script or a command prompt.
Step 5
Run the following command to verify maven version
Run the following command to verify maven version
If your Mac OS system displays information on the Apache Maven version installed, this means Maven is successfully installed on you Mac.
Video Instructions – How to install Maven on Mac