Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show compiler warnings without editing pom.xml

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?

like image 667
shellholic Avatar asked Jul 06 '11 08:07

shellholic


1 Answers

Try this.

mvn clean install -Dmaven.compiler.showDeprecation=true -Dmaven.compiler.showWarnings=true > warnings.txt
like image 77
Guest Avatar answered Sep 19 '22 10:09

Guest