Maven配置阿里镜像仓库

场景

原Maven仓库地址:

https://repo1.maven.org/maven2/

国内阿里镜像

http://maven.aliyun.com/nexus/content/groups/public/

http://maven.aliyun.com/mvn/view

配置

1.打开Maven目录下的conf下的setting.xml

2.使用EditPlus等打开,找到<mirrors>标签,然后添加:

<mirror>
        <id>nexus-aliyun</id>
        <mirrorOf>central</mirrorOf>
        <name>Nexus aliyun</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  </mirror>

猜你喜欢

转载自blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/84309856