Fork me on GitHub


To use any of the extra rules you just need to add the extra rules as a dependency of the Apache Maven Enforcer Plugin. This is best achieved by adding the dependency within a pluginManagement section

          <version>3.4.1</version> <!-- find the latest version at -->

Note: If you are using Maven 2.x then, as a result of the classloader design in Maven 2.x, you may need to use the pluginManagement technique in the ultimate parent of your reactor build in order to ensure that the rule is available.

Note: If you want to extend rules in child poms read the article about extending or replacing plugin configurations on this page at Sonatype


Apache, Apache Maven, Maven and the Apache feather logo are trademarks of The Apache Software Foundation.