Mven 构建 - PKIX 路径构建失败

时间:2021-06-02 23:00:21

标签: maven checkstyle maven-checkstyle-plugin

当我在终端中运行“mvn clean install”时出现以下错误。

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check (validate) on project test-dependencies: Failed during checkstyle execution: Failed to load suppressions file from: /Users/test/Documents/Team/workspace/test/test-dependencies/target/checkstyle-suppressions.xml: Unable to read /Users/test/Documents/Team/workspace/test/test-dependencies/target/checkstyle-suppressions.xml: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]

该文件确实存在,我可以访问它。

当我跳过 checkstyle 时,构建运行良好。

<块引用>

mvn clean install -Dcheckstyle.skip=true

不知道如何分类。有什么帮助吗?

0 个答案:

没有答案
相关问题