Allow checkstyle to be run interactively (not part of site build)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1485830 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2013-05-23 19:15:59 +00:00
parent c6c762ad9d
commit 006188ebb9
1 changed files with 20 additions and 6 deletions

26
pom.xml
View File

@ -123,6 +123,11 @@ CSV files of various types.
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<commons.encoding>UTF-8</commons.encoding>
<!--
Use 2.9.1 instead of 2.10; 2.10 seems to scan the 'target' dir
and wants license headers in .properties to be the header for Java files.
-->
<checkstyle.version>2.9.1</checkstyle.version>
<checkstyle.header.file>${basedir}/LICENSE-header.txt</checkstyle.header.file>
</properties>
@ -147,22 +152,31 @@ CSV files of various types.
</excludes>
</configuration>
</plugin>
<!-- Allow checkstyle to be run interactively; keep in sync with report config below -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle.version}</version>
<configuration>
<configLocation>${basedir}/checkstyle.xml</configLocation>
<enableRulesSummary>false</enableRulesSummary>
<headerLocation>${checkstyle.header.file}</headerLocation>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<!-- Keep in sync with build config above -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<!-- Use 2.9.1 instead of 2.10; 2.10 seems to scan the 'target'
dir and wants license headers in .properties to be the header for
Java files. -->
<version>2.9.1</version>
<version>${checkstyle.version}</version>
<configuration>
<configLocation>${basedir}/checkstyle.xml</configLocation>
<enableRulesSummary>false</enableRulesSummary>
<headerLocation>${basedir}/LICENSE-header.txt</headerLocation>
<headerLocation>${checkstyle.header.file}</headerLocation>
</configuration>
<!-- We need to specify reportSets because 2.9.1 creates two reports -->
<reportSets>
@ -198,7 +212,7 @@ CSV files of various types.
</tags>
</configuration>
</plugin>
<!--
<!--
NOTE: this requires Maven 3.0.x; when used with Maven 2.2.1, the following error is seen:
Embedded error: Error rendering Maven report: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
-->