Maven3.5.0 installation and environment variable configuration in win10, maven3.5.0win10
1. maven http://maven.apache.org/download.cgi. For example, download apache-maven-3.5.0-bin.zip
2. decompress the package to the specified file. The maven directory is as follows:
3. Configure Environment Variables
Install and configure jdk before configuring maven. maven3.5.0 requires jdk 1.7 and later. I am using jdk1.8.0 ,:
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
(1) Right-click the computer, choose Properties> advanced system Settings> environment variables, and create the M2_HOME variable in the system variables. The variable value is the maven directory.
(2) Add % M2_HOME % \ bin to the path directory of the system variable;
4. Test
Run cmd to open the command line window and enter mvn-v;
If the result is output, the configuration is successful.