Disclaimer: This article is a blogger original article, reproduced, please attach the original source link and this statement.
This link: https://www.cnblogs.com/zscbk/p/11785573.html
1, extract the downloaded file to install maven package into the newly created folder
2, add the environment variables in the system variable (the proposed change M2_HOME)
Edit Path New
Open CMD is shown below that is configured successfully
In the warehouse in repo maven
3, modify the local warehouse location
Modify conf configuration file
In the addition of the following <settings> </ settings> tag pairs
<localRepository>D:\maven\repo</localRepository>
Tags within your local location is the path that is repo address
4, with modified default jdk version of mave
In adding the following tag within profiles
<profile> <id>JDK-1.8</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.8</jdk> </activation> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion> </properties> </profile>
5, set idea
over~~