To install maven on windows, you need to perform the following steps:

 

For a manual installation, you can download Maven from the following URL Maven Download page.

Download “Binary zip archive” from Download Page. Like – apache-maven-3.3.9-bin.zip

Unzip this ZIP file.

 

Add JAVA_HOME Environmental Variable

 

Add M2_HOME Environmental Variable

 

Add M2_HOME/MAVEN_HOME in Path Variable

 

Verify Maven is Installed

To verify whether maven is installed or not, open the command prompt and write:

mvn −version

Now it will display the version of maven and JDK including the maven home and java home.