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.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractXmlMojo
AbstractXmlMojo.CatalogHandling -
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThe equivalent ofAbstractXmlMojo.execute()for any subclasses.static SchemaFactorynewSchemaFactory(String schemaLanguage, String schemaFactoryClassName, ClassLoader classLoader) Methods inherited from class AbstractXmlMojo
activateProxy, asAbsoluteFile, asFiles, execute, getBasedir, getCatalogHandling, getExcludes, getFileNames, getFiles, getJaxpConfigFactory, getLocator, getProject, getResolver, getResource, isSkippedForMissingBaseDirectory, isSkipping, passivateProxy, setCatalogs, setJaxpConfigurationFile, unsetJaxpConfigurationFileMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
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.MojoFailureExceptionDescription copied from class:AbstractXmlMojoThe equivalent ofAbstractXmlMojo.execute()for any subclasses.- Specified by:
executeXmlMojoin classAbstractXmlMojo- 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.
-