Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Maven checkstyle plugin fails on clover files

Chris Caywood November 13, 2014

I am having problems building several projects, which are failing the maven checkstyle plugin on the project's /target/clover instrumented code.

Is there a compatibility issue between Clover and Maven checkstyle plugin?

Example error from Jenkins is:

[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:check (default) on project datatools-domain: You have 9366 Checkstyle violations. -> [Help 1]

 

1 answer

0 votes
Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 13, 2014

Hi Chris,

I believe that there's no incompatibility between Checkstyle and Clover. You should just not run Checkstyle on sources instrumented by Clover (/target/clover/*), as this folder contains machine-generated code and any style check on such code is rather useless. I suggest running Checkstyle on original sources (/src/main, /src/test).

Cheers
Marek

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events