报错信息如下
还是报错 [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 把这个目录删除了,再重新执行上面的命令就可以正常下载依赖包了

3万+

被折叠的 条评论
为什么被折叠?



