关于IDEA2020.1新建项目maven PKIX 报错问题解决方法
作者:Laputa_Castle 时间:2023-12-26 14:04:44
报错问题如图:
仔细看报错问题后发现,这个错误的主要原因是:
ValidatorException:PKIX path building failed : sun.security.provider.certpath.SunCertPathBuilderException : unable to find valid certification path to requested target
造成这个错误的原因是因为有些依赖和插件下载的时候需要验证证书,网上找了好多资料最终解决的,我这里集合了网上大神的解决方案,解决方法是直接忽略证书验证:
在IDEA中设置两处地方即可:
一、Settings --> Build, Execution, Deployment --> Build Tools --> Maven --> importing 中的 VM options for importer 设置为:
-Xmx768m -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=ture
二、Settings --> Build, Execution, Deployment --> Build Tools --> Maven --> Runner 中的 VM Options 设置为:
-Dmaven.multiModuleProjectDirectory=$MAVEN_HOME
-Dmaven.wagon.http.ssl.insecure=true
-Dmaven.wagon.http.ssl.allowall=true
-Dmaven.wagon.http.ssl.ignore.validity.dates=true
来源:https://blog.csdn.net/Laputa_Castle/article/details/106471418
标签:IDEA2020.1,maven,PKIX,报错
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Android 手势 正则匹配图片实例代码
2021-09-22 05:23:42
C#获取web.config配置文件内容的方法
2023-12-24 12:22:27
C#/VB.NET 实现在PDF表格中添加条形码
2022-12-25 19:58:16
![](https://img.aspxhome.com/file/2023/6/94556_0s.png)
C# 表达式目录树Expression的实现
2023-04-03 22:57:32
![](https://img.aspxhome.com/file/2023/0/85670_0s.png)
Android 存储路径选择方法
2022-04-03 21:05:42
Android实现与Apache Tomcat服务器数据交互(MySql数据库)
2023-06-02 21:53:39
![](https://img.aspxhome.com/file/2023/3/125523_0s.png)
Flutter基于Dart Unwrapping Multiple Optional小技巧
2023-07-05 11:44:19
详解Java弱引用(WeakReference)的理解与使用
2022-07-13 12:37:32
android编程之ip2id程序实例
2023-07-20 16:08:09
![](https://img.aspxhome.com/file/2023/1/138061_0s.png)
详解SpringCloud Zuul过滤器返回值拦截
2023-02-05 07:59:37
Mybatis中的@Select、foreach用法
2023-06-05 00:07:20
SpringBoot 应用程序测试实现方案
2021-12-18 04:27:54
![](https://img.aspxhome.com/file/2023/9/86729_0s.jpg)
java并发包JUC同步器框架AQS框架原文翻译
2022-08-22 22:17:23
![](https://img.aspxhome.com/file/2023/8/84618_0s.png)
C#实现根据银行卡卡号判断银行名
2021-08-21 07:14:00
![](https://img.aspxhome.com/file/2023/6/108706_0s.png)
C# Winform消息通知系统托盘气泡提示框ToolTip控件
2023-01-13 23:31:02
![](https://img.aspxhome.com/file/2023/5/68075_0s.jpg)
C/C++混合编程之extern “C”的使用示例
2021-11-18 03:33:58
![](https://img.aspxhome.com/file/2023/3/109783_0s.png)
8种常见的Java不规范代码
2023-05-24 10:59:53
![](https://img.aspxhome.com/file/2023/5/70335_0s.jpg)
iOS新浪微博、腾讯微博分享功能实例
2023-06-16 09:15:53
![](https://img.aspxhome.com/file/2023/0/101960_0s.png)
Android Studio gradle 编译提示‘default not found’ 解决办法
2023-07-19 09:23:06
javaweb Servlet开发总结(二)
2023-10-31 11:51:48
![](https://img.aspxhome.com/file/2023/7/58567_0s.png)