You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by th...@apache.org on 2017/07/21 04:01:19 UTC

[02/10] commons-dbutils git commit: Setup checkstyle as a managed plugin for easier use

Setup checkstyle as a managed plugin for easier use


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

Branch: refs/heads/master
Commit: c44ef0401393c6a73a702feb948cd6973a231c1b
Parents: 60b61ac
Author: Carl Hall <th...@apache.org>
Authored: Thu Jul 20 20:48:33 2017 -0700
Committer: Carl Hall <th...@apache.org>
Committed: Thu Jul 20 20:59:48 2017 -0700

----------------------------------------------------------------------
 pom.xml | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-dbutils/blob/c44ef040/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 72fdef3..3b59ca9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -250,6 +250,21 @@
   </properties>
 
   <build>
+    <defaultGoal>clean verify apache-rat:check clirr:check checkstyle:check findbugs:check javadoc:javadoc</defaultGoal>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-checkstyle-plugin</artifactId>
+          <version>${checkstyle.plugin.version}</version>
+          <configuration>
+            <configLocation>${basedir}/checkstyle.xml</configLocation>
+            <enableRulesSummary>false</enableRulesSummary>
+            <headerLocation>${basedir}/license-header.txt</headerLocation>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
@@ -307,12 +322,6 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-checkstyle-plugin</artifactId>
-        <version>${checkstyle.plugin.version}</version>
-        <configuration>
-          <configLocation>${basedir}/checkstyle.xml</configLocation>
-          <enableRulesSummary>false</enableRulesSummary>
-          <headerLocation>${basedir}/license-header.txt</headerLocation>
-        </configuration>
       </plugin>
       <plugin>
         <groupId>org.codehaus.mojo</groupId>