disable Find bugs in maven
Asked Answered
P

4

24

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?

Puritanical answered 2/11, 2017 at 14:22 Comment(6)
Did you try using -Dfindbugs.skip=true? gleclaire.github.io/findbugs-maven-plugin/check-mojo.html#skipJylland
The only mention of the maven.findbugs.enable parameter date from the 1.4 version from 2007 ! maven-plugins.sourceforge.net/maven-findbugs-plugin/… What version are you using?Offend
@halfer hi. you've made 8 comments against me in 10 mins... did I upset you? I meant see in this casePuritanical
@bharal: you have not upset me at all, no - comments are usually a good thing. (If I point out a typographical error, please fix it, so that the question is in a readable condition for future readers. I have fixed it on this occasion).Blimey
(Ah, I think the messages you have received are edit notifications - I didn't think I had commented that number of times. Obviously, post improvements are good to receive too.)Blimey
Both -Dfindbugs.skip=true, -Dfindbugs.skip didn't work for me. I wanted to use it as a workaround for the issue #53676571, but I got the error anyway: Unable to parse configuration of mojo org.codehaus.mojo:findbugs-maven-plugin:3.0.3:findbugs for parameter pluginArtifacts: Cannot assign configuration entry 'pluginArtifacts' with value '${plugin.artifacts}' of type java.util.Collections.UnmodifiableRandomAccessList to property of type java.util.ArrayListCompensation
O
29

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.

Offend answered 2/11, 2017 at 16:38 Comment(1)
Or shortened version: mvn [goal] -Dfindbugs.skipSensorium
A
28

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
Antipersonnel answered 3/3, 2020 at 9:52 Comment(0)
M
5

Run the following for maven version 3.0.5 and above.

mvn [goal] -Dfindbugs.skip
Martines answered 25/1, 2019 at 9:11 Comment(0)
C
-2

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.

Cumbersome answered 8/8, 2022 at 16:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.