maven 添加镜像仓库

添加国内镜像maven中央仓库

首先在安装目录找到conf文件夹,进入找到settings.xml配置文件,在文件中有标签,添加如下代码:

<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>ali yun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>