為Nexus配置阿里雲代理倉庫


Nexus默認遠程倉庫為https://repo1.maven.org/maven2/

慢死,還常連不上。

可以添加阿里雲代理倉庫

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

1、添加代理倉庫,Add... -> Proxy Repository

填寫:

Repository ID: aliyun

Repository Name: Aliyun Repository

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

Save

把aliyun添加到倉庫組中,記得把aliyun排在central上邊。

刷新網頁

選中倉庫組Public Repositories

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

像這樣,保存。

這樣,就可以優先訪問阿里雲倉庫了。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM