nexus 配置aliyun镜像

转载:https://blog.csdn.net/kq1983/article/details/83066102(感谢)

1. 点击 repositories

2.  点击 create repository

3. 选中maven(proxy)

4. 设置阿里云

阿里云nexus仓库URL:  http://maven.aliyun.com/nexus/content/groups/public

5. maven-public

6. 把阿里云设置为第一位

设置maven的setting.xml文件


  
  
  1. <!-- 不使用nexus,maven配置阿里云加速 -->
  2. <mirror>
  3.             <id>nexus-aliyun </id>
  4.             <mirrorOf>central </mirrorOf>
  5.             <name>Nexus aliyun </name>
  6.             <url>http://maven.aliyun.com/nexus/content/groups/public/ </url>
  7.     </mirror>

  
  
  1. <!-- 使用nexus 配置镜像 -->
  2. <mirror>
  3.             <id>nexus-central </id>
  4.             <mirrorOf>* </mirrorOf>
  5.             <name>Nexus Central </name>
  6.             <url>http://192.168.3.200:8081/nexus/repository/maven-public/ </url>
  7.     </mirror>

猜你喜欢

转载自blog.csdn.net/hqbootstrap1/article/details/84963736