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上邊。

像這樣,保存。

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章