Spring Tool Suite 使用自带maven速度慢---修改settings.xml更新mirror方法

(1)打开sts,windows --> preference,找到maven,并设置如下。

(2)修改该文件,如下

<mirror>
  <id>nexus-aliyun</id>
  <mirrorOf>*</mirrorOf>
  <name>Nexus aliyun</name>
  <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>

重新打开sts,在pom.xml上右键,run as, maven clean,maven install。

可以稍微快一点。

原文地址:https://www.cnblogs.com/crazycode2/p/10201105.html