您的位置:首页 > 其它

maven 异常解决

2018-03-03 00:00 162 查看
好好的项目换了个电脑就报错了。。。。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 一下。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐