Errors occurred during the build. Errors running builder Che

不了解CheckStyle的话请先自行百度。

更换了新的Eclipse,在使用CheckStyle检查代码的时候发现总是报错如下:

Errors occurred during the build.Errors running builder ‘Checkstyle Builder’ on project ‘AAA’.Fileset from project "AAA" has no valid check configuration.……

解决办法:

1、首先确认你使用的CheckStyle检查规则是什么。

Eclipse – windows – preferences – CheckStyle 标签下查看你的默认检查规则,我的在Global Check Configurations下面默认规则是 “Rule01”。上述也可以在项目属性的CheckStyle标签下看到。

2、在项目中找到CheckStyle配置文件。

Ctrl + Shift + R 找到 .checkstyle 配置文件,在fileset 标签下找到 “check-config-name="Rule01"

<?xml version="1.0" encoding="UTF-8"?><fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false"> <fileset name="all" enabled="true" check-config-name="Rule01" local="false"><file-match-pattern match-pattern="." include-pattern="true"/> </fileset></fileset-config>

如果check-config-name属性值对应的不是步骤1中配置的规则,则会报错。

PS:如果配置了多个关联的工程,,每个工程下.checkstyle配置文件都需要检查一遍。

3、重新刷新工作区,错误消失。

版权声明:本文为博主原创文章,未经博主允许不得转载。

到一个新的环境去欣赏去看去听,

Errors occurred during the build. Errors running builder Che

相关文章:

你感兴趣的文章:

标签云: