Mven 构建 - PKIX 路径构建失败

问题描述

当我在终端中运行“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

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

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)