Apache Maven Enforcer (Plugin)

Clone this repo:
  1. ae93fa8 [MENFORCER-397] allow no rules by Björn Raupach · 2 weeks ago master
  2. b61b6b8 [MENFORCER-398] show rules processed by Björn Raupach · 3 weeks ago
  3. 28684b2 [MENFORCER-424] - Add rule which bans scope from dependencyManagement by Konrad Windszus · 7 weeks ago
  4. b952682 Fix javadoc of "fail" parameter by Konrad Windszus · 7 weeks ago
  5. a492546 [MENFORCER-361] Add link to newly introduced rule to index by Konrad Windszus · 3 weeks ago

Maven Enforcer Plugin - The Loving Iron Fist of Maven™

ASF Jira Apache License, Version 2.0, January 2004 Maven Central Jenkins Status Jenkins tests

The Enforcer plugin provides goals to control certain environmental constraints such as Maven version, JDK version and OS family along with many more built-in rules and user created rules.


More information can be found on Apache Maven Enforcer Plugin Homepage. Question related to the usage of the Maven Enforcer Plugin should be posted on the Maven User List.

Where can I get the latest release?

You can download release source from our download page.

You can get the Maven Enforcer plugin via the following coordinates from central:



We accept Pull Requests via GitHub. The developer mailing list is the main channel of communication for contributors.
There are some guidelines which will make applying PRs easier for us:

  • No tabs! Please use spaces for indentation.
  • Respect the code style.
  • Create minimal diffs - disable on save actions like reformat source code or organize imports. If you feel the source code should be reformatted create a separate PR for this change.
  • Provide JUnit/Invoker tests for your changes and make sure your changes don't break any existing tests by running mvn -Prun-its verify.

If you plan to contribute on a regular basis, please consider filing a contributor license agreement. You can learn more about contributing via GitHub in our contribution guidelines.


This code is under the Apache Licence v2

See the NOTICE file for required notices and attributions.


You like Apache Maven? Then donate back to the ASF to support the development.


Apache License, Version 2.0, January 2004