Skip to content

Instantly share code, notes, and snippets.

@mkjsix
Created May 18, 2017 11:07
Show Gist options
  • Save mkjsix/52abc7218b8e4aff4534f5f6b2224cb1 to your computer and use it in GitHub Desktop.
Save mkjsix/52abc7218b8e4aff4534f5f6b2224cb1 to your computer and use it in GitHub Desktop.
maven-compiler-plugin configuration to detect Java warnings and deprecations
<project>
...
<build>
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment