Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 1.28 KB

File metadata and controls

30 lines (25 loc) · 1.28 KB

pompon-maven-plugin

Maven Central Build Status

POM Put in Order Nicely Maven Plugin

A Maven plugin for keeping an order of project POM files. Currently, it enforces the alphabetical order of properties, dependencies and plugins. In case of violation, it shows expected order including exact locations. Each section can be divided into sub-sections by adding a comment between entries. This way, it's possible to prioritize selected dependencies/properties when they are more important (changing dependencies order can change resulting versions in Maven dependency race).

Usage

Inline checking with the latest plugin version: mvn me.piomar:pompon-maven-plugin:check

Embedding in the project:

<plugin>
    <groupId>me.piomar</groupId>
    <artifactId>pompon-maven-plugin</artifactId>
    <version>${version}</version>
    <executions>
        <execution>
            <id>check-order</id>
            <goals>
                <goal>check</goal>
            </goals>
        </execution>
    </executions>
</plugin>