Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1781

Investigate possible replacement of findbugs-maven-plugin with spotbugs-maven-plugin

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.4.1.Final
    • Fix Version/s: None
    • Component/s: build
    • Labels:
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      SpotBugs is a successor of FingBugs and as such uses different groupId + artifactId for maven plugin. It should also be compatible with Java 9 (at least in the latest versions). We need to investigate it the switch is painless and if so, do it. Otherwise we need to figure out what the blockers are and slowly start to fix them as FindBugs itself won't bet any more updates it seems and so won't be Java 9 compatible.

      How to migrate

      • Replace
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
        

        by

                <groupId>com.github.spotbugs</groupId>
                <artifactId>spotbugs-maven-plugin</artifactId>
        
      • Look for all "findbugs" and replace it by "spotbugs"
        • Except for anything related to the findbugs annotations dependency that some dependencies drag in or exclude. Leave that one alone!
        • For example, change findbugs-check -> spotbugs-check, ...

        Gliffy Diagrams

          Marvel

          Marvel Prototype Add-On for Confluence Server written by David Simpson.

            Attachments

              Activity

                People

                • Assignee:
                  mbiarnes Michael Biarnes Kiefer
                  Reporter:
                  psiroky Petr Široký
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: