Third, configure Maven local warehouse
1. Create a new maven-repository folder in the E:\maven directory, which is used as the local library of maven.
2. Open the E:\maven\apache-maven-3.5.3\conf\settings.xml file and find the following line of code:
<localRepository>/path/to/local/repo</localRepository>
The localRepository node is commented out by default, you need to move it outside the comment, and then change the value of the localRepository node to the directory E:\maven \maven-repository we created in 3.1.
3. The localRepository node is used to configure the local repository. The local repository actually acts as a cache. Its default address is C:\Users\username.m2.
When we get the jar package from maven, maven will first look in the local repository, and return if the local repository has it; if not, get the package from the remote repository and save it in the local repository.
In addition, we run mvn install in the maven project, and the project will be automatically packaged and installed into the local repository.
Configure the mirror address of Alibaba Cloud's central warehouse (it may make you faster in China)
Fourth, configure the Maven environment of Eclipse
1. Eclipse open Window->Preferences->Maven->Installations, click Add on the right.