archiecobbs commented on issue #332:
URL: 
https://github.com/apache/maven-compiler-plugin/issues/332#issuecomment-4445538345

   FYI, this is possible now in JDK 26+ using the `-Werror` flag.
   
   ```
   $ javac --help
   ...
     -Werror                      Terminate compilation if any warnings occur
     -Werror:<key>(,<key>)*
           Specify lint categories for which warnings should terminate 
compilation,
           separated by comma.
           Precede a key by '-' to exclude the specified category.
           Use --help-lint to see the supported keys.
   ```
   
   Caveat: [there is a bug](https://bugs.openjdk.org/browse/JDK-8349847) in the 
implementation that will be fixed in 27.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to