Install Maven for Windows
compatible with Windows 7, 8, and 10
User Variables created during installation
- JAVA_HOME -- holds the value of the installation path of your Java Development Kit (eg., C:\Program Files\Java\jdk1.8.0_1).
- MAVEN_HOME -- holds the value of the installation path of Maven (eg., C:\Program Files\Maven).
- M2_HOME -- another variable that holds the value the installation path of Maven.
- PATH -- appends the current value with the installation path of Maven + \bin
You can change the installation path of Maven during installation.
For manual installation instructions: apache.org mkyong.org
If there is a newer version available at apache.org, you can update your installation by downloading the Binary zip archive and replacing the contents of Program Files\Maven. To test if it is installed, type this in a new command prompt:
mvn - v