Skip to content

Commit

Permalink
PHOENIX-1962 Apply check style to the build
Browse files Browse the repository at this point in the history
  • Loading branch information
ndimiduk committed May 11, 2015
1 parent 93397af commit 978b232
Show file tree
Hide file tree
Showing 12 changed files with 392 additions and 0 deletions.
4 changes: 4 additions & 0 deletions phoenix-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
<description>Assemble Phoenix artifacts</description>
<packaging>pom</packaging>

<properties>
<top.dir>${project.basedir}/..</top.dir>
</properties>

<build>
<plugins>
<plugin>
Expand Down
4 changes: 4 additions & 0 deletions phoenix-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
<url>http://www.apache.org</url>
</organization>

<properties>
<top.dir>${project.basedir}/..</top.dir>
</properties>

<build>
<resources>
<resource>
Expand Down
4 changes: 4 additions & 0 deletions phoenix-flume/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
<artifactId>phoenix-flume</artifactId>
<name>Phoenix - Flume</name>

<properties>
<top.dir>${project.basedir}/..</top.dir>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.phoenix</groupId>
Expand Down
1 change: 1 addition & 0 deletions phoenix-pherf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<name>Phoenix - Pherf</name>

<properties>
<top.dir>${project.basedir}/..</top.dir>
</properties>

<profiles>
Expand Down
4 changes: 4 additions & 0 deletions phoenix-pig/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
<artifactId>phoenix-pig</artifactId>
<name>Phoenix - Pig</name>

<properties>
<top.dir>${project.basedir}/..</top.dir>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.phoenix</groupId>
Expand Down
4 changes: 4 additions & 0 deletions phoenix-server-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
<url>http://www.apache.org</url>
</organization>

<properties>
<top.dir>${project.basedir}/..</top.dir>
</properties>

<build>
<plugins>
<plugin>
Expand Down
4 changes: 4 additions & 0 deletions phoenix-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
<url>http://www.apache.org</url>
</organization>

<properties>
<top.dir>${project.basedir}/..</top.dir>
</properties>

<build>
<plugins>
<plugin>
Expand Down
1 change: 1 addition & 0 deletions phoenix-spark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<spark.version>1.3.0</spark.version>
<scala.version>2.10.4</scala.version>
<scala.binary.version>2.10</scala.binary.version>
<top.dir>${project.basedir}/..</top.dir>
</properties>

<dependencies>
Expand Down
23 changes: 23 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<antlr-input.dir>src/main/antlr3</antlr-input.dir>
<antlr-output.dir>target/generated-sources/antlr3</antlr-output.dir>
<test.output.tofile>true</test.output.tofile>
<top.dir>${project.basedir}</top.dir>

<!-- Hadoop Versions -->
<hbase.version>1.0.1</hbase.version>
Expand Down Expand Up @@ -330,6 +331,28 @@
</pluginManagement>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.13</version>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<configuration>
<configLocation>${top.dir}/src/main/config/checkstyle/checker.xml</configLocation>
<suppressionsLocation>${top.dir}/src/main/config/checkstyle/suppressions.xml</suppressionsLocation>
<consoleOutput>true</consoleOutput>
<headerLocation>${top.dir}/src/main/config/checkstyle/header.txt</headerLocation>
<failOnViolation><!--true-->false</failOnViolation>
<includeTestSourceDirectory><!--true-->false</includeTestSourceDirectory>
</configuration>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand Down
Loading

0 comments on commit 978b232

Please sign in to comment.