-
Notifications
You must be signed in to change notification settings - Fork 193
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
-Werror flag not recognized by groovy-eclipse-compiler #254
Comments
I think you need to use |
Thanks for the response Eric. I tried using -F-Werror in the pom, but it seems that option is not recognized:
[INFO] Changes detected - recompiling the module! |
I looked at the source code GroovyEclipseCompiler and saw some hints about some supported flags. This one seems to work, but it requires that I specifically call out the warnings I'm interested in seeing. -err:+deprecation,fallthrough,finally,over-ann,raw,unchecked,suppress,unusedImport,unusedLocal |
When using the following maven configuration:
Results in:
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ DocumentMapper ---
[INFO] Changes detected - recompiling the module!
[INFO] Using Groovy-Eclipse compiler to compile both Java and Groovy files
[INFO] Unrecognized option : -Werror
[INFO] Found 0 errors and 0 warnings.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.559s
The text was updated successfully, but these errors were encountered: