Skip to content

PedanticModuleOrderEnforcer

Stefan Ferstl edited this page Sep 2, 2021 · 17 revisions

Since: 1.0.0

This enforcer makes sure that your modules section is sorted alphabetically. Modules that should occur at a specific position in the <modules> section can be ignored.

Example

<rules>
  <moduleOrder implementation="com.github.ferstl.maven.pomenforcers.PedanticModuleOrderEnforcer">
    <!-- These modules may occur at any place in the modules section -->
    <ignoredModules>dist-deb,dist-rpm</ignoredModules>
   </moduleOrder>
</rules>

Configuration Options

Option Default Description
warnOnly false If set to true, the enforcer rule will only issue a warning in the log and not fail the build. Enabling this option is a good way to start using the enforcer rules in an already existing project. Since: 2.0.0
ignoredModules n/a Comma-separated list of ignored modules. All modules in this list may occur at any place in the modules section. Since: 1.0.0