Java项目无法下载pom中的依赖包报错解决

报错信息如下

还是报错 [ERROR] Failed to execute goal on project FlinkTestCode: Could not collect dependencies for project com.sunline:FlinkTestCode:jar:1.0-SNAPSHOT
[ERROR] Failed to read artifact descriptor for org.glassfish:javax.el:jar:3.0.1-b06-SNAPSHOT
[ERROR] 	Caused by: The following artifacts could not be resolved: org.glassfish:javax.el:pom:3.0.1-b06-SNAPSHOT (absent): Could not transfer artifact org.glassfish:javax.el:pom:3.0.1-b06-SNAPSHOT from/to jvnet-nexus-snapshots (https://maven.java.net/content/repositories/snapshots): (certificate_expired) PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[ERROR] Failed to read artifact descriptor for org.glassfish:javax.el:jar:3.0.1-b07-SNAPSHOT
[ERROR] 	Caused by: The following artifacts could not be resolved: org.glassfish:javax.el:pom:3.0.1-b07-SNAPSHOT (absent): Could not transfer artifact org.glassfish:javax.el:pom:3.0.1-b07-SNAPSHOT from/to jvnet-nexus-snapshots (https://maven.java.net/content/repositories/snapshots): (certificate_expired) PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[ERROR] Failed to read artifact descriptor for org.glassfish:javax.el:jar:3.0.1-b08-SNAPSHOT
[ERROR] 	Caused by: The following artifacts could not be resolved: org.glassfish:javax.el:pom:3.0.1-b08-SNAPSHOT (absent): Could not transfer artifact org.glassfish:javax.el:pom:3.0.1-b08-SNAPSHOT from/to jvnet-nexus-snapshots (https://maven.java.net/content/repositories/snapshots): (certificate_expired) PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[ERROR] Failed to read artifact descriptor for org.glassfish:javax.el:jar:3.0.1-b11-SNAPSHOT
[ERROR] 	Caused by: The following artifacts could not be resolved: org.glassfish:javax.el:pom:3.0.1-b11-SNAPSHOT (absent): Could not transfer artifact org.glassfish:javax.el:pom:3.0.1-b11-SNAPSHOT from/to jvnet-nexus-snapshots (https://maven.java.net/content/repositories/snapshots): (certificate_expired) PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
[ERROR] 
[ERROR] -> [Help 1]
[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/DependencyResolutionException
(base) ➜  FlinkTestCode git:(master) ✗

尝试在命令行执行下面的命令也不行

mvn clean install -U -DskipTests

最后解决办法是找到.m2/repository/org/glassfish/javax.el  把这个目录删除了,再重新执行上面的命令就可以正常下载依赖包了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

未竟

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

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

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

打赏作者

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

抵扣说明:

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

余额充值