diff --git a/pom.xml b/pom.xml
index b4e73a7fe..5a6190f1b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -119,6 +119,14 @@
org.apache.maven.plugins
maven-compiler-plugin
${version.compiler.plugin}
+
+ true
+
+ -Werror
+ -Xlint:all
+ -Xlint:-this-escape
+
+
@@ -303,4 +311,4 @@
-
+
\ No newline at end of file