...
- Download and run the Apache Maven Windows installer package.
- Set the "Environment Variables" (create the system variable
M2_HOME
and edit the path. For example,C:\Program Files\Apache Software Foundation\maven-2.02.61
; path%M2_HOME%\bin
). - Make sure that the system variable JAVA_HOME is set to the location of your JDK, for example,
C:\Program Files\Java\jdk1.56
. - Run mvn - version to verify that it is installed correctly.
...