PedanticEnforcerRule - ferstl/pedantic-pom-enforcers GitHub Wiki
Each pedantic enforcer rule is identified by an ID. These IDs can be used within the CompoundPedanticEnforcer to enable specific rules. The compound enforcer is more efficient because it parses the POM file of each Maven module only once and delegates it to the configured enforcer rules.
| Enforcer | ID | Description |
|---|---|---|
| CompoundPedanticEnforcer | n/a | Used to aggregate several pedantic enforcer rules. |
| PedanticPomSectionOrderEnforcer | POM_SECTION_ORDER | This enforcer makes sure that the sections in your POM files are in a defined order. |
| PedanticModuleOrderEnforcer | MODULE_ORDER | This enforcer makes sure that your modules section is sorted alphabetically. |
| PedanticDependencyManagementOrderEnforcer | DEPENDENCY_MANAGEMENT_ORDER | This enforcer makes sure that all artifacts in your dependency management are ordered. |
| PedanticDependencyManagementLocationEnforcer | DEPENDENCY_MANAGEMENT_LOCATION | Enforces that only a well-defined set of POMs may declare dependency management. |
| PedanticDependencyOrderEnforcer | DEPENDENCY_ORDER | This enforcer makes sure that all artifacts in your dependencies section are ordered. |
| PedanticDependencyConfigurationEnforcer | DEPENDENCY_CONFIGURATION | This enforcer makes sure that dependency versions and exclusions are declared in the <dependencyManagement> section. |
| PedanticDependencyElementEnforcer | DEPENDENCY_ELEMENT | This enforcer makes sure that elements in the and sections are ordered. |
| PedanticDependencyScopeEnforcer | DEPENDENCY_SCOPE | Enforces that the configured dependencies have to be defined within a specific scope. |
| PedanticPluginManagementOrderEnforcer | PLUGIN_MANAGEMENT_ORDER | This enforcer makes sure that all plugins in your plugin management section are ordered. |
| PedanticPluginConfigurationEnforcer | PLUGIN_CONFIGURATION | Enforces that plugin versions, configurations and dependencies are defined in the <pluginManagement> section. |
| PedanticPluginElementEnforcer | PLUGIN_ELEMENT | This enforcer makes sure that elements in the and sections are ordered. |
| PedanticPluginManagementLocationEnforcer | PLUGIN_MANAGEMENT_LOCATION | Enforces that only a well-defined set of POMs may declare plugin management. |