Maven ArtifactDescriptorException: Failed to read artifact descriptor for com.sun.mail 异常

本文提供了一种解决Maven依赖冲突的有效方法,包括清理本地仓库中com/sun/mail的旧版本,并更新项目以确保依赖正确加载。

解决办法:

1.找到你的本地maven仓库 删除com/sun/mail下的所有文件。

2.右击项目 选择maven→updateProject 即可 坐等错误提示消失。

看看这段报错 [ERROR] Failed to execute goal on project cipc-api-server: Could not collect dependencies for project com.tplink.nbu.cipc:cipc-api-server:jar:1.32.8 [ERROR] Failed to read artifact descriptor for com.tplink:account-api-sdk:jar:1.3.716 [ERROR] Caused by: The following artifacts could not be resolved: com.tplink:account-api-sdk:pom:1.3.716 (absent): Could not transfer artifact com.tplink:account-api-sdk:pom:1.3.716 from/to smb-nexus (https://nexus.crd.tp-link.com/repository/smb-maven-public/): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [ERROR] Failed to read artifact descriptor for com.tplink.nbu.common:common_api_proxy:jar:1.0.95 [ERROR] Caused by: The following artifacts could not be resolved: com.tplink.nbu.common:common_api_proxy:pom:1.0.95 (absent): Could not transfer artifact com.tplink.nbu.common:common_api_proxy:pom:1.0.95 from/to smb-nexus (https://nexus.crd.tp-link.com/repository/smb-maven-public/): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [ERROR] Failed to read artifact descriptor for com.ctrip.framework.apollo:apollo-client:jar:2.0.2 [ERROR] Caused by: The following artifacts could not be resolved: com.ctrip.framework.apollo:apollo-client:pom:2.0.2 (absent): Could not transfer artifact com.ctrip.framework.apollo:apollo-client:pom:2.0.2 from/to smb-nexus (https://nexus.crd.tp-link.com/repository/smb-maven-public/): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
09-12
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值