Rate This Document
Findability
Accuracy
Completeness
Readability

"Failed during checkstyle execution" Displayed When Compiling Spring Boot

Symptom

During the Spring Boot compilation, when maven-checkstyle-plugin is checked, the message "[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check (checkstyle-validation) on project spring-cloud-context: Failed during checkstyle execution: There is 1 error reported by Checkstyle 8.18 with checkstyle.xml ruleset. -> [Help 1]" is displayed.

Key Process and Cause Analysis

The check of maven-checkstyle-plugin fails. The same problem exists in the x86 environment. This document does not involve code committing, remove the plugin.

Conclusion and Solution

  1. Open the pom.xml file in the source code directory.
    vim pom.xml
  2. Press i to enter the insert mode and use <!-- and --> to comment out the plugin where maven-checkstyle-plugin is located.

  3. Press Esc, type :wq!, and press Enter to save the file and exit.
  4. Recompile Spring Boot.
    ./mvnw clean install -Dgpg.skip=true