下载,解压,配置文件路径:
D:\apache-maven-3.3.9\conf\settings.xml
一、国内镜像的配置:
ctrl+f,搜索:mirr,在mirrors标签里面添加上:
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
二、本地仓库路径设置,搜索:localRepo,添加配置:
<localRepository>D:\mvn_repos</localRepository>
IDEA的maven设置:
File->setting