idea+maven3.6.1构建maven工程报PKIX:unable to find valid certification path to requested target

 转载于  https://www.cnblogs.com/xiaoping1993/p/9717649.html 

 

 注意可能在idea工具执行java命令提示找不到类,返回类的最上层包路径

然后再执行java  xxx(编译后的class文件),其他操作,参考上述链接

 

 

第二种解决方式

  IDEA--> maven --> runner --> vm options设置参数值-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

posted @ 2019-12-24 16:27  秋水秋色  阅读(1259)  评论(0编辑  收藏  举报