---
title: 编译Spring Boot时提示Failed during checkstyle execution的解决方法
description: "编译Spring Boot过程中，检查maven-checkstyle-plugin时，提示“[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]”。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengwebs/ecosystemEnable/SpringCloud/kunpengspringcloudhoxton_02_0035.html
sourcePath: /source/zh/kunpengwebs/ecosystemEnable/SpringCloud/kunpengspringcloudhoxton_02_0035.html
indexId: 5f53f9a085f4f27c9401613c7e9da0a3df3564b5aa20589a1d48f4e5f323dd4688
---
# 编译Spring Boot时提示Failed during checkstyle execution的解决方法

#### 问题现象描述

编译Spring Boot过程中，检查maven-checkstyle-plugin时，提示“[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]”。


#### 关键过程、根本原因分析

检查maven-checkstyle-plugin失败导致，经测试在x86架构的环境中存在同样问题，本文档不涉及提交代码，故可去掉该插件，避免问题。


#### 结论、解决方案及效果

1. 打开源码目录中的pom.xml文件。

```
vim pom.xml
```


2. 按“i”进入编辑模式，用<!--和-->注释掉maven-checkstyle-plugin所在的plugin。
3. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
4. 重新编译Spring Boot。

```
./mvnw clean install -Dgpg.skip=true
```
