Maven 阿里云镜像

在maven包中的settings.xml文件改变镜像仓库为阿里云:

目的: 在maven镜像下载时速度比较快,因为默认镜像是国外的镜像仓库

<mirrors>

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

</mirrors>

猜你喜欢

转载自blog.csdn.net/dbsjack/article/details/79071370