Installing Apache Maven The installation of Apache Maven is a simple process of extracting the archive and adding the `bin` folder with the `mvn` command to the `PATH`. Detailed steps are: Ensure JAVAHOME environment variable is set and points to your JDK installation. Extract distribution archive in. Download Liquibase open source. Choose from the latest versions, including Beta files, installer files and other options for running Liquibase. Extract/unzip the distribution archive file into /Applications/apache-maven-3.4.5by the following. Maven is distributed in several formats for your convenience. Simply pick a ready-made binary distribution archive and follow the installation instructions. Use a source archive if you intend to build Maven.
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,
- It makes the build process easy
- It provides a uniform build system
- It provides quality project information
- It allow transparent migration to new features
How To Install Maven
Installing Maven on Mac OS
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. https://treefy782.weebly.com/blog/download-icloud-drive-files-to-mac. 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.
![Mac Mac](/uploads/1/2/6/7/126700100/460865575.png)
One JDK is set, follow the below steps,
Download And Install Maven On Mac
- 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
install maven mac brew
export path=/users/waqas80/documents/apache-maven-3.5.0/bin:$pathinstall maven on mac
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.>