Modifed pom.xml to fix " java-lang-reflect-malformedparameterizedtypeexception"