PedanticPluginManagementOrderEnforcer - ferstl/pedantic-pom-enforcers GitHub Wiki
Since: 1.0.0
This enforcer makes sure that all plugins in your plugin management section are ordered. The ordering can be defined by any combination of groupId and artifactId. Each of these attributes may be given a priority.
<rules>
<pluginManagementOrder implementation="com.github.ferstl.maven.pomenforcers.PedanticPluginManagementOrderEnforcer">
<!-- order by groupId and artifactId (default) -->
<orderBy>groupId,artifactId</orderBy>
<!-- all group IDs starting with com.myproject.plugins and com.myproject.testplugins should occur first -->
<groupIdPriorities>com.myproject.plugins,com.myproject.testplugins</groupIdPriorities>
<!-- all artifact IDs starting with mytest and myintegrationtest should occur first -->
<artifactIdPriorities>mytest-,myintegrationtest-</artifactIdPriorities>
</pluginManagementOrder>
</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 |
orderBy |
groupId, artifactId | Comma-separated list of plugin elements that defines the ordering. Since: 1.0.0 |
groupIdPriorities |
n/a | Comma-separated list of group IDs that should be listed first in the plugins declaration. All group IDs that start with any of the prioritized group IDs in the given list, are required to be located first in the dependencies section. Since: 1.0.0 |
artifactIdPriorities |
n/a | Comma-separated list of artifact IDs that should be listed first in the plugins declaration. All artifact IDs that start with any of the prioritized IDs in the given list, are required to be located first in the dependencies section. Since: 1.0.0 |