使用STS创建Spring boot project报错:Project build error: Non-resolvable parent POM for...

使用Spring Tool Suite,按照向导创建Spring boot starter project,结果,报错。

Description Resource    Path    Location    Type
Project build error: Non-resolvable parent POM for com.example:demo:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.0.0.M5 from https://repo.spring.io/snapshot was cached in the local repository, resolution will not be reattempted until the update interval of spring-snapshots has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.0.M5 from/to spring-snapshots (https://repo.spring.io/snapshot): connect timed out and 'parent.relativePath' points at no local POM   pom.xml /demo   line 14 Maven pom Loading Problem

错误指向POM.xml的Parent节点。

详细查看错误提示,发现为TIME OUT。因此,需要重新触发Maven的Update。

解决方案步骤:

(1)工程–》右键–》Maven–》Update Project…

这里写图片描述

(2)取消offline选项,选择Force Update of Snapshots/Releases,OK

这里写图片描述

同步后,问题解决。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值