文章目录
一、idea的工具下载maven报错
报错信息如下:
java
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

出现问题的原因:idea工具访问https的maven仓库下载不了maven依赖,是因为idea访问https的仓库需要配置授信证书,但是这种方法比较麻烦。那就配置忽略ssl配置,不让idea检查ssl。
二、解决办法
1.方法一:
配置代码如下(示例):
java
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true

2.方法二:
进入到项目工程目录下:代码如下(示例)图片如下:
c
mvn install -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
总结
以上就是今天帮助新人解决idea的下载不了的方法,如果大家喜欢点赞、加关注、支持小编,是我持续创作的动力