add a modernizer maven plugin build profile and fix one issue detected