Step By Step Guide to Install Maven on Windows

Step By Step Guide to Install Maven on Windows

Introduction about Maven

Apache Maven is a build-automation tool that is basically used in Java projects. It is designed to provide a comprehensive and easy-to-use way of developing Java applications.
Apache Maven uses POM (Project Object Model), which is a file in Spring or Spring Boot projects. It creates a development environment by taking the details of jars from POM.xml.

You can check your system has maven or not by using the command: mvm –version

Steps to install maven in your system

Step 1: Download the Maven Zip File and Extract

link : https://maven.apache.org/download.cgi

Guide to Install Maven on Windows
You can download the maven file from here in your system. After downloading extract the downloaded zip file.

After extraction paste the downloaded file at the location given below.

step by step Guide to Install Maven on Windows

Step 2: Set the System Variable MAVEN_HOME

Go to the search bar and search for “environment variables” and select the below one.

how to Install Maven on Windows

Once you click on the edit environment variable a pop will open shown below. Here click on the button Environment variables.

how to Install Maven on Windows

Click on the new button

how to Install Maven on Windows

Now one pop up be open. Fill the details given below.

Guide to Install Maven on Windows

Here Variable name will be the same as given above. The path variable value will be changed in your case.

Step 3: Add MAVEN_HOME Directory in PATH Variable

Now Select the path in the system variable and click on the Edit button. Once pop will be open.

steps to Install Maven on Windows
In this popup click on the New button to add Maven variables
how to Install Maven on Windows

After clicking on the New, add the below details. %MAVEN_HOME%\bin

stesp to Install Maven on Windows

Now click on ok to save the settings.

Step 4: Check Maven Installation in CMD

Open cmd and type command: mvn -version, you will find the maven version details.

If not try to restart your system.

Guide to Install Maven on Windows