diff --git a/src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleAggregateReport.java b/src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleAggregateReport.java index 79563e16..0419d283 100644 --- a/src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleAggregateReport.java +++ b/src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleAggregateReport.java @@ -65,10 +65,10 @@ protected CheckstyleExecutorRequest createRequest() throws MavenReportException .setExcludes(excludes) .setFailsOnError(failsOnError) .setIncludes(includes) - .setIncludeResources(includeResources) - .setIncludeTestResources(includeTestResources) .setResourceIncludes(resourceIncludes) .setResourceExcludes(resourceExcludes) + .setIncludeResources(includeResources) + .setIncludeTestResources(includeTestResources) .setIncludeTestSourceDirectory(includeTestSourceDirectory) .setListener(getListener()) .setProject(project) diff --git a/src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleReport.java b/src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleReport.java index 08d5835b..15f16e04 100644 --- a/src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleReport.java +++ b/src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleReport.java @@ -64,6 +64,7 @@ protected CheckstyleExecutorRequest createRequest() throws MavenReportException .setProject(project) .setSourceDirectories(getSourceDirectories()) .setResources(resources) + .setTestResources(testResources) .setStringOutputStream(stringOutputStream) .setSuppressionsLocation(suppressionsLocation) .setTestSourceDirectories(getTestSourceDirectories())