Uploaded image for project: 'Java Mission Control'
  1. Java Mission Control
  2. JMC-6358

Build fails due to bugs and errors flagged by SpotBugs

XMLWordPrintable

      As JMC-6128 [0] has been resolved, JMC uses OpenJFX as available from maven central.

      It appears that this change has resulted in failures when building and using SpotBugs. This looks to be due to using an older version of the SpotBugs maven plugin (3.1.3), which doesn't support JDK 10 and above (introduced in version 3.1.3.1). I've set up a number of branches on Travis CI (see attached screenshot) that shows the build returns to normal after an update to the SpotBugs maven plugin (current release is 3.1.10). I've included a link at the bottom of this comment to a Travis build log [1] that fails.

      Once this issue has been published I'll post back with a proposed one-liner webrev to update the SpotBugs version.

      Example build error message from Travis log [1]:

      [ERROR] Failed to execute goal com.github.spotbugs:spotbugs-maven-plugin:3.1.3:check (default) on project org.openjdk.jmc.joverflow.ui: failed with 17 bugs and 1001 errors
      

       
      [0] https://bugs.openjdk.java.net/browse/JMC-6128
      [1] https://api.travis-ci.org/v3/job/482998757/log.txt

            aptmac Alex Macdonald
            aptmac Alex Macdonald
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: