尝试解决证书上的gradle构建错误

时间:2019-04-09 21:28:28

标签: maven spring-boot gradle pkix

  1. 使用keytool -importcert将maven证书安装到cacert中。
  2. 逐步构建

    buildscript {
    ext {
     springBootVersion = '2.1.4.RELEASE'
    }
    repositories {
      mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle- 
       plugin:${springBootVersion}")
    
      }
    

    }

错误:-

 https://repo.maven.apache.org/maven2/org/springframework/boot/spring- 
 boot-gradle-plugin/2.1.4.RELEASE/spring-boot-gradle-plugin- 
 2.1.4.RELEASE.pom'.
           > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

要解决此错误,我缺少什么?

0 个答案:

没有答案