Fork me on GitHub

xml:check-format

Full name:

org.codehaus.mojo:xml-maven-plugin:1.1.0:check-format

Description:

An XML indentation check over a set of files.

Attributes:

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

Optional Parameters

Name Type Since Description
<catalogHandling> AbstractXmlMojo$CatalogHandling 1.0.2 How to handle entities which cannot be found in any catalog. See Common Goal Properties.
Default value is: passThrough.
User property is: xml.catalogHandling.
<catalogs> String[] 1.0 An XML catalog file, or URL, which is being used to resolve entities. See Catalog files.
<encoding> String 1.0.1 The encoding of files included in formatFileSets. Note that the encoding can be set also per FormatFileSet.
Default value is: ${project.build.sourceEncoding}.
User property is: xml.encoding.
<failOnFormatViolation> boolean 1.0.1 Tells the mojo what to do in case XML formatting violations are found. if true, all violations will be reported on the console as ERRORs and the build will fail. if false, all violations will be reported on the console as WARNs and the build will proceed further.
Default value is: true.
User property is: xml.failOnFormatViolation.
<formatFileSets> List<FormatFileSet> 1.0.1 File patterns to include. The patterns are relative to the current project's baseDir.
<indentSize> int 1.0.1 The number of spaces expected for indentation. Note that indentSize can be configuread also per org.codehaus.mojo.xml.format.FormatFileSet.
Default value is: 2.
User property is: xml.indentSize.
<skip> boolean 1.0.1 Whether to skip execution.
Default value is: false.
User property is: xml.skip.
<useDefaultFormatFileSet> boolean 1.0.1 If set to true, the result of FormatFileSet#getDefault(String, int) will be appended to formatFileSets before the processing.
Default value is: true.
User property is: xml.useDefaultFormatFileSet.

Parameter Details

<catalogHandling>

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

<catalogs>

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

<encoding>

The encoding of files included in formatFileSets. Note that the encoding can be set also per FormatFileSet.
  • Type: java.lang.String
  • Since: 1.0.1
  • Required: No
  • User Property: xml.encoding
  • Default: ${project.build.sourceEncoding}

<failOnFormatViolation>

Tells the mojo what to do in case XML formatting violations are found. if true, all violations will be reported on the console as ERRORs and the build will fail. if false, all violations will be reported on the console as WARNs and the build will proceed further.
  • Type: boolean
  • Since: 1.0.1
  • Required: No
  • User Property: xml.failOnFormatViolation
  • Default: true

<formatFileSets>

File patterns to include. The patterns are relative to the current project's baseDir.
  • Type: java.util.List<org.codehaus.mojo.xml.format.FormatFileSet>
  • Since: 1.0.1
  • Required: No

<indentSize>

The number of spaces expected for indentation. Note that indentSize can be configuread also per org.codehaus.mojo.xml.format.FormatFileSet.
  • Type: int
  • Since: 1.0.1
  • Required: No
  • User Property: xml.indentSize
  • Default: 2

<skip>

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

<useDefaultFormatFileSet>

If set to true, the result of FormatFileSet#getDefault(String, int) will be appended to formatFileSets before the processing.
  • Type: boolean
  • Since: 1.0.1
  • Required: No
  • User Property: xml.useDefaultFormatFileSet
  • Default: true