找到maven对应的settings.xml,并且在<mirrors>节点下添加:
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
通过镜像会比直接从central上下载依赖更加稳定!