maven仓库配置阿里云镜像

maven仓库的默认镜像为国外镜像,下载jar包依赖非常慢,可以将镜像设置为国内的阿里云。

只需要在maven的conf的setting中配置如下:

<mirrors>
    <mirror>
      <id>alimaven</id>
      <name>aliyun maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>        
    </mirror>
  </mirrors>

这样下载jar包的速度可以体验一下,飞快

posted @ 2018-07-09 14:10  Goxcheer  阅读(192)  评论(0编辑  收藏  举报