improving pom.xml to use appropriate java version