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

[复制链接]
查看11 | 回复8 | 2021-1-27 05:42:40 | 显示全部楼层 |阅读模式
pom.xml中的代码

org.springframework.boot
spring-boot-starter-parent
1.3.0.RELEASE


org.springframework.boot
spring-boot-starter-web

parent处报错:
Projectbuilderror:Non-resolvableparentPOM:Failuretotransferorg.springframework.boot:spring-boot-starter-parent:pom:1.3.0.RELEASEfromhttp://repo1.maven.org/maven2wascachedinthelocalrepository,resolutionwillnotbereattempteduntiltheupdateintervalofcentralhaselapsedorupdatesareforced.Originalerror:Couldnottransferartifactorg.springframework.boot:spring-boot-starter-parent:pom:1.3.0.RELEASEfrom/tocentral(http://repo1.maven.org/maven2):Connecttimesoutand'parent.relativePath'pointsatwronglocalPOM
分 -->
回复

使用道具 举报

千问 | 2021-1-27 05:42:40 | 显示全部楼层
貌似是找不到maven仓库
你用阿里云的仓库试试吧http://maven.aliyun.com
另外1.3.0.RELEASE这个版本有点老,用最新的版本吧

回复

使用道具 举报

千问 | 2021-1-27 05:42:40 | 显示全部楼层
spring-boot-starter-parent没有下载好,进去仓库删掉,重新下载。。。
回复

使用道具 举报

千问 | 2021-1-27 05:42:40 | 显示全部楼层
大兄弟你这个问题怎么解决的我现在遇到了这个问题折腾两天了都没有找到解决办法如果你解决了麻烦帮忙解决一下万分感谢
回复

使用道具 举报

千问 | 2021-1-27 05:42:40 | 显示全部楼层
补一下这个错误信息:Failuretotransferorg.springframework.boot:spring-boot-starter-parent:pom:2.1.8.RELEASEfromhttps://repo.maven.apache.org/maven2wascachedinthelocalrepository,resolutionwillnotbereattempteduntiltheupdateintervalofcentralhaselapsedorupdatesareforced.Originalerror:Couldnottransferartifactorg.springframework.boot:spring-boot-starter-parent:pom:2.1.8.RELEASEfrom/tocentral(https://repo.maven.apache.org/maven2):sun.security.validator.ValidatorException:PKIXpathbuildingfailed:sun.security.provider.certpath.SunCertPathBuilderException:unabletofindvalidcertificationpathtorequestedtarget
回复

使用道具 举报

千问 | 2021-1-27 05:42:40 | 显示全部楼层
Couldnotfindartifactorg.springframework.boot:spring-boot-maven-plugin:pom:incentral(https://repo.maven.apache.org/maven2)
遇到同样问题
回复

使用道具 举报

千问 | 2021-1-27 05:42:40 | 显示全部楼层
问题已解决,是证书的问题,
回复

使用道具 举报

千问 | 2021-1-27 05:42:40 | 显示全部楼层
这是博客地址
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:unabletofindvalidcertificationpathtorequestedtarget这个错就是证书的问题,两种解决方法,看博客
回复

使用道具 举报

千问 | 2021-1-27 05:42:40 | 显示全部楼层
引用3楼壹只流浪猫的回复:大兄弟你这个问题怎么解决的我现在遇到了这个问题折腾两天了都没有找到解决办法如果你解决了麻烦帮忙解决一下万分感谢
你好,请问你现在解决了这个问题了吗,我部署微服务的使用也是一样maven项目出了这个问题,本地仓库一直找不到某一个依赖包
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行