How to install Maven on windows 7 command line

By | 2017-12-20T21:55:24+00:00 March 12th, 2016|java|0 Comments

In this tutorials, 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

For this tutorial, I am using below tools :

[tie_list type=”checklist”]

  • JDK 1.8
  • Maven 3.3.9
  • Windows 7

[/tie_list]

Download Maven Binary :

To download Apache Maven just 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 need to make sure that, JDK is installed on your computer. If not installed, please 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 Environment Variables button, then the Environment Variables popup will open like below.

Install Maven Environment_variables

Click on New button. Enter JAVA_HOME as variable name and give the Java home path. If Java is 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 VariableJAVA_HOME is created successfully. Then you can find JAVA_HOME in the System Variables list like below.

Install Maven Created

Click on Ok button. JAVA_HOME is created successfully.

Install Maven (Maven Setup):

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

Assuming that our Maven un-zip folder existed in : [highlight color=”green”]C:\Desktop\Softwares\apache-maven-3.3.9[/highlight] path.

Install Maven Downloads

Add the Maven to Path. It is some thing similar like 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 systempropertiesClick on Environment Variables button, then the Environment Variables popup will open like below.

Install Maven Edit Path

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

Install Maven Update Path

In the Variable value textbox, just 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 bellow command on your windows command prompt.

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

Type [highlight color=”green”]mvn – version[/highlight] 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 🙂

About the Author:

Hi Folks, you have reach this so far, that shows you like what you are learning. Then why don't you support us to improve for bettor tutorials by leaving your valuable comments and why not you keep in touch with us for latest updates on your favorite blog @ facebook , twitter , Or Google+ ,

Leave A Comment