Class CheckMojo

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

@Mojo(name="check", defaultPhase=VERIFY, threadSafe=true) public class CheckMojo extends TidyMojo
Checks that the pom.xml is tidy. Fails the build if mvn tidy:pom would create a different pom.xml than the current one.
  • 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

    • CheckMojo

      public CheckMojo()
  • 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.