Maven Mojo Plug-In to generate reports based on the SpotBugs Analyzer
Pull request Compare This branch is 1 commit behind spotbugs:spotbugs.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.mvn/wrapper
src
travis
.gitattributes
.gitignore
.travis.yml
LICENSE
README.md
deploy-ca.sh
log4j.properties
mvnw
mvnw.cmd
pom.xml
versionTest.groovy

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

Special notice

Continue to use 'FindBugsFilter' when needed as the spotbugs project has not yet renamed that to reflect project.

Usage

The SpotBugs documentation describes the pom.xml modifications and Maven goals.

Running Tests

Run all tests

mvn -DtestSrc=remote -Prun-its clean install -D"invoker.parallelThreads=4"

Skip tests

mvn -DskipTests=true clean install

Run tests on spotbugs test source code that is local instead of from SpotBugs github repository

mvn -DtestSrc=local -DlocalTestSrc=/opt/spotBugs -Prun-its clean install -D"invoker.parallelThreads=4"

Run selected tests

mvn -DtestSrc=remote -Prun-its -Dinvoker.test=build-*,basic-1,check-nofail clean install -D"invoker.parallelThreads=4"

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.1:gui