[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
时间: 2023-09-20 13:12:21 浏览: 156
Maven更新失败,Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:3.1
3星 · 编辑精心推荐
这个错误通常是由于 Maven 的 SSL 证书问题导致的。你可以尝试执行以下命令来解决它:
```
mvn -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true clean install
```
这个命令会在安装 Maven 时跳过 SSL 证书验证。如果这个命令也不能解决问题,你可以考虑手动下载并安装 maven-clean-plugin,或者尝试更新 Maven 的证书存储。
阅读全文