aboutsummaryrefslogtreecommitdiffstats
path: root/clustercontroller-core
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-04-08 16:54:27 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2024-04-08 18:29:33 +0200
commit6bb907b40f97a78e7e1529110abbf85f9f7d8828 (patch)
treeb127a45dc862e50e013557472368584869246292 /clustercontroller-core
parent82966e62b9de3b344a633a2e0c41929ffe173282 (diff)
Turn off classfile warnings where zookeeper is pulled in due to issues with spotbugs SuppressWarning annotation.
Diffstat (limited to 'clustercontroller-core')
-rw-r--r--clustercontroller-core/pom.xml16
1 files changed, 9 insertions, 7 deletions
diff --git a/clustercontroller-core/pom.xml b/clustercontroller-core/pom.xml
index 579e8dd91bb..2a47980ebf8 100644
--- a/clustercontroller-core/pom.xml
+++ b/clustercontroller-core/pom.xml
@@ -103,13 +103,6 @@
<scope>provided</scope>
</dependency>
<dependency>
- <!-- Not used by this module, but compilation fails without it because zookeeper uses these annotations.
- Provided scoped here to avoid dependents getting it transitively. -->
- <groupId>com.github.spotbugs</groupId>
- <artifactId>spotbugs-annotations</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<scope>provided</scope>
@@ -130,6 +123,15 @@
<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>-Xlint:-serial</arg>
+ <arg>-Werror</arg>
+ </compilerArgs>
+ </configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>