Add Java version to pom.xml