The Enforcer plugin provides goals to control certain environmental constraints such as Maven Version, JDK version, and OS family.
The Enforcer plugin has two goals:
Instructions on how to use the enforcer plugin can be found here .