问题描述
[错误] com.example:dynamoWork:0.0.1-SNAPSHOT 的不可解析的父 POM:无法传输工件 org.springframework.boot:spring-boot-starter-parent:pom:2.1.0.RELEASE from/to artie (https://repo.maven.apache.org/maven2/):sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求目标的有效认证路径,并且parent.relativePath"指向没有本地 POM @ 第 14 行,第 10 列-> [帮助 2]
[ERROR] Non-resolvable parent POM for com.example:dynamoWork:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.0.RELEASE from/to artie (https://repo.maven.apache.org/maven2/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target and 'parent.relativePath' points at no local POM @ line 14, column 10 -> [Help 2]
推荐答案
很可能你在代理后面.您需要在 settings.xml 中使用您组织的镜像站点,传递镜像站点的 ID/密码,并将站点的证书安装到您的 jre\lib\security\cacert 文件中.
It's likely that you are behind a proxy. You need to use your organisation's mirror site in settings.xml, pass mirror site's id/password and also install the site's certificates to your jre\lib\security\cacert file.
这篇关于这个 maven 认证错误表示什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!