adding configuration to pom for java version