aboutsummaryrefslogtreecommitdiffstats
path: root/zookeeper-command-line-client/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'zookeeper-command-line-client/pom.xml')
-rw-r--r--zookeeper-command-line-client/pom.xml17
1 files changed, 12 insertions, 5 deletions
diff --git a/zookeeper-command-line-client/pom.xml b/zookeeper-command-line-client/pom.xml
index 64208e283bf..719bf5aa980 100644
--- a/zookeeper-command-line-client/pom.xml
+++ b/zookeeper-command-line-client/pom.xml
@@ -57,11 +57,6 @@
<artifactId>log4j-over-slf4j</artifactId>
<scope>compile</scope>
</dependency>
- <dependency>
- <!-- Needed by zookeeper, which only has an optional dependency. -->
- <groupId>com.github.spotbugs</groupId>
- <artifactId>spotbugs-annotations</artifactId>
- </dependency>
</dependencies>
<build>
<plugins>
@@ -83,6 +78,18 @@
<mainClass>com.yahoo.vespa.zookeeper.cli.Main</mainClass>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <compilerArgs>
+ <!-- Turn off classfile warnings where spotbugs is pulled in transitively. -->
+ <arg>-Xlint:all</arg>
+ <arg>-Xlint:-classfile</arg>
+ <arg>-Werror</arg>
+ </compilerArgs>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>