Findbugs and Maven tutorial

Findbugs is an open source project for a static analysis of the Java bytecode to identify potential software bugs.

Findbugs-structure

Step 1: The pom.xml with the findbug & site reporting plugins and properties.

Step 2: Exclude certain classes with an exclude filter

src/main/resources/findbugs/excludeFilter.xml

Step 3: Running mvn command to spot bugs

Step 4: Running mvn command to report bugs

this creates the file “findbugs.html” under “target/site”, and you can right click on it and open with “web browser”.

findbugs report

findbugs report


300+ Java Interview FAQs

Tutorials on Java & Big Data