maven
./mvnw spotbugs:help -Ddetail=true
./mvnw spotbugs:check -Ddetail=true
./mvnw spotbugs:gui
./mvnw spotbugs:spotbugs
gradle
./gradlew check
./gradlew spotbugsMain
./gradlew spotbugsTest
create spotbugs maven project archetype (windows)
mvn archetype:generate^
-DarchetypeArtifactId=spotbugs-archetype^
-DarchetypeGroupId=com.github.spotbugs^
-DarchetypeVersion=0.2.2^
-DgroupId=com.github.daggerok^
-DartifactId=spotbugs-example^
-Dversion=1.0.0-SNAPSHOT^
-Dpackage=com.github.daggerok^
-B
create spotbugs maven project archetype (unix)
mvn archetype:generate \
-DarchetypeArtifactId=spotbugs-archetype \
-DarchetypeGroupId=com.github.spotbugs \
-DarchetypeVersion=0.2.2 \
-DgroupId=com.github.daggerok \
-DartifactId=spotbugs-example \
-Dversion=1.0.0-SNAPSHOT \
-Dpackage=com.github.daggerok \
-B # non interactive mode
generated by generator-jvm yeoman generator (java)