Built-In Rules

The following built-in rules ship along with the enforcer plugin:

Common parameters

The following parameters are supported by all rules:

  • level - steering whether a rule should fail a build or just display a warning, allowed values: ERROR, WARN. Default is ERROR
  • ruleName - optional name of rule configuration

Custom rules

You may also create and inject your own custom rules by following the maven-enforcer-rule-api instructions.