创建springboot的时候报错,有人知道怎么解决吗

yigerendeshiguang 2017-08-23 09:59:34
pom.xml中的代码

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.0.RELEASE</version>
</parent>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>

parent处报错:

Project build error: Non-resolvable parent POM: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.3.0.RELEASE from http://repo1.maven.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.3.0.RELEASE from/to central (http://repo1.maven.org/maven2): Connect times out and 'parent.relativePath' points at wrong local POM
...全文
6786 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
release版本号改成你的依赖里面的版本号就好了
liangrenbin 2020-05-15
  • 打赏
  • 举报
回复
引用 4 楼 壹只流浪猫 的回复:
补一下 这个错误信息 : Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.1.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:2.1.8.RELEASE from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
我也是碰到这个问题,之前用的好好的,突然就这样了,搞了很久也没搞好
weixin_42777385 2020-04-22
  • 打赏
  • 举报
回复
引用 3 楼 壹只流浪猫 的回复:
大兄弟 你这个问题怎么解决的 我现在遇到了 这个问题 折腾两天了 都没有找到解决办法 如果你解决了 麻烦帮忙解决一下 万分感谢
你好,请问你现在解决了这个问题了吗,我部署微服务的使用也是一样maven项目出了这个问题,本地仓库一直找不到某一个依赖包
fungnotl 2020-02-24
  • 打赏
  • 举报
回复
这是博客地址 http://www.fungnotl.cn/2020/02/24/%E7%9C%9F%E6%AD%A3%E8%A7%A3%E5%86%B3Could%20not%20transfer%20artifact%20org.springframework.boot_spring-boot-starter-parent_pom/ clean之后报sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target这个错就是证书的问题,两种解决方法,看博客
fungnotl 2020-02-24
  • 打赏
  • 举报
回复
问题已解决,是证书的问题,
不服老的码农 2019-11-07
  • 打赏
  • 举报
回复
Could not find artifact org.springframework.boot:spring-boot-maven-plugin:pom: in central (https://repo.maven.apache.org/maven2) 遇到同样问题
壹只流浪猫 2019-10-03
  • 打赏
  • 举报
回复
补一下 这个错误信息 : Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.1.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:2.1.8.RELEASE from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
壹只流浪猫 2019-10-03
  • 打赏
  • 举报
回复
大兄弟 你这个问题怎么解决的 我现在遇到了 这个问题 折腾两天了 都没有找到解决办法 如果你解决了 麻烦帮忙解决一下 万分感谢
cdglynn 2017-08-23
  • 打赏
  • 举报
回复
貌似是找不到maven仓库 你用阿里云的仓库试试吧http://maven.aliyun.com 另外1.3.0.RELEASE这个版本有点老,用最新的版本吧
李德胜1995 2017-08-23
  • 打赏
  • 举报
回复
spring-boot-starter-parent没有下载好,进去仓库删掉,重新下载。。。

50,523

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧