问题详情:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (default) on project storm-bridge-shim: Error resolving project artifact: The following artifacts could not be resolved: ring-cors:ring-cors:pom:0.1.5 (present, but unavailable): Could not transfer artifact ring-cors:ring-cors:pom:0.1.5 from/to hortonworks.repo (https://repo.hortonworks.com/content/repositories/releases): sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed for project ring-cors:ring-cors:jar:0.1.5: NotAfter: Thu Sep 11 07:59:59 CST 2025 -> [Help 1]
包已经下载下来,但是maven编译不通过提示上述错误。百度查询需要添加参数,但是并不好用
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true -Dmaven.test.skip=true编译过程中,IDEA 弹窗一定要点击信任证书 Save as trusted。然后将包下的 _remote.repositories 和 .lastUpdated文件全部删除,再次执行 clean package命令