diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-04-08 16:54:27 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2024-04-08 18:29:33 +0200 |
commit | 6bb907b40f97a78e7e1529110abbf85f9f7d8828 (patch) | |
tree | b127a45dc862e50e013557472368584869246292 /zookeeper-command-line-client | |
parent | 82966e62b9de3b344a633a2e0c41929ffe173282 (diff) |
Turn off classfile warnings where zookeeper is pulled in due to issues with spotbugs SuppressWarning annotation.
Diffstat (limited to 'zookeeper-command-line-client')
-rw-r--r-- | zookeeper-command-line-client/pom.xml | 17 |
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> |