You@host:$ sudo port select -set maven maven3 selects that version of Maven; Installing by hand: Download Maven from its homepage; Follow the installation instructions: Extract the distribution archive, i.e.apache-maven-3.3.9-bin.tar.gz to the directory you wish to install Maven 3.3.9.
2.1 Download the Maven. Yes, after upgraded my Mac to OSX Mavericks, Maven was gone. I have to install the Maven manually, article is updated accordingly. Download Maven For Mac Sierra Free Apache Maven is an extensive and convenient tool which provides dependency tree that helps to store, reuse, and omit unwanted JARs with ease. It’s easy-to-use, reliably fast, and most importantly flexible with a lot of available plugins.
You can download and install maven on windows, linux and MAC OS platforms. Here, we are going to learn how to install maven on windows OS.
To install maven on windows, you need to perform following steps:
- Download maven and extract it
- Add JAVA_HOME and MAVEN_HOME in environment variable
- Add maven path in environment variable
- Verify Maven
1) Download Maven
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
Extract it. Now it will look like this:
2) Add MAVEN_HOME in environment variable
Right click on MyComputer ->properties ->Advanced System Settings ->Environment variables ->click new button
Now add MAVEN_HOME in variable name and path of maven in variable value. It must be the home directory of maven i.e. outer directory of bin. For example: E:apache-maven-3.1.1 .It is displayed below:
Now click on OK button.
Apache Maven Download For Mac
3) Add Maven Path in environment variable
Click on new tab if path is not set, then set the path of maven. If it is set, edit the path and append the path of maven.
Here, we have installed JDK and its path is set by default, so we are going to append the path of maven.
The path of maven should be %maven home%/bin. For example, E:apache-maven-3.1.1bin .
4)Verify maven
To verify whether maven is installed or not, open the command prompt and write:
Now it will display the version of maven and jdk including the maven home and java home.
Maven Download Mac Os
Let's see the output: