这也是由于默认 maven 中央仓库在国外的原因,
我们可以在
maven/conf/setting.xml 中的
<mirrors></mirrors> 添加以下内容
<mirror>
<id>aliyun</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>