The default remote repository for Nexus is https://repo1.maven.org/maven2/
Slow to die, and often can't connect.
You can add Alibaba Cloud proxy warehouse
URL:http://maven.aliyun.com/nexus/content/groups/public/
1. Add a proxy repository, Add... -> Proxy Repository
fill in:
Repository ID: aliyun
Repository Name: Aliyun Repository
Remote Storage Location: http://maven.aliyun.com/nexus/content/groups/public/
Save
Add aliyun to the warehouse group, and remember to place aliyun above central.
refresh page
Select the repository group Public Repositories
Drag Aliyun Repository from Available Repositories to Ordered Group Repositories and place it on top of Central.
Like this, save.
In this way, you can preferentially access the Alibaba Cloud warehouse.