-
Notifications
You must be signed in to change notification settings - Fork 10
PedanticPluginElementEnforcer
Stefan Ferstl edited this page Sep 2, 2021
·
2 revisions
Since: 2.0.0
This enforcer makes sure that elements in the and sections are ordered.
<rules>
<pluginElements implementation="com.github.ferstl.maven.pomenforcers.PedanticPluginElementEnforcer">
<!-- Define the order within plugins -->
<elementPriorities>groupId,artifactId,version</elementPriorities>
<!-- Check the plugin management section -->
<checkPluginManagement>true</checkPluginManagement>
<!-- Check the plugins section -->
<checkPlugins>true</checkPlugins>
</pluginElements>
</rules>
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 |
elementPriorities |
groupId, artifactId, version, extensions, inherited, configuration, dependencies, executions | Comma-separated list of section elements in the order as they should appear. This will overwrite the default order by putting all unspecified elements at the end. Since: 2.0.0 |
checkPlugins |
true | Check the section. Since: 2.0.0 |
checkPluginManagement |
true | Check the section. Since: 2.0.0 |