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

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




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

springboot+maven pom文件保错问题springboot+maven pom文件保错问题springboot+maven pom文件保错问题


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

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

相关文章:

  • 2022-12-23
  • 2022-02-18
  • 2021-12-21
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2021-10-23
猜你喜欢
  • 2021-08-23
  • 2021-08-24
  • 2021-12-23
  • 2022-12-23
  • 2021-07-13
  • 2021-11-07
  • 2021-11-11
相关资源
相似解决方案