remove warnings and using Maven best practices