Remove dependency on java version from POM