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.
  • Field Summary

    Fields inherited from class org.codehaus.mojo.tidy.TidyMojo

    project, skip

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Perform whatever build-process behavior this Mojo implements using the specified POM.

    Methods inherited from class org.codehaus.mojo.tidy.TidyMojo

    execute, getPomFile, tidy

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.