Maven依赖下载太慢,配置Maven国内镜像。

修改maven路径/conf或maven路径/.m2文件夹下的settings.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>
  </mirrors>

猜你喜欢

转载自blog.csdn.net/Session_W/article/details/113502865