In this tutorial, I am going to show you how to install Maven on Windows10 operating system.

Download Maven :

Download the Maven latest version from maven downloads. For me it is

Install Maven on Windows10 :

Extract the downloaded maven .zip file at your preferred location and proceed the below steps.

Note: To set up maven on your local machine, it is necessary to have JAVA_HOME setup. I have discussed how to setup JAVA_HOME on windows 10  in my previous tutorials, if you don’t set JAVA_HOME on your machine, please complete the JAVA_HOME setup first and proceed further steps.

After extracting the file, folder consists like below. I have extracted in E:\Softwares\apache-maven-3.5.2

install Maven on Windows10

Setup Maven to Path :

Go to Advanced System Settings :

Search for Advanced System Settings in the Search box like below:

JAVA_HOME on windows10

by selecting the above Advanced System Settings, you can see the below System Properties window where you can find Environment Variables button.

JAVA_HOME on windows10

Click on Environment Variables > There you can find System variables section.

JAVA_HOME on windws10

Select the Path variable and click on Edit button. Now opens another window like below: This is a new widow introduced from Windows10.

JAVA_HOME windows10

Here click on the new button and add environment variable E:\Softwares\apache-maven-3.5.2\bin (your maven folder location till \bin) like below.

Install Maven on Windows10

And Click on OK.


You can check your setup, by firing the below command on your windows command prompt.

Type mvn –version and Enter: It will give installed maven version with JAVA_HOME like below.

C:\>mvn -version
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T13:28:13+05:30)
Maven home: E:\Softwares\apache-maven-3.5.2\bin\..
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jre1.8.0_151
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Happy Learning 🙂