springboot 2.2.0.BUILD-SNAPSHOT版本问题

在pom文件中引入SpringBoot的2.2.0.BUILD-SNAPSHOT版本时,遇到ArtifactDescriptorException和UnresolvableModelException错误。错误信息提到无法找到org.springframework:spring-framework-bom:5.2.0.M1的依赖,且本地仓库的缓存导致更新失败,除非强制更新或等待更新间隔。问题集中在Maven依赖问题上,需要解决Spring Framework bom的依赖问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

pom文件中引入

	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.2.0.BUILD-SNAPSHOT</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>

一直报错

ArtifactDescriptorException: Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-web:jar:2.2.0.BUILD-SNAPSHOT:
UnresolvableModelException: Failure to find org.springframework:spring-framework-bom:pom:5.2.0.M1 in
http://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    
pom.xml    /portal    line 1    Maven Dependency Problem

 

 

org.springframework:spring-framework-bom:pom:5.2.0.M1这是什么鬼啊。怎么回事

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值