一、项目pom.xml添加
<repositories>
<repository>
<id>aliyun-central</id>
<name>Aliyun Maven Central</name>
<url>https://maven.aliyun.com/repository/central</url>
</repository>
<repository>
<id>aliyun-spring</id>
<name>Aliyun Spring</name>
<url>https://maven.aliyun.com/repository/spring</url>
</repository>
</repositories>
二、清理本地仓库缓存
rm -rf ~/.m2/repository
mvn clean package验证