Update maven config to compile with java 17