desruisseaux commented on issue #1051:
URL: 
https://github.com/apache/maven-compiler-plugin/issues/1051#issuecomment-5023865547

   It would be easy to provide such option in the 4.x version of Maven Compiler 
Plugin because that version already uses `javax.tools` with 
`DiagnosticListener`. Actually, it already provides a summary of all warnings 
and errors after the compilation finished. So developers can easily check if 
they were any warning.
   
   However, making the build fails when there is any warning would cause a 
portability problem. New warnings are introduced in new Java versions. 
Therefore, a build which passes on Java _N_ may fail on Java _N_+1 because of 
new warnings, unless the project configuration disables all warnings except a 
list of explicit warnings of interest.
   
   We may argue that `-Werror` has the same drawback. But this is an option 
provided by the JDK. Adding our own options would make the issue more 
susceptible to happen.
   
   I'm not against this proposal, I'm rather neutral. I let other peoples 
express their opinion.


-- 
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