I would like to always show compiler warning and deprecation when I compile with Maven. I know how to do it by editing the pom.xml
, but I want this behavior by default only for myself (so I can't edit the pom.xml
).
I tried:
mvn -Dmaven.compiler.showWarnings=true -Dmaven.compiler.showDeprecation=true clean compile
but this doesn't show any warnings (if I modify the pom.xml
to show them, they are there).
Both expressions (maven.compiler.showWarnings
and maven.compiler.showDeprecation
) exist.
What do I miss?
Try this.
mvn clean install -Dmaven.compiler.showDeprecation=true -Dmaven.compiler.showWarnings=true > warnings.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With