右键项目,maven选项,"Open setting.xml"或"Create setting.xml",在 mirrors 节点添加下面代码。
alimaven
aliyun maven
http://maven.aliyun.com/nexus/content/groups/public/
central
uk
Human Readable Name for this Mirror.
http://uk.maven.org/maven2/
CN
OSChina Central
http://maven.oschina.net/content/groups/public/
nexus
internal nexus repository
http://repo.maven.apache.org/maven2