summaryrefslogtreecommitdiff
path: root/zookeeper-contrib/pom.xml
diff options
context:
space:
mode:
authortison <wander4096@gmail.com>2019-08-27 09:23:11 +0200
committerNorbert Kalmar <nkalmar@apache.org>2019-08-27 09:23:11 +0200
commitb8d5d9c1c163f3be4f6ec7d2eb520d37d9352c73 (patch)
treee77eb01308c09ce0ddc12b3d6e76cf9aeca7508b /zookeeper-contrib/pom.xml
parentb5399da61d305da2fe80dc9be6f9bba5037209cf (diff)
downloadzookeeper-b8d5d9c1c163f3be4f6ec7d2eb520d37d9352c73.tar.gz
ZOOKEEPER-3517: Turn on BookKeeper checkstyle configuration at project level
Turn on BookKeeper checkstyle configuration at project level. In zookeeper-contrib we still use checkstyle-simple because there are lots of conflicts which is not worth to fix. Author: tison <wander4096@gmail.com> Reviewers: Enrico Olivelli <eolivelli@apache.org>, Norbert Kalmar <nkalmar@apache.org> Closes #1060 from TisonKun/ZOOKEEPER-3517
Diffstat (limited to 'zookeeper-contrib/pom.xml')
-rwxr-xr-xzookeeper-contrib/pom.xml34
1 files changed, 33 insertions, 1 deletions
diff --git a/zookeeper-contrib/pom.xml b/zookeeper-contrib/pom.xml
index e5d43c2ce..075363f3c 100755
--- a/zookeeper-contrib/pom.xml
+++ b/zookeeper-contrib/pom.xml
@@ -63,8 +63,40 @@
</compilerArgs>
</configuration>
</plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>3.1.0</version>
+ <dependencies>
+ <dependency>
+ <groupId>com.puppycrawl.tools</groupId>
+ <artifactId>checkstyle</artifactId>
+ <version>${checkstyle.version}</version>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <configLocation>checkstyle-simple.xml</configLocation>
+ <suppressionsLocation>checkstyleSuppressions.xml</suppressionsLocation>
+ <encoding>UTF-8</encoding>
+ <consoleOutput>true</consoleOutput>
+ <failOnViolation>true</failOnViolation>
+ <includeResources>false</includeResources>
+ <includeTestSourceDirectory>true</includeTestSourceDirectory>
+ <includeTestResources>false</includeTestResources>
+ </configuration>
+ <executions>
+ <execution>
+ <id>checkstyle</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</pluginManagement>
</build>
-</project> \ No newline at end of file
+</project>