Hi everyone,

A colleague of mine recently stumbled upon this
<https://stackoverflow.com/questions/9192613/how-do-i-get-a-java-maven-build-to-fail-for-compiler-warnings/33823355#33823355>
.

Quoting the above Stackoverflow answer:

> <showWarnings>true</showWarnings> is required. For reasons unknown, Maven
> by default actively suppresses warnings with the -nowarn flag, so the
> -Xlint and -Werror flags would be ignored.
>

I assume that warnings are suppressed by default because the default value
of showWarnings is false?

If that's the case, I wonder why we need such an accessible option is
necessary since the other related warning options would have to go through
compilerArgs.

I also realize my question is relevant to other settings.

Is there a plan to deprecate this kind of settings and remove them at a
next major version?
In the specific case of showWarnings, if deprecation and removal are not an
option, could changing the default value to true be considered for the next
major version (or maybe some other value that means the setting is not
initialized and should not interfere with warnings)?

Thanks for your help!
Florent

Reply via email to