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)
(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.
If we examine the FindBugs Report, we can see that it detected 3 bug patterns.
If we click on the line number a bug pattern, it will take us to the relevant Xref file.
Here we can see the "uncalled private method" at line 16 in the App class Xref file.
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.