Clean POM Maven Plugin

Cleans the POM and other XML using on XSLT.

License

License

Categories

Categories

Maven Build Tools Net
GroupId

GroupId

net.trajano.mojo
ArtifactId

ArtifactId

cleanpom-maven-plugin
Last Version

Last Version

1.2.2
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Clean POM Maven Plugin
Cleans the POM and other XML using on XSLT.
Project Organization

Project Organization

Trajano
Source Code Management

Source Code Management

https://github.com/trajano/cleanpom-maven-plugin

Download cleanpom-maven-plugin

How to add to project

<plugin>
    <groupId>net.trajano.mojo</groupId>
    <artifactId>cleanpom-maven-plugin</artifactId>
    <version>1.2.2</version>
</plugin>

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.3.9
org.sonatype.plexus : plexus-build-api jar 0.0.7

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5

test (4)

Group / Artifact Type Version
net.trajano.commons : commons-testing jar 1.0.1
org.apache.maven : maven-compat jar 3.3.9
org.apache.maven : maven-core jar 3.3.9
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0

Project Modules

There are no modules declared in this project.

Clean POM Maven Plugin

Build Status Quality Gate

This will clean the Maven project descriptor, pom.xml file, based on an XSLT file. It is organized based on the rules specified in the following URLs:

In addition it will also reindent other XML files.

Along with a few common sense rules like

  • groupId should be before artifactId.

  • dependencies, plugins, extensions should also be ordered by scope, groupId, and artifactId.

As of version 1.2.0, the indention size is now using 2-space indents to follow the conventions used in SonarQube.com.

The clean goal will be bound to the verify phase of the project and will replace the pom.xml file. The typical usage is:

<plugin>
  <groupId>net.trajano.mojo</groupId>
  <artifactId>cleanpom-maven-plugin</artifactId>
  <executions>
    <execution>
      <goals>
        <goal>clean</goal>
      </goals>
    </execution>
  </executions>
</plugin>

Versions

Version
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.6
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0