POM Put in Order Nicely Maven Plugin

A Maven plugin for keeping an order of project POM files

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

me.piomar
ArtifactId

ArtifactId

pompon-maven-plugin
Last Version

Last Version

0.4.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

POM Put in Order Nicely Maven Plugin
A Maven plugin for keeping an order of project POM files
Project URL

Project URL

https://github.com/piomar123/pompon
Source Code Management

Source Code Management

https://github.com/piomar123/pompon.git

Download pompon-maven-plugin

How to add to project

<plugin>
    <groupId>me.piomar</groupId>
    <artifactId>pompon-maven-plugin</artifactId>
    <version>0.4.0</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.6.1
com.google.guava : guava jar 29.0-jre
org.dom4j : dom4j jar 2.1.3

provided (2)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.6.0
org.immutables : value jar 2.8.8

test (3)

Group / Artifact Type Version
org.assertj : assertj-core jar 3.17.0
org.junit.jupiter : junit-jupiter-api jar 5.6.2
org.junit.jupiter : junit-jupiter-engine jar 5.6.2

Project Modules

There are no modules declared in this project.

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>

Versions

Version
0.4.0
0.3.0
0.2.0
0.1.0