Class PomMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.tidy.TidyMojo
org.codehaus.mojo.tidy.PomMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="pom") public class PomMojo extends TidyMojo
Tidy up the pom.xml into the canonical order.
  • Constructor Details

    • PomMojo

      public PomMojo()
  • Method Details

    • executeForPom

      protected void executeForPom(String pom) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Description copied from class: TidyMojo
      Perform whatever build-process behavior this Mojo implements using the specified POM.
      Specified by:
      executeForPom in class TidyMojo
      Parameters:
      pom - the project's POM.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if an unexpected problem occurs. Throwing this exception causes a "BUILD ERROR" message to be displayed.
      org.apache.maven.plugin.MojoFailureException - if an expected problem (such as a compilation failure) occurs. Throwing this exception causes a "BUILD FAILURE" message to be displayed.