SpringBoot pom文件 Parent标签红叉去除_偏门操作

本文介绍了一个关于SpringBoot项目的pom.xml文件中parent标签出现连接超时报错的问题,并提供了解决方案。通过删除报错记录或调整Maven镜像设置可以有效避免此类问题。

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

SpringBoot eclipse pom文件 parent标签报错

环境

  • java version “1.8.0_201”
  • apache-maven-3.6.1
  • sts4 (eclipse 一个道理)

报错长这样:
在这里插入图片描述

图网上找的,因为我的已经解决了,文字版如下:

Description	Resource	Path	Location	Type
Non-resolvable parent POM for org.hugh:springboot202211032345:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.13 from/to central (https://repo.maven.apache.org/maven2): Connect timed out	pom.xml	/springboot202211032345	line 5	Language Servers
Description	Resource	Path	Location	Type
Non-resolvable parent POM for org.hugh:springboot202211032345:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.13 from/to central (https://repo.maven.apache.org/maven2): Connect timed out	pom.xml	/springboot202211032345	line 5	Language Servers

在这里插入图片描述
该报错已经解决,其实不理他,项目也能跑,看着碍眼而已,网上各路大神说法很多,我都试了,还是去不掉,那么此处我是如何去掉的?

答:在 [Problems] 报错上右键 ==》 delete

所以说算是偏门操作。(估计是缓存之类)。

附上一段maven settings配置:

 <mirror>
    <id>huaweicloud</id>
    <mirrorOf>*</mirrorOf>
    <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  </mirror>
 <mirror>
     <id>mirrorId</id>
     <mirrorOf>central</mirrorOf>
     <name>Human Readable Name for this Mirror.</name>
     <url>http://central.maven.org/maven2/</url>
 </mirror>
<mirror>
      <id>alimaven</id>
      <mirrorOf>*</mirrorOf> 
      <name>aliyun maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>

疫情之下,看到富士康的员工徒步回家, 感慨万千。我想说:资本家们剥削的时候,轻一点,本是同根生。
疫情,三年不回家团圆圆,今年不晓得他是不是又要说非必要不回家,再这样他自己都会觉得说不过去吧。虽然过年回家还是要被催找对象。。。
加油吧🍀

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

秋夜白

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值