Removed warnings and fixed pom to generate proper jar