Description
We should be able to setup java compiler for examples
to fail on any usage of deprecated APIs.
Something along the lines of:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>...</version>
<executions>
<execution>
<id>compile</id>
<phase>process-sources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<compilerArgument>-Xlint:deprecation</compilerArgument>
<failOnWarning>true</failOnWarning>
</configuration>
</execution>
</executions>
</plugin>