maven导入项目 pom文件报错

pom.xml文件报错

{

Failure to transfer org.springframework.boot:spring-boot-maven-plugin:pom:2.1.0.RELEASE from http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of public has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-maven-plugin:pom:2.1.0.RELEASE from/to public (http://maven.aliyun.com/nexus/content/groups/public/): maven.aliyun.com

}

原因:maven添加依赖后在本地仓库里找不到找不到相关文件

解决办法:找到本地maven仓库删掉此文件 epositoryorgspringframeworkootspring-boot-maven-plugin,项目右键maven——>update project

解决!

原文地址:https://www.cnblogs.com/sspox/p/13236266.html