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上邊。
像這樣,保存。
這樣,就可以優先訪問阿里雲倉庫了。