Maven Enforcer Rule API - Extending The Loving Iron Fist of Maven
Custom rules are easy to make with the maven-enforcer-rule-api
. These rules can then be invoked with the maven-enforcer-plugin.
See Writing a Custom Rule for instructions on how to make your own rule.