Add java version specification in pom.xml