adds java version to pom.xml