Maven 配置多个镜像

打开D:/apache-maven-3.x.x/conf,找到settings.xml文件,编辑该文件,找到mirrors节点,增加对应的镜像地址,可以配置多个,如果其中一个镜像下载不了某个包,会自动切换另一个镜像进行下载。如下


    
    
        nexus-aliyun
        central
        Nexus aliyun
        http://maven.aliyun.com/nexus/content/groups/public
    

    
    
        central-repository
        *
        Central Repository
        http://central.maven.org/maven2/
    

 

你可能感兴趣的:(Maven)