First, download
Download: https://maven.apache.org/download.cgi
Second, install & environment variable
download, unzip to the specified folder, such as E: \ Soft \ Java \ apache -maven-3.6.3
configuration MAVEN_HOME
configuration Path, an additional MAVEN_HOME%% \ bin
cmd verify the installation
mvn -version
Three, mirroring configuration maven
create a local file storage jar package for maven download folder, such as D: \ maven_jar
find maven decompression setting.xml edited directory, such as E: \ Soft \ Java \ apache -maven-3.6.3 \ conf
found probably about 53 localRepository row position change maven_jar path you created earlier
<localRepository>D:\maven_jar</localRepository>
Find mirrors node, modify the mirror address maven package instead with Ali cloud, speed faster than the default
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
Four, IDEA configuration
click File -> Setting find maven, modify Maven home directory instead of pressing their own path, User setting file can also change your own profile, to hook behind 2 override it
Note that this configuration is to go along with the project , remember that each new project are under examination, no image download jar package get stuck or fail