简体   繁体   中英

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException

I am using MACBook Pro and i installed java version "Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk". When i try to build the the project i am getting below error and after i download the certificates and import also same error i am facing.

  • What went wrong: A problem occurred evaluating root project 'bdsi.commerce.code'.

Could not resolve all artifacts for configuration 'classpath'. Could not resolve com.yahoo.platform.yui:yuicompressor:2.4.7. Required by: unspecified:unspecified:unspecified > Could not resolve com.yahoo.platform.yui:yuicompressor:2.4.7. > Could not get resource 'https://repo1.maven.org/maven2/com/yahoo/platform/yui/yuicompressor/2.4.7/yuicompressor-2.4.7.pom'. > Could not GET 'https://repo1.maven.org/maven2/com/yahoo/platform/yui/yuicompressor/2.4.7/yuicompressor-2.4.7.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Could not resolve org.codehaus.gpars:gpars:1.0.0. Required by: unspecified:unspecified:unspecified > Could not resolve org.codehaus.gpars:gpars:1.0.0. > Could not get resource 'https://repo1.maven.org/maven2/org/codehaus/gpars/gpars/1.0.0/gpars-1.0.0.pom'. > Could not GET 'https://repo1.maven.org/maven2/org/codehaus/gpars/gpars/1.0.0/gpars-1.0.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

If any one have idea on this please help me. Thank you in advannce.

I download the certificates and import also same error i am facing.

If you use Intellij Idea, you can add VM options on Maven.Importing and Maven.Runner configs

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM