IDEA2020.1 steps on the pitfalls: solving the error problem of new project maven PKIX

The error message is as follows:
Error when creating project


After carefully looking at the error report, I found that the main reason for this error is:
ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.
The reason for this error is that some dependencies and When downloading the plug-in, you need to verify the certificate. I found a lot of information on the Internet and finally solved it. Here I have collected the solutions from the Internet experts. The solution is to directly ignore the certificate verification: just set two places in IDEA: 1.
Settings
-- > Build, Execution, Deployment --> Build Tools --> Maven --> VM options for importer in importing are set to:

-Xmx768m -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=ture

importing settings

2. Settings --> Build, Execution, Deployment --> Build Tools --> Maven --> VM Options in Runner are set to:

-Dmaven.multiModuleProjectDirectory=$MAVEN_HOME
-Dmaven.wagon.http.ssl.insecure=true
-Dmaven.wagon.http.ssl.allowall=true
-Dmaven.wagon.http.ssl.ignore.validity.dates=true

Runner

Guess you like

Origin blog.csdn.net/Laputa_Castle/article/details/106471418