Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.travis.yml
LICENSE
README.md
deploy-keys.tar.asc
deploy-keys.tar.enc
pom.xml

README.md

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>