configured m-checkstyle-p with workaround to avoid checking generated content
git-svn-id: https://svn.apache.org/repos/asf/maven/pom/trunk@1631068 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/maven/pom.xml b/maven/pom.xml
index 5f094c4..f8e12a7 100644
--- a/maven/pom.xml
+++ b/maven/pom.xml
@@ -794,7 +794,6 @@
<mavenPluginToolsVersion>3.3</mavenPluginToolsVersion>
<!-- don't fail check for some rules that are too hard to enforce (could even be told broken for some) -->
<checkstyle.violation.ignore>RedundantThrows,NewlineAtEndOfFile</checkstyle.violation.ignore>
- <checkstyle.excludes>**/HelpMojo.java</checkstyle.excludes>
</properties>
<dependencyManagement>
@@ -895,6 +894,9 @@
<configuration>
<configLocation>config/maven_checks.xml</configLocation>
<headerLocation>config/maven-header.txt</headerLocation>
+ <!-- workaround to avoid analysing generated content (Modello, plugin help mojo, ...) -->
+ <sourceDirectory>src/main/java</sourceDirectory>
+ <testSourceDirectory>src/test/java</testSourceDirectory>
</configuration>
</plugin>
</plugins>