首页 > 解决方案 > 这个 Maven 认证错误表明了什么?

问题描述

[错误] com.example:dynamoWork:0.0.1-SNAPSHOT 的不可解析父 POM:无法从/到 artie 传输工件 org.springframework.boot:spring-boot-starter-parent:pom:2.1.0.RELEASE (https://repo.maven.apache.org/maven2/):sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求目标的有效证书路径和'parent.relativePath' 指向没有本地 POM @ 第 14 行,第 10 列 -> [帮助 2]

标签: javamavenspring-bootmaven-2maven-plugin

解决方案


您很可能在代理后面。您需要在 settings.xml 中使用您组织的镜像站点,传递镜像站点的 id/密码,并将站点的证书安装到您的 jre\lib\security\cacert 文件中。


推荐阅读