Home > Net >  Reloading maven projects in IDEA: unable to find valid certification path to requested target
Reloading maven projects in IDEA: unable to find valid certification path to requested target

Time:03-22

I am reloading a maven project in IDEA when the error occurs.

The error description is:

Could not transfer artifact org.apache.parquet:parquet-common:pom:1.11.1-h0.gdd.maem.V100R023C00.r1-SNAPSHOT from/to mae-cloudsop-repo (https://cmc.centralrepo.rnd.konglb.com/artifactory/product_maven/): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I have imported the certificate as the adopted answer. And I try to install the maven project in command line by "mvn -U clean install". It builds success. But reloading maven projects in IDEA still throw the error.

My java version is 1.8 and maven version is 3.6.0.

CodePudding user response:

IDE launches the Maven goals with the JDK you choose in the Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | Importing | JDK for importer settings. This error happens when the JVM tries to use non-trusted self-signed certificate.

It is likely that the proxy server in your network replaces the remote certificate with its own self-signed. So you need to import your certificate into the JDK trust store which you use to build by Maven (JDK for importer setting).

  • Related