默认是从国外服务器载的,在setting.xml中修改 mirrors 加入如下配置
加入阿里的maven仓库就可以了
alimaven
aliyun maven
http://maven.aliyun.com/nexus/content/groups/public/
central
uk
central
Human Readable Name for this Mirror.
http://uk.maven.org/maven2/
CN
OSChina Central
http://maven.oschina.NET/content/groups/public/
central
nexus
internal nexus repository
http://192.168.1.100:8081/nexus/content/groups/public/–>
http://repo.maven.apache.org/maven2
central