For installing Maven in Windows, following are the 2 easy steps which you need to follow :
1) Download Maven Zip and Extract It
2) Set the Path
Note : Maven is a Java based tool. So , you must have Java installed for running Maven.
1. Download Maven Zip and Extract It
Go to official Site of Maven , download maven zip ( Ex : apache-maven-3.2.3-bin.zip ) and extract the zip file in some location.
2. Set the Path
Go to Environment Variables ( Windows Key+Pause -> Advanced System Settings -> Environment Variables )
Create following Variables in either User variables or System variables
1) Variable Name : JAVA_HOME
Value : < path to JDK > Ex : C:\Program Files\Java\jdk1.7.0_21
2) Variable Name : M2_HOME
Value : <path where you extracted the maven> Ex : G:\My Workplace\lab\maven\apache-maven-3.2.3
3) Variable Name : PATH
Value : %M2_HOME%\bin
That’s it ! You are Done with Maven Installation.
Verify the Installation
open Command Prompt ( windows+R -> type ‘cmd’ and enter ) and execute mvn –version
If you see something similar to above output, that means Maven Installed successfully.