执行maven命令,maven 报错
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies
could not be resolved: Failed to read artifact descriptor for
org.apache.maven.plugins:maven-resources-plugin:jar:2.6:
Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6
from/to alimaven (http://maven.aliyun.com/nexus/content/repositories/central/):
transfer failed for http://maven.aliyun.com/nexus/content/
repositories/central/org/apache/maven/plugins/m
aven-resources-plugin/2.6/maven-resources-plugin-2.6.pom: PKIX path building
failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target -> [
核心是最后一句证书,需要配置跳过即可

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
抄袭:https://blog.youkuaiyun.com/cssnnd/article/details/116110148
本文介绍了解决Maven构建过程中遇到的资源插件证书验证失败的问题。主要原因是阿里云Maven仓库中资源插件pom文件的证书无法验证,通过设置Maven参数允许不安全的SSL连接来规避此问题。

8786

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



