全局配置
添加阿里云的镜像到maven的setting.xml配置中,这样就不需要在每个pom中都添加镜像仓库的配置,在mirrors节点下面添加子节点:
<mirror>
<id>nexus-aliyun</id>
<name>nexus-aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
<mirrorOf>central</mirrorOf>
</mirror>
setting.xml文件的位置
镜像插入位置