add a modernizer maven plugin build profile and fix one issue detected
fix target java version for modernizer plugin