How to install Maven on Windows

 
What is Maven?

Apache Maven is a software project management and comprehension tool. It uses the concept of a project object model (POM), Maven can manage a project’s build, and reporting and documentation from a central piece of information. MAVEN helps us in creating the project structure, managing and downloading the dependencies. We need to define the required dependencies in pom.xml.

Installation Steps

1) To install Apache Maven on window, we need to download Maven’s zip folder from Official Maven Site. Download apache-maven-3.6.1-bin.zip.

2) Unzip the downloaded folder and then it will have below mentioned files. We do not need to install anything, just unzip the folder

3) We need to configure MAVEN_HOME environment variable. Type – “View Adva” in the search option and we will see the option – View Advanced system setting.

4) In System Properties dialog, select Advanced tab and click on the Environment Variables button.

5) In “Environment variables” dialog, System variables, Clicks on the New button and add a MAVEN_HOME variable 

6) A dialog box will appear, mention Variable Name – MAVEN_HOME and Variable value – mention the path where Apache folder is placed.

7) Add %MAVEN_HOME%\bin (full path till bin where maven is placed on your machine) to Path. Click New Button present in System Variable and add MAVEN_HOME\bin

8) Once the Path is updated with %MAVEN_HOME%\bin. This is how it will look like.

9) We have to make sure that JDK is install and JAVA_HOME environment variable is configure. If JAVA_HOME variable is not configure, then add JAVA_HOME just like MAVEN_HOME in Environment variable.

How to verify if Maven is install properly on your machine

Open command prompt and type mvn -version, then the screen should look something like below screen

This confirms that Maven is install successfully and configured on your machine.  

3 thoughts on “How to install Maven on Windows

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s