Fork me on GitHub

xml:validate

Full name:

org.codehaus.mojo:xml-maven-plugin:1.0.2:validate

Description:

The ValidatorMojo's task is the validation of XML files against a given schema.

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Binds by default to the lifecycle phase: test.

Optional Parameters

Name Type Since Description
catalogHandling AbstractXmlMojo$CatalogHandling - How to handle entities which cannot be found in any catalog.
Default value is: passThrough.
User property is: xml.catalogHandling.
catalogs String[] - An XML catalog file, or URL, which is being used to resolve entities.
skip boolean - Whether to skip execution.
Default value is: false.
User property is: xml.skip.
validationSets ValidationSet[] - Specifies a set of document types, which are being validated.

Parameter Details

catalogHandling:

How to handle entities which cannot be found in any catalog.
  • Type: org.codehaus.mojo.xml.AbstractXmlMojo$CatalogHandling
  • Required: No
  • User Property: xml.catalogHandling
  • Default: passThrough

catalogs:

An XML catalog file, or URL, which is being used to resolve entities.
  • Type: java.lang.String[]
  • Required: No

skip:

Whether to skip execution.
  • Type: boolean
  • Required: No
  • User Property: xml.skip
  • Default: false

validationSets:

Specifies a set of document types, which are being validated.
  • Type: org.codehaus.mojo.xml.validation.ValidationSet[]
  • Required: No