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