背景
虽然标题貌似跟证书PKIX有关,实则没有半毛钱关系。昨晚上整理电脑的文件夹,将项目文件夹移动了位置,今天上午开完公司站会就开始车祸现场,一直到下午一点才解决。┭┮﹏┭┮
问题
idea 导入maven项目报错,错误信息如下:
2020-03-10 12:42:14,606 [ 138105] INFO - #org.jetbrains.idea.maven - [WARNING] Failure to transfer XXX-api-dependencies:0.0.1-SNAPSHOT/maven-metadata.xml from https://nexus.XXX.cn/repository/maven-public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-releases has elapsed or updates are forced. Original error: Could not transfer metadata XXX-api-dependencies:0.0.1-SNAPSHOT/maven-metadata.xml from/to nexus-releases (https://nexus.XXX.cn/repository/maven-public): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
2020-03-10 12:42:14,656 [ 138155] INFO - #org.jetbrains.idea.maven - org.apache.maven.model.resolution.UnresolvableModelException: Failure to transfer XXX-api-dependencies:pom:0.0.1-SNAPSHOT from https://nexus.XXX.cn/repository/maven-public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-releases has elapsed or updates are forced. Original error: Could not transfer artifact XXX-api-dependencies:pom:0.0.1-SNAPSHOT from/to nexus-releases (https://nexus.XXX.cn/repository/maven-public): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
java.lang.RuntimeException: org.apache.maven.model.resolution.UnresolvableModelException: Failure to transfer XXX-api-dependencies:pom:0.0.1