hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pv...@apache.org
Subject hive git commit: HIVE-17842: Run checkstyle on ptest2 module with proper configuration (Adam Szita via Peter Vary)
Date Wed, 25 Oct 2017 16:07:56 GMT
Repository: hive
Updated Branches:
  refs/heads/master 8123c71f5 -> eb92b4fc4


HIVE-17842: Run checkstyle on ptest2 module with proper configuration (Adam Szita via Peter
Vary)


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

Branch: refs/heads/master
Commit: eb92b4fc46a05a52bdc5162d3ee94763efc8b6aa
Parents: 8123c71
Author: Peter Vary <pvary@cloudera.com>
Authored: Wed Oct 25 18:07:23 2017 +0200
Committer: Peter Vary <pvary@cloudera.com>
Committed: Wed Oct 25 18:07:23 2017 +0200

----------------------------------------------------------------------
 testutils/ptest2/pom.xml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/eb92b4fc/testutils/ptest2/pom.xml
----------------------------------------------------------------------
diff --git a/testutils/ptest2/pom.xml b/testutils/ptest2/pom.xml
index d86c7bf..8563b54 100644
--- a/testutils/ptest2/pom.xml
+++ b/testutils/ptest2/pom.xml
@@ -29,6 +29,8 @@ limitations under the License.
     <log4j2.version>2.6.2</log4j2.version>
     <spring.framework.version>3.2.16.RELEASE</spring.framework.version>
     <jclouds.version>2.0.0</jclouds.version>
+    <checkstyle.conf.dir>${basedir}/../../checkstyle/</checkstyle.conf.dir>
+    <maven.checkstyle.plugin.version>2.12.1</maven.checkstyle.plugin.version>
   </properties>
 
   <repositories>
@@ -163,6 +165,14 @@ limitations under the License.
       <!-- plugins are always listed in sorted order by groupId, artifectId -->
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <configuration>
+          <configLocation>${checkstyle.conf.dir}/checkstyle.xml</configLocation>
+          <propertyExpansion>basedir=${checkstyle.conf.dir}</propertyExpansion>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <version>3.1</version>
         <configuration>
@@ -230,6 +240,11 @@ limitations under the License.
       <plugins>
     <!-- plugins are always listed in sorted order by groupId, artifectId -->
         <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-checkstyle-plugin</artifactId>
+          <version>${maven.checkstyle.plugin.version}</version>
+        </plugin>
+        <plugin>
           <groupId>org.apache.rat</groupId>
           <artifactId>apache-rat-plugin</artifactId>
           <version>0.9</version>


Mime
View raw message