mvn无法从中心仓库获得依赖,关闭证书检查

mvn无法从中心仓库获得依赖,关闭证书检查

Transfer failed for http://reop.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.9.8.pom PKIZ path building failed:sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requests target

  • 帮同学解决问题的时候,他导入我的项目时,利用maven下载依赖时报错。看到安全字样,应该是未通过中心仓库的安全检查,关闭中心安全检查。mvn 命令下关闭ssl证书检查

    -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
    
posted @ 2020-10-11 23:01  FizzPu  阅读(268)  评论(0编辑  收藏  举报