解决:Maven PKIX path building failed

网上查了很多方法都无效。
最后解决:
1、设置File | 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

解决:Maven PKIX path building failed
2、大部分网上说设置第1步就可以,但是我的怎么都不行,然后将JDK1.8改成了JDK11居然好使了。