xml:transform

Full name:

org.codehaus.mojo:xml-maven-plugin:1.0:transform

Description:

The TransformMojo is used for transforming a set of files using a common stylesheet.

Attributes:

  • Requires a Maven project to be executed.
  • Binds by default to the lifecycle phase: generate-resources.

Optional Parameters

Name Type Since Description
catalogs String[] - An XML catalog file, or URL, which is being used to resolve entities.
forceCreation boolean - Whether creating the transformed files should be forced.
Default value is: false.
transformationSets TransformationSet[] - Specifies one or more sets of files, which are being transformed.
transformerFactory String - Transformer factory use. By default, the systems default transformer factory is used. If you use this feature you must use at least jdk 1.6

Parameter Details

catalogs:

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

forceCreation:

Whether creating the transformed files should be forced.
  • Type: boolean
  • Required: No
  • Expression: ${xml.forceCreation}
  • Default: false

transformationSets:

Specifies one or more sets of files, which are being transformed.
  • Type: org.codehaus.mojo.xml.transformer.TransformationSet[]
  • Required: No

transformerFactory:

Transformer factory use. By default, the systems default transformer factory is used. If you use this feature you must use at least jdk 1.6
  • Type: java.lang.String
  • Required: No
  • Expression: ${xml.transformerFactory}