1. Download the bin file from the official website
2. Unzip, environment variables
The home directory is configured with home environment variables, and the bin directory is configured with path variables
3. Set Ali acceleration source in setting.xml under conf
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>*</mirrorOf>
</mirror>
4. Configure the local jar warehouse
<localRepository>F:\Maven_repository</localRepository>
5. mvn -v check installation
6. About IDEA using Maven
File——Setting
7. IDEA takes a long time to use for the first time, wait patiently
8. IDEA guide MVN package is popular
Solution:
1. Try to refresh
2. Add library
<repositories>
<repository>
<id>Central Repository</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
</repositories>
Replace those above, add to the front of pom.xml, and refresh