美文网首页
彻底解决:[FATAL] Non-resolvable pare

彻底解决:[FATAL] Non-resolvable pare

作者: 搬砖的作家 | 来源:发表于2022-10-17 13:35 被阅读0次

一、问题出现场景

某天正用电脑开心的玩耍,突然兴起,想重装系统,想让电脑起飞飞起,没想到给自己白白找了很多工作,速度也没有快多少。特别是我重新运行我的项目时,发现mvn项目频繁报错,报错信息如下

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.redskt:redcloudcollege:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.1.RELEASE from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): transfer failed for http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-starter-parent/2.2.1.RELEASE/spring-boot-starter-parent-2.2.1.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 9, column 13

二、解决方案

方法1:在执行maven命令时忽略证书检查

在此处设置忽略证书检查,在画线的地方填入

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
方法2: 升级jdk版本 (全网独家,这个才是最正确的方案,推测是maven跟jdk版本不匹配导致)

这个是我自己摸索出来的,将JAVA的jdk版本升级到Openjdk 11以上版本就能解决
安装教程可以查看我这篇文章
https://www.jianshu.com/p/9531db583f08

相关文章

网友评论

      本文标题:彻底解决:[FATAL] Non-resolvable pare

      本文链接:https://www.haomeiwen.com/subject/iybgirtx.html