Add java version to pom.