Class ValidateMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.xml.AbstractXmlMojo
org.codehaus.mojo.xml.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 Details

    • ValidateMojo

      @Inject public ValidateMojo(org.codehaus.plexus.resource.ResourceManager locator)
  • Method Details

    • newSchemaFactory

      public static SchemaFactory newSchemaFactory(String schemaLanguage, String schemaFactoryClassName, ClassLoader classLoader)
    • executeXmlMojo

      protected void executeXmlMojo() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Description copied from class: AbstractXmlMojo
      The equivalent of AbstractXmlMojo.execute() for any subclasses.
      Specified by:
      executeXmlMojo in class AbstractXmlMojo
      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.