Updated pom.xml for java version