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包的速度可以体验一下,飞快

猜你喜欢

转载自www.cnblogs.com/goxcheer/p/9283554.html