Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use execution-level configuration #217

Open
jbennett2091 opened this issue Apr 30, 2020 · 0 comments
Open

Unable to use execution-level configuration #217

jbennett2091 opened this issue Apr 30, 2020 · 0 comments

Comments

@jbennett2091
Copy link

jbennett2091 commented Apr 30, 2020

Maven DTD for plugins supports configuration blocks at the "plugin", or within the nested "plugin/executions/execution" block. Typically, you can use either block - plugin configuration applies to all executions. Unfortunately, spotbugs is only using configuration at the plugin level and does not support execution-level configuration.

I would like to do two-passes of spotbugs. One, with failsOnError=true and one with failsOnError=false. I would separate these into different xml files and/or different directories. This would allow me to get a narrow set of issues that break my build (cleaned, and that we do not want to reintroduce), whereas I also get a full set of 'warnings' that I can clean later. (If there is a better way to use Spotbugs for warnings-and-errors, I don't know it).

Maven happily runs spotbugs twice with two execution blocks, but it does not separately configure them. It only utilizes configuration (for fails and filters) supplied at the plugin level, meaning both executions run the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant