I am looking for a Maven plugin that does static code analysis as part of the project build and fails the build if bugs are found. The check goal seems to do that but I am trying to figure out how to mark certain issues as "ok" so that they do not get reported and fail the build. Unfortunately, it seems like I need to use the spotbugs goal for that, which requires using Maven reporting. What am I missing?
I am looking for a Maven plugin that does static code analysis as part of the project build and fails the build if bugs are found. The check goal seems to do that but I am trying to figure out how to mark certain issues as "ok" so that they do not get reported and fail the build. Unfortunately, it seems like I need to use the spotbugs goal for that, which requires using Maven reporting. What am I missing?