Background:
Problem 1: Downloading dependency packages is slow for a new Maven project
Question 2: download failure problems always resolve a plugin org.. Apache maven. Plugins: maven – clean – plugin: 3.1.0 errors
Problem analysis
For download problems related to dependency packages, considering the network environment, it is best to configure domestic Maven images
The solution
Add the following code between <project></project> in pom.xml
<repositories>
<repository>
<id>alimaven</id>
<url>https://maven.aliyun.com/repository/public</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>alimaven</id>
<url>https://maven.aliyun.com/repository/public</url>
</pluginRepository>
</pluginRepositories>
Copy the code
The last
After setting up, the download will be finished in an instant.
END