Reputation: 16184
The team are using find bugs. I would like to skip using find bugs.
I can see it has an option maven.findbugs.enable,but I don't know how to use that as an argument to maven.
I have tried - Dmaven.findbugs.enable=false but I can see find bugs is still running.
What is the argument to stop findbugs?
Upvotes: 24
Views: 34622
Reputation: 331
Although the above answers work, I found that this error disappeared for me when I downgraded from Java 11
to Java 8
. For reference, I am using Maven version 3.3.9
.
Upvotes: -2
Reputation: 431
Although unrelated to this question, Spotbugs
is the successor of Findbugs
and to skip it we need to pass the below flag:
-Dspotbugs.skip=true
Upvotes: 29
Reputation: 4403
Run the following for maven
version 3.0.5
and above.
mvn [goal] -Dfindbugs.skip
Upvotes: 6
Reputation: 12933
If you are using FindBugs 3.x:
mvn [goal] -Dfindbugs.skip=true
According to the FindBugs documentation. This should work for the check
and findbugs
goals.
Upvotes: 28