- 下载apache-maven-3.6.3
http://maven.apache.org/download.cgi
2. Unzip the folder and enter the conf folder
E:\apache-maven-3.6.3-bin\apache-maven-3.6.3\conf
Open with notepad++ and add content as shown in the figure below:
Content address: https://help.aliyun.com/document_detail/102512.html?spm=a2c40.aliyun_maven_repo.0.0.36183054Iuhn6i
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
</mirrors>
-
Configure environment variable
MAVEN_HOME: E:\apache-maven-3.6.3-bin\apache-maven-3.6.3
path:%MAVEN_HOME%\bin -
cmd input mvn -v If the following content pops up, it means that the variable configuration is successful
5. Create a maven project in eclipse
Build the project: