Updated pom.xml to target version 18