In this tutorial, we are going to learn how to install Maven on windows operating system. To install the Apache Maven, you have to follow the below steps.

Install Maven on windows 7

Versions:

  • JDK 1.8
  • Maven 3.3.9
  • Windows 7

Download Maven Binary :

To download Apache Maven go to maven downloads, and download the Maven binary zip archive (apache-maven-3.3.9-bin.zip).

Setup JAVA_HOME:

Before going to setup JAVA_HOME, you have to make sure that, JDK is installed on your computer. If not installed, install JDK first and then proceed to setup for JAVA_HOME.

Setup JAVA_HOME:

Goto My Computer -> Right Click on My Computer -> properties -> click  on Advanced System Settings.

Recommended: How to set JAVA_HOME on Windows 10

Then system properties pop up will be open.

 

Install Maven systemproperties

 

Click on the Environment Variables button; then the Environment Variables popup will open like below.

 

Install Maven Environment_variables

 

Click on New button. Enter JAVA_HOME as a variable name and give the Java home path. If Java has installed on your computer, you can find the Java home path in C:\Program Files\Java\jdk. Just paste your Java path in Variable value text box like below.

 

Install Maven New System Variable

Now JAVA_HOME has successfully created. Then you can find JAVA_HOME in the System Variables list like below.

 

Install Maven Created

 

Click on Ok button.

Install Maven (Maven Setup):

Download the maven binary from maven downloads. It will be downloaded as a zip file, extract the zip file. It looks like below.

I am assuming that our Maven un-zip folder existed in : C:\Desktop\Softwares\apache-maven-3.3.9 path.

 

Install Maven Downloads

 

Add the Maven to Path. It is something similar to the previous step.

Goto My Computer -> right Clock on My Computer -> properties -> click on Advanced System Settings.

Then system properties pop up will be open.

 

Install Maven systemproperties

Click on the Environment Variables button; then the Environment Variables popup will open like below.

 

Install Maven Edit Path

 

Select the Path variable, and then click on the Edit button. Then the edit popup will open like below.

 

Install Maven Update Path

 

In the Variable value textbox, add your maven folder path till \bin folder.

Example: C:\Desktop\Softwares\apache-maven-3.3.9\bin

Click on Ok button.

Well, our Maven Installation is over.

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

Just Goto Run-> Type cmd -> And hit Enter

Type mvn – version and Enter.

 

Install Maven Check

 

You can get the messages like above. Then you can confirm that maven is installed successfully on your computer.

If you face any difficulty, please let us know by leaving the comment in the comment section. We will get back to you.

Keep Learning 🙂