相关文章推荐
淡定的跑步机  ·  信息工程学院·  3 月前    · 
爱搭讪的大蒜  ·  刘芳萍-动物医学学院·  5 月前    · 
伤情的消防车  ·  RDS ...·  7 月前    · 

好好的项目换了个电脑就报错了。。。。maven 报错如下

Project build error: Non-resolvable parent POM for com.ld:Alarm:1.0: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.5.6.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.6.RELEASE from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org and 'parent.relativePath' points at wrong local POM

主要错误原因

maven.apache.org和'parent.relativePath'指向错误的本地POM

我直接把本地的仓库缓存maven 的依赖包给删除了,就OK了。

本地仓库的路径我的是

C:\Users\Administrator\.m2\repository

我把仓库里和Springboot 有关的删除了,再保存 一下pom文件就没这问题了。 再maven update 一下。