一、问题复现
[ERROR] Failed to execute goal on project portal-platform: Could not resolve dependencies for p roject com.xxx:portal-platform:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at com.to phant.component:xxx-spring-boot-starter-mybatis:jar:1.2.0-SNAPSHOT: Failed to read artifact descriptor for com.xxx.component: xxx-spring-boot-starter-mybatis:jar:1.2.0-SNAPSHOT: Co uld not transfer artifact com.xxx.component: xxx-spring-boot-starter-mybatis:pom:1.2.0-S NAPSHOT from/to xxx-public (https://mirrors.xxx.com/repository/maven-public): Transfer failed for https://irrors.xxx.com/repository/maven-public/com/tephant component/xxx-sp ring-boot-starter-mybatis/1.2.0-SNAPSHOT/xxx-spring-boot-starter-mybatis-1.2.0-SNAPSHOT.po : sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.
certpath.SunCertPathBuilderException: unable to find valid certification path to requested targ et -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
二、解决方案
2.1 jenkins处理
在部署是加上命令-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
2.2 IDEA