pom.xml: make checkstyle plugin run-able outside of the site phase

Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/2bd24caa
Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/2bd24caa
Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/2bd24caa

Branch: refs/heads/master
Commit: 2bd24caaf8629f94e7adb5c23f7477139828f385
Parents: cc9dc64
Author: Pascal Schumacher <pascalschumac...@gmx.net>
Authored: Sun Mar 19 19:23:39 2017 +0100
Committer: Pascal Schumacher <pascalschumac...@gmx.net>
Committed: Sun Mar 19 19:23:39 2017 +0100

----------------------------------------------------------------------
 pom.xml | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/2bd24caa/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 58ec51a..c339a6e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -138,6 +138,8 @@
 
     <!-- Override 01-23-2017 for java 9-ea compatibility -->
     <commons.jacoco.version>0.7.8</commons.jacoco.version>
+
+    <checkstyle.plugin.version>2.13</checkstyle.plugin.version>
   </properties>
 
 
@@ -160,6 +162,17 @@
     </pluginManagement>
     <plugins>
       <plugin>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <version>${checkstyle.plugin.version}</version>
+        <configuration>
+          <enableRulesSummary>false</enableRulesSummary>
+          <configLocation>${basedir}/checkstyle.xml</configLocation>
+          <headerLocation>${basedir}/license-header.txt</headerLocation>
+          
<suppressionsLocation>${basedir}/checkstyle-suppressions.xml</suppressionsLocation>
+          
<suppressionsFileExpression>${basedir}/checkstyle-suppressions.xml</suppressionsFileExpression>
+        </configuration>
+      </plugin>
+      <plugin>
         <artifactId>maven-assembly-plugin</artifactId>
         <configuration>
           <descriptors>
@@ -197,7 +210,7 @@
     <plugins>
       <plugin>
         <artifactId>maven-checkstyle-plugin</artifactId>
-        <version>2.13</version>
+        <version>${checkstyle.plugin.version}</version>
         <configuration>
           <enableRulesSummary>false</enableRulesSummary>
           <configLocation>${basedir}/checkstyle.xml</configLocation>

Reply via email to