Update pom.xml to suppress a warning and fix java version for compling