【错误】Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:3.2.1.RELEASE

Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:3.2.1.RELEASE in alimaven

在idea中使用maven命令

mvn spring-boot:run

运行项目的时候,提示以下错误

// An highlighted block
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.example:demo1:0.0.1-SNAPSHOT: The following artifacts could not be resolved: org.springframework.boot:spring-boot-starter-p
arent:pom:3.2.1.RELEASE (absent): Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:3.2.1.RELEASE in alimaven (http://maven.aliyun.com/
nexus/content/groups/public/) and 'parent.relativePath' points at no local POM @ line 5, column 13

原因:阿里云maven中没有3.2.1版本

解决方法:
将3.2.1.RELEASE删除,然后随便写入某一个数字,例如6(如果输入的数字不存在,可以换一个别的数字,例如0),idea会自动展示出阿里云maven中存在的版本,从里面选择一个版本就可以了
自动展示版本

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值