问题解决:idea出现the trustAnchors parameter must be non-empty

文章讲述了当遇到trustAnchorsparametermustbenon-empty错误时,可能是由于JDK证书问题。解决方法包括更换JDK,删除并重新导入Maven依赖,以及配置阿里云远程仓库。

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

当idea出现the trustAnchors parameter must be non-empty 时,可能是因为你当前jdk的证书不存在或者过期导致,你可以尝试更换jdk进行解决,更换完jdk之后

如果对应的Dependencies还是红色的,就如下操作

file-setting--Build,Execution,Deployment---Maven

找到你的maven本地仓库的位置

删除你要导入的jar包的文件,再返回到pom.xml进行导包(前提是你已经在你的maven配置中配置了阿里云的远程仓库)如下

点击conf---setting.xml

在当前位置插入这个<mirror>

配置好远程仓库

返回到pom.xml进行导包

就可以导入成功了

[INFO] Scanning for projects... Downloading from aliyunmaven: https://maven.aliyun.com/repository/public/org/springframework/boot/spring-boot-starter-parent/3.2.10/spring-boot-starter-parent-3.2.10.pom [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for com.example:dfsdf:0.0.1-SNAPSHOT: The following artifacts could not be resolved: org.springframework.boot:spring-boot-starter-parent:pom:3.2.10 (absent): Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:3.2.10 from/to aliyunmaven (https://maven.aliyun.com/repository/public): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty and 'parent.relativePath' points at no local POM @ line 8, column 13 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.example:dfsdf:0.0.1-SNAPSHOT (E:\java代码\dfsdf\pom.xml) has 1 error [ERROR] Non-resolvable parent POM for com.example:dfsdf:0.0.1-SNAPSHOT: The following artifacts could not be resolved: org.springframework.boot:spring-boot-starter-parent:pom:3.2.10 (absent): Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:3.2.10 from/to aliyunmaven (https://maven.aliyun.com/repository/public): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty and 'parent.relativePath' points at no local POM @ line 8, column 13 -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
最新发布
06-20
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值