I am trying:
org.apache.maven.plugins
maven-compiler-plugin&l
By using the workaround in this comment in the open jira issue for maven compiler plugin, the build can be failed for compiler warning.
This works for me:
org.apache.maven.plugins
maven-compiler-plugin
2.3.2
javac
1.6
1.6
-Werror
true
org.codehaus.plexus
plexus-compiler-api
1.8.2
org.codehaus.plexus
plexus-component-api
org.codehaus.plexus
plexus-compiler-manager
1.8.2
org.codehaus.plexus
plexus-component-api
org.codehaus.plexus
plexus-compiler-javac
1.8.2
runtime
org.codehaus.plexus
plexus-component-api