Fork me on GitHub

Tidy Maven Plugin

The Tidy Plugin tidies up a project's pom.xml and optionally verifies that it is tidy.

Goals Overview

The Tidy Plugin has two goals.

  • tidy:pom tidies up the project's pom.xml.
  • tidy:check checks that the project's pom.xml is tidy.

Usage

General instructions on how to use the different goals of the Tidy Plugin can be found on the usage page.

To tidy up the pom.xml, simply invoke it on your project, e.g.

mvn tidy:pom

The pom.xml file will

  • be rewritten according to the POM Code Convention of the Maven team.
  • have the nodes groupId, artifactId and version always in this order.