I have integrated FindBugs plugin to fail the build in case of bugs.
Then using that brilliant answer I configured FindBugs to generate html reports (xml version is barely readable).
The problem is that I have failOnError
property set to true
, which means that the build would fail in case of bug.
.....
<configuration>
.....
<failOnError>true</failOnError>
</configuration>
And then no html report would be generated.
I read about Maven build lifecycle and there is no such thing as "Execute on fail" (like finally
block in Java). So, are there any possible workarounds?
And shouldn't it be out-of the box Maven feature?
failOnError
set totrue
. This will slow down the build for the moment, but you would have an option to wait for a better solution.