Nexus默认远程仓库为https://repo1.maven.org/maven2/

为Nexus配置阿里云代理仓库

慢死,还常连不上。

可以添加阿里云代理仓库

URL:http://maven.aliyun.com/nexus/content/groups/public/

1、添加代理仓库,Add... -> Proxy Repository

为Nexus配置阿里云代理仓库

填写:

Repository ID: aliyun

Repository Name: Aliyun Repository

Remote Storage Location: http://maven.aliyun.com/nexus/content/groups/public/

Save

为Nexus配置阿里云代理仓库

把aliyun添加到仓库组中,记得把aliyun排在central上边。

刷新网页

选中仓库组Public Repositories

把Aliyun Repository从Availiable Repositories中拖到Ordered Group Repositories中,放在Central上边。

为Nexus配置阿里云代理仓库

像这样,保存。

为Nexus配置阿里云代理仓库

这样,就可以优先访问阿里云仓库了。

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2021-12-17
猜你喜欢
  • 2022-12-23
  • 2021-09-03
  • 2021-06-02
  • 2021-08-23
  • 2022-02-07
相关资源
相似解决方案