Pick up spotbugs-maven-plugin version from plugin management section.
Override ASM version in SpotBugs to build on Java 17-ea.
diff --git a/pom.xml b/pom.xml
index ad13fdb..cc09594 100644
--- a/pom.xml
+++ b/pom.xml
@@ -196,6 +196,7 @@
<commons.jacoco.version>0.8.6</commons.jacoco.version>
<commons.spotbugs.version>4.2.0</commons.spotbugs.version>
<commons.spotbugs.impl.version>4.2.2</commons.spotbugs.impl.version>
+ <commons.asm.version>9.1</commons.asm.version>
<commons.pmd.version>6.32.0</commons.pmd.version>
<slf4j.version>1.7.26</slf4j.version>
<log4j2.version>2.14.0</log4j2.version>
@@ -239,9 +240,14 @@
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
- <version>${commons.spotbugs.impl.version}</version>
+ <version>${commons.spotbugs.version}</version>
<dependencies>
<dependency>
+ <groupId>org.ow2.asm</groupId>
+ <artifactId>asm</artifactId>
+ <version>${commons.asm.version}</version>
+ </dependency>
+ <dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs</artifactId>
<version>${commons.spotbugs.impl.version}</version>
@@ -263,6 +269,7 @@
</plugin>
</plugins>
</pluginManagement>
+
<resources>
<resource>
<directory>${basedir}/osgi</directory>
@@ -379,7 +386,6 @@
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
- <version>${commons.spotbugs.version}</version>
<configuration>
<threshold>Normal</threshold>
<effort>Default</effort>
@@ -441,7 +447,6 @@
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
- <version>${commons.spotbugs.version}</version>
<configuration>
<threshold>Normal</threshold>
<effort>Default</effort>