修改setting.xml
 setting.xml是工程所用的maven的setting.xml,可存在maven安装目录的conf下,或者在.m2下面。
修改 .m2 文件夹中的setting.xml 中的 1
2
3
4
5
6
7<mirrors>  
    <id>alimaven</id>  
    <name>aliyun maven</name>  
    <url>http://maven.aliyun.com/nexus/content/groups/public/</url>  
    <mirrorOf>central</mirrorOf>          
  </mirror>  
</mirrors>
阿里云的镜像,亲测很快。以后都用它了。