Fix maven 3 warnings on build