PedanticPomSectionOrderEnforcer - ferstl/pedantic-pom-enforcers GitHub Wiki

Since: 1.0.0

This enforcer makes sure that the sections in your POM files are in a defined order.

Example

<rules>
  <pomSectionOrder implementation="com.github.ferstl.maven.pomenforcers.PedanticPomSectionOrderEnforcer">
    <!-- Use project coordinates before parent declaration -->
    <sectionPriorities>groupId,artifactId,version,packaging</sectionPriorities>
  </pomSectionOrder>
</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
sectionPriorities modelVersion, prerequisites, parent, groupId, artifactId, version ,packaging,name,description,url,licenses,organization ,inceptionYear,ciManagement,mailingLists,issueManagement, developers ,contributors,scm,repositories,pluginRepositories ,distributionManagement ,modules,properties,dependencyManagement ,dependencies,build,profiles,reporting,reports Comma separated list of section priorities. Since: 1.0.0
⚠️ **GitHub.com Fallback** ⚠️