修改方法:
修改maven根目录下的conf文件夹中的setting.xml文件
修改为阿里的镜像库,将URL的地址改为阿里的镜像库地址
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<!--<mirrorOf>central</mirrorOf> -->
<mirrorOf>*</mirrorOf>
</mirror>