First, installation
To install Apache maven on a Windows system, you need to download the Maven zip file and unzip it to the directory you want to install and configure the Windows environment variables.
1. Required Tools
JDK 1.8
Maven 3.3.9
Windows 7
2. JDK and Java_home
Ensure that the java_home of the JDK and settings are fixed
3. Download maven
Address: http://maven.apache.org/download.cgi
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/8C/1F/wKioL1hjJu-DACwHAAA-eupysUg438.png "border=" 0 " Style= "line-height:1.6;" alt= "Wkiol1hjju-dacwhaaa-eupysug438.png"/>
4. Installation
Unzip the downloaded zip file into your pre-set directory: D:\maven
5. Add M2_home and Maven_home
Add the M2_home and Maven_home environment variables to the WINDOWS environment variable and point it to your MAVEN folder.
Note:
Maven says it just adds M2_home, but some projects still refer to Maven's folder Maven_home, so add it for security.
6. Add to environment variable-PATH
Update the PATH variable, add the Maven Bin folder to the end of path, such as:%m2_home%\bin, so that you can run the MAVEN command in any directory in the command.
7. Verification
Executing MVN version in the command window
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/8C/22/wKiom1hjJu_TBlZcAAAX3Lmz95k397.png "border=" 0 "alt = "Wkiom1hjju_tblzcaaax3lmz95k397.png"/>
Description Success!
Installing MAVEN on Windows