Install Apache Maven 3.x on Windows 10
Introduction
Lets us see how to install Apache Maven 3.x on your Windows 10 machine. This post describes how to set up the Apache maven tool on your windows machine.
System Requirements
Maven 3.x requires JDK 1.7 or above. You need minimum disk space to download the archive and for your local maven repository.
You can verify Java installation and check the java version on your machine with java command. Open the command prompt and execute the below command.
/> java -version
Download
Download Maven 3.x archive from the download url as shown in the picture. Maven is distributed in several formats. Pick the .zip archive format and download it on to your Windows machine.
https://maven.apache.org/download.cgi
Install
The installation of Apache Maven 3.x is simple.
Extract the downloaded .zip archive and copy the folder to you favorite location on your hard drive. Alternatively, you can rename the folder to strip the version details etc. ( e.g. maven )
Make sure JAVA_HOME environment variable is set and points to your JDK installation. To check the environment variable value, use the following command
/> echo %JAVA_HOME%
You should see JDK installation path in the output.
In the next step, add the maven bin folder to your PATH environment variable.
Just ask Cortana “environment variables”
Cortana opens the System properties window for you. Click Environment variables in the System properties windows.
Under System variables, select Path variable and click on Edit… button.
Click on the New button, to add the Maven bin directory to the PATH.
Verify
You can verify the installation to make sure everything was setup correct with mvn command. Open the command prompt and issue the following command.
/> mvn -version
Verify the output of the command. You should see the Maven version in the output.That’s it. You are done with the maven install process.
Next Steps
Setting up MAVEN_HOME
https://www.testingdocs.com/setting-up-maven_home-on-windows-10/
See Also