Print where deprecated method is used.

Change-Id: Ic0f3f46ebbb1984cd7c968d12371c0dadf1b4272
diff --git a/pom.xml b/pom.xml
index aa65dec..cfb3429 100644
--- a/pom.xml
+++ b/pom.xml
@@ -85,6 +85,8 @@
           <source>1.7</source>
           <target>1.7</target>
           <encoding>UTF-8</encoding>
+          <showDeprecation>true</showDeprecation>
+          <showWarnings>true</showWarnings>
         </configuration>
         <executions>
         </executions>