Class ValidateMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="validate",
          defaultPhase=TEST,
          threadSafe=true)
    public class ValidateMojo
    extends AbstractXmlMojo
    The ValidatorMojo's task is the validation of XML files against a given schema.
    • Constructor Detail

      • ValidateMojo

        public ValidateMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Called by Maven for executing the Mojo.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - Running the Mojo failed.
        org.apache.maven.plugin.MojoFailureException - A configuration error was detected.