Class ValidateMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.spring.format.maven.FormatMojo
io.spring.format.maven.ValidateMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="validate", defaultPhase=VALIDATE, threadSafe=true) public class ValidateMojo extends FormatMojo
Validates that source formatting matches the required style.
Author:
Phillip Webb
  • Constructor Details

    • ValidateMojo

      public ValidateMojo()
  • Method Details

    • execute

      protected void execute(List<File> files, Charset encoding, String lineSeparator) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Description copied from class: FormatMojo
      Perform the formatting build-process behavior this Mojo implements.
      Specified by:
      execute in class FormatMojo
      Parameters:
      files - the files to process
      encoding - the encoding
      lineSeparator - the line separator
      Throws:
      org.apache.maven.plugin.MojoExecutionException - on execution error
      org.apache.maven.plugin.MojoFailureException - on failure