configured checkstyle per module
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/digester/trunk@1243184 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/annotations-processor/pom.xml b/annotations-processor/pom.xml
index 7c19479..ae4003a 100644
--- a/annotations-processor/pom.xml
+++ b/annotations-processor/pom.xml
@@ -68,4 +68,17 @@
</resources>
</build>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <configLocation>config/maven_checks.xml</configLocation>
+ <headerLocation>config/maven-header.txt</headerLocation>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+
</project>
diff --git a/checkstyle-suppressions.xml b/core/checkstyle-suppressions.xml
similarity index 100%
rename from checkstyle-suppressions.xml
rename to core/checkstyle-suppressions.xml
diff --git a/core/pom.xml b/core/pom.xml
index 06bfe2c..a211a89 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -204,4 +204,19 @@
</plugins>
</build>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <configLocation>config/maven_checks.xml</configLocation>
+ <headerLocation>config/maven-header.txt</headerLocation>
+ <suppressionsLocation>${basedir}/checkstyle-suppressions.xml</suppressionsLocation>
+ <suppressionsFileExpression>${basedir}/checkstyle-suppressions.xml</suppressionsFileExpression>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+
</project>
diff --git a/pom.xml b/pom.xml
index 74ebbc6..893034a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -261,6 +261,11 @@
</configuration>
</plugin>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>2.8</version>
+ </plugin>
+ <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1</version>
@@ -321,17 +326,6 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>2.7</version>
- <configuration>
- <configLocation>config/maven_checks.xml</configLocation>
- <headerLocation>config/maven-header.txt</headerLocation>
- <suppressionsLocation>${basedir}/checkstyle-suppressions.xml</suppressionsLocation>
- <suppressionsFileExpression>${basedir}/checkstyle-suppressions.xml</suppressionsFileExpression>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>2.3</version>
<configuration>