Maven Mojo Plug-In to generate reports based on the SpotBugs Analyzer
HTML Groovy CSS Shell Batchfile Java
Switch branches/tags
Pull request Compare This branch is 1 commit ahead of spotbugs:spotbugs.

README.md

Spotbugs Maven Plugin

Build Status Maven central Apache 2

Latest Snapshot

Please download latest snapshots from here

Building spotbugs-maven-plugin Requirements

Java 8 is required for spotbugs analysis.

spotbugs-maven-plugin

Maven Mojo Plug-In to generate reports based on the SpotBugs Analyzer

Run all tests

mvn -Prun-its clean install

Skip tests

mvn -DskipTests=true clean install

Run tests on findbugs test source code that is local instead of from FindBugs SVN repository

mvn -DtestSrc=local -DlocalTestSrc=/opt/findBugs/findbugsTestCases/src -Prun-its clean install

Run selected tests

mvn -Prun-its -Dinvoker.test=build-*,basic-1,check clean install

Run tests in debugger

mvn -Dmaven.surefire.debug="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE" -Prun-its clean install 

Run selected tests in debugger

mvn -Dmaven.surefire.debug="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE" -Prun-its -Dinvoker.test=build-*,basic-1,check clean install

Run gui with a specific version

mvn com.github.spotbugs:spotbugs-maven-plugin:3.1.0-SNAPSHOT:gui