How do I generate a FindBugs bug pattern report for a site?
Author: Deron Eriksson
Description: This maven tutorial describes how to generate a bug pattern report for a site using the Maven FindBugs Plugin.
Tutorial created using: Windows Vista || JDK 1.6.0_04 || Eclipse Web Tools Platform 2.0.1 (Eclipse 3.3.1)

Page: < 1 2

(Continued from page 1)

After deploying the site, we can see the reports that were generated. The FindBugs Plugin created the FindBugs Report. The JXR Plugin generated the Source Xref and Test Source Xref reports. The Javadoc Plugin created the JavaDocs and Test JavaDocs reports.

Generated Reports

If we examine the FindBugs Report, we can see that it detected 3 bug patterns.

FindBugs Bug Detector Report

If we click on the line number a bug pattern, it will take us to the relevant Xref file.

Clicking on line number of bug

Here we can see the "uncalled private method" at line 16 in the App class Xref file.

Xref of App class

The FindBugs Report page also features links to the descriptions of the various bug patterns. Here we can see the bug description for UPM_UNCALLED_PRIVATE_METHOD.

Bug descriptions
Page: < 1 2

Related Tutorials: