设置maven仓库阿里镜像

阿里中央仓库:

在Apache-maven-3.0.5/conf/settings.xml   在<mirrors>标签内添加如下

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

 

原文地址:https://www.cnblogs.com/chengyungzheng/p/7200952.html