Author: sebb
Date: Tue Feb 25 21:31:11 2014
New Revision: 1571828
URL: http://svn.apache.org/r1571828
Log:
Allow command-line checkstyle use (no need to run site)
Modified:
commons/proper/dbcp/trunk/pom.xml
Modified: commons/proper/dbcp/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/pom.xml?rev=1571828&r1=1571827&r2=1571828&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/pom.xml (original)
+++ commons/proper/dbcp/trunk/pom.xml Tue Feb 25 21:31:11 2014
@@ -231,6 +231,7 @@
<!-- Override CP version until that is updated -->
<!-- Version 1.0 requires Maven 3.0 or later -->
<commons.scm-publish.version>1.0</commons.scm-publish.version>
+ <commons.checkstyle.version>2.11</commons.checkstyle.version>
</properties>
<build>
@@ -246,6 +247,16 @@
</ignorePathsToDelete>
</configuration>
</plugin>
+ <!-- Allow use of "mvn checkstyle:checkstyle" -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>${commons.checkstyle.version}</version>
+ <configuration>
+ <configLocation>${basedir}/checkstyle.xml</configLocation>
+ <enableRulesSummary>false</enableRulesSummary>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
@@ -328,7 +339,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
- <version>2.11</version>
+ <version>${commons.checkstyle.version}</version>
<configuration>
<configLocation>${basedir}/checkstyle.xml</configLocation>
<enableRulesSummary>false</enableRulesSummary>