提高依赖下载速度

配置方法

找到maven的安装目录,conf文件夹下的setting.xml文件
打开setting.xml文件,找到mirrors节点添加阿里镜像库地址:
 
    <!-- 阿里云仓库 -->  
    <mirror>  
        <id>alimaven</id>  
        <mirrorOf>central</mirrorOf>  
        <name>aliyun maven</name>  
        <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>  
    </mirror>  
  
    <!-- 中央仓库1 -->  
    <mirror>  
        <id>repo1</id>  
        <mirrorOf>central</mirrorOf>  
        <name>Human Readable Name for this Mirror.</name>  
        <url>http://repo1.maven.org/maven2/</url>  
    </mirror>  
  
    <!-- 中央仓库2 -->  
    <mirror>  
        <id>repo2</id>  
        <mirrorOf>central</mirrorOf>  
        <name>Human Readable Name for this Mirror.</name>  
        <url>http://repo2.maven.org/maven2/</url>  
    </mirror> 
     
    <mirror>
        <id>maven.net.cn</id>
        <name>oneof the central mirrors in china</name>
        <url>http://maven.net.cn/content/groups/public/</url>
        <mirrorOf>central</mirrorOf>
    </mirror>
原文地址:https://www.cnblogs.com/eason-d/p/7492138.html