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

为Nexus配置阿里云代理仓库【转】 随笔 第1张

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

慢死,还常连不上。

可以添加阿里云代理仓库

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

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

为Nexus配置阿里云代理仓库【转】 随笔 第2张

填写:

Repository ID: aliyun

Repository Name: Aliyun Repository

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

Save

为Nexus配置阿里云代理仓库【转】 随笔 第3张

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

刷新网页

选中仓库组Public Repositories

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

为Nexus配置阿里云代理仓库【转】 随笔 第4张

像这样,保存。

为Nexus配置阿里云代理仓库【转】 随笔 第5张

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

 

完全引用自

为Nexus配置阿里云代理仓库==>https://www.cnblogs.com/godwithus/p/8955824.html

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄