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