Maven is a Java-based tool, so the first thing to do is install the JDK.
1. Check the Java installation
Open the console and execute the following Java command if the platform output is installed successfully
2. Setting up the Java environment
Set the JAVA_HOME environment variable and point to the JAVA installation directory on your machine. For example:
Add the Java compiler address to the path of the system paths.
Variable name: Path
Variable value:%java_home%\bin;%java_home%\jre\bin;
3. Download maven files
Address: http://maven.apache.org/download.cgi The case version is 3.0.5
Ps:maven corresponding JDK version
Maven 3.3 requires JDK 1.7 or higher
Maven 3.2 requires JDK 1.6 or higher
Maven 3.0/3.1 requires JDK 1.5 or above
4. Extracting Maven Files
Unzip the file to the location you want to install Maven and get the apache-maven-3.0.5 subdirectory. This example is D:\apache-maven-3.0.5
5. Setting the MAVEN environment variable
Set environment variables using System properties.
maven_home=d:\apache-maven-3.0.5
Path=%maven_home%\bin;
6. Verifying MAVEN Installation
Open the console and execute the mvn-version command. If normal should be entered as follows:
At this point, all MAVEN settings have been completed
Itmyhome
Maven-Environment configuration