Nexus默認遠程倉庫為https://repo1.maven.org/maven2/
maven默認遠程倉庫為https://repo1.maven.org/maven2/
aliyun默認遠程倉庫為http://maven.aliyun.com/nexus/content/groups/public/
搭建Nexus默認central倉庫為maven的,maven是外國網(wǎng)站,慢死了。這里為大家添加阿里云代理倉庫
第一步,添加proxy
![](/d/20211016/3f69460b9547d1ec02c1ab6bc5984b56.gif)
![](/d/20211016/477c6b0848f1de0a80d19d24d21fab32.gif)
錄入完成后別忘了保存。
第二步,倉庫組Public Repositories中添加aliyun
![](/d/20211016/74a2679d7d6607c30345b5a326126e11.gif)
第三步,更新索引可選
![](/d/20211016/0fcad4a0a5dd652d66c1490461949956.gif)
索引包較大,建議網(wǎng)上下載離線版后放入\nexus\sonatype-work\nexus\indexer\aliyun-ctx
以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持腳本之家。