springboot+maven pom文件保错问题

来源:互联网 发布:淘宝买家旺旺提取 编辑:程序博客网 时间:2024/05/15 23:48

今天闲来无事,自己搭了一个springboot+maven框架,可搭建后,pom文件一直报错报错如下:



Project build error: Non-resolvable parent POM for com.example:demo:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.5.8.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.8.RELEASE from/to central (https://repo.maven.apache.org/maven2): connect timed out and 'parent.relativePath' points at wrong local POM




经过仔细排查  发现只需改成这样就行:



需要注意的是:有时会提示

spring-boot-starter-test包不存在,然后编译器也无法下载,这时可以去maven仓库看看这个包对应的版本号,修改即可

原创粉丝点击