Fork JVM for SpotBugs 03/111503/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 23 Apr 2024 18:44:15 +0000 (20:44 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 24 Apr 2024 11:07:09 +0000 (11:07 +0000)
Downstream testing shows that parallel builds tend to hang on SpotBugs.
Run the analysis in a separate JVM again until we can figure out what is
going on.

Change-Id: I59ba05289bf2872ac25d1ac43a1ac2345b578cb2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
odlparent/pom.xml

index c8e2e4674cf9e6f36b3f8922376f0a3a2017674b..970048ce9de478631eb2787c14d4be05ec0ea703 100644 (file)
@@ -82,8 +82,9 @@
          to true. Set to 'false' in pom.xml of project which desires to not enforce
          no reported violations. -->
     <odlparent.spotbugs.enforce>true</odlparent.spotbugs.enforce>
-    <!-- Do not for a new JVM for spotbugs execution -->
-    <spotbugs.fork>false</spotbugs.fork>
+    <!-- Use a seaprate JVM for SpotBugs execution, as it seems to have problems in
+         parallel builds -->
+    <spotbugs.fork>true</spotbugs.fork>
 
     <!-- Opt-in into maven-dependency-plugin dependency declaration consistency
          enforcement. Defaults to false. Set to 'true' in pom.xml of a project which