环境:Windows10,Maven 3.5.3
Maven存放目录:D:\softwares\apache-maven-3.5.3
配置文件:D:\softwares\apache-maven-3.5.3\conf\settings.xml
仓库1:阿里云仓库
<mirror>
<id>aliyun-repositories-central</id>
<mirrorOf>central</mirrorOf>
<name>aliyun-repositories-central</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
注:<id>和<name>可自定义命名
其他云仓库
<!-- 中央仓库1 -->
<mirror>
<id>repo1</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo1.maven.org/maven2/</url>
</mirror>
<!-- 中央仓库2 -->
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo2.maven.org/maven2/</url>
</mirror>
<!--开源中国的仓库-->
<mirror>
<id>nexus-osc</id>
<mirrorOf>central</mirrorOf>
<name>Nexus osc</name>
<url>http://maven.oschina.net/content/groups/public/</url>
</mirror>
<mirror>
<id>nexus-osc-thirdparty</id>
<mirrorOf>thirdparty</mirrorOf>
<name>Nexus osc thirdparty</name>
<url>http://maven.oschina.net/content/repositories/thirdparty/</url>
</mirror>