How to setup maven in windows

This article covers how to setup Maven in windows, the first thing which you need to do is download maven zip file by visiting maven website and then download the latest version of zip file, there is no exe file maven you just need to unzip it where ever you want to install, no separate installation is required

Step 1: Download Maven

Here, I did unzip in the below folder, you can download maven package by visiting maven website download maven

maven-local

Step 2: Setup Envioroment variables – MAVEN_HOME

Go to MyComouter properties -> Advanced System Settings -> Environment Variables -> add below line

maven-home-1

Now, edit the path variables and add below line

maven-home

Step 3: Verify installation

Once the installation is completed then go to the command prompt and run the below command

you should see something like below

 

maven-command