Mven build - PKIX path building failed

274 Views Asked by At

I am getting the following error, When I run "mvn clean install" in the terminal.

[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]

The file does exist and I am able to access it.

The build runs fine when I skip checkstyle.

mvn clean install -Dcheckstyle.skip=true

Not sure how to triage this. Any help?

0

There are 0 best solutions below