Failure to find org.springframework.boot:spring-boot-starter-parent:pom:3.0.1-SNAPSHOT

使用spring initializr创建maven程序, 在intellij idea中打开时报错: Failure to find org.springframework.boot:spring-boot-starter-parent:pom:3.0.1-SNAPSHOT in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced
原因百度了一圈 说是因为我们把maven的下载源改成了阿里云, 但是阿里云还没有同步一些关键组件
在这里插入图片描述
在这里插入图片描述

解决方法: 在pom.xml中把spring-boot-starter-parent:pom的版本降到2.X的版本就可以。如下图所示
在这里插入图片描述
控制台就不报错了
在这里插入图片描述
我这里的java版本是17,使用3.0.0这个版本加载依赖时不会报错,但是在启动服务的时候就会报错
解决如下:

http://t.csdn.cn/CWlIf

有问题可加v 876942434 ,一起交流 一起进步~

猜你喜欢

转载自blog.csdn.net/fortunate_leixin/article/details/128284381