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

Allow 'validate' to write violations to a file, and not stop the build #908

Open
dhendriks opened this issue Jun 10, 2024 · 1 comment
Open

Comments

@dhendriks
Copy link

Is your feature request related to a problem? Please describe.
We have various plugins that check various things during the build. If there is one issue, for instance a format issue, in one plugin, the build stops and we don't know what other problems exist. We have to fix it, and run the build again, and fix more issues, etc. Various Maven plugins support to not fail, but only warn, and to write violations to a file. We can then collect all of these at the end, and make a report out of those. The formatter-maven-plugin doesn't support such use cases yet.

Describe the solution you'd like

  • Add an option to configure the result of the plugin in case of violations: either just report (new) or fail (current behavior).
  • Add an option to write violations to a file, in addition to reporting them on the console.

Describe alternatives you've considered
I currently don't see alternatives.

Additional context
n/a

@ctubbsii
Copy link
Member

One workaround for now is to just run the format goal, rather than the validate goal, and check to see if any files changed at the end of the build.

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

No branches or pull requests

2 participants