maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Lundberg (JIRA)" <>
Subject [jira] (MCHECKSTYLE-252) Version 2.13 includes non-source files in checks
Date Sun, 18 Jan 2015 15:56:19 GMT


Dennis Lundberg commented on MCHECKSTYLE-252:

I've had a look at the attached project and here are my findings on it.


These are included by Checkstyle because they are defined as resources in the POM.

This is because of the fix for MCHECKSTYLE-70. A work-around for your problem is available


This file I'm not sure why it is included, but I suspect that Cobertura has something to to
with it, beacause it alters the classpath of the project.

To summarize, Maven Checkstyle Plugin 2.13 does not include non-source files in the check,
but it does include more sources than version 2.12.

> Version 2.13 includes non-source files in checks
> ------------------------------------------------
>                 Key: MCHECKSTYLE-252
>                 URL:
>             Project: Maven Checkstyle Plugin
>          Issue Type: Bug
>          Components: checkstyle:checkstyle
>    Affects Versions: 2.13
>            Reporter: Michael Heuer
>             Fix For: 2.14
>         Attachments: mcheckstyle-252.tar.gz
> Updating maven-checkstyle-plugin to version 2.13 and running
> {noformat}$ mvn site{noformat}
> now includes non-source files in its checks, e.g.
> {noformat}COPYING
> target/generated-classes/cobertura/{noformat}
> While it is rather amusing to have checkstyle complain that COPYING (the text of the
GNU General Public License) doesn't include a license header, it seems that the default source
root or one of the other properties new to version 2.13 does not have an appropriate default
value.  The target directory should also be excluded by default.

This message was sent by Atlassian JIRA

View raw message