jibx:document-compare

Full name:

org.jibx:maven-jibx-plugin:1.2.3-SNAPSHOT:document-compare

Description:

Compares two schemas or roundtrips a schema through a JiBX class and compares the results. If a mapped class is supplied, then the inFile is marshalled into the supplied class and then unmarshalled in the outFile (defaults to temp.xml) and compared with the original xml document. If no class is supplied, then the inFile is compared to the outFile XML files. Note: This mojo only runs in test scope.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Binds by default to the lifecycle phase: test.

Required Parameters

Name Type Since Description
inFile String - The path to the source XML document to compare. NOTE: Relative paths start at ${basedir}.

Optional Parameters

Name Type Since Description
mappedClass String - Root class name to use to round-trip the document.
outFile String - The path to the destination XML document to compare. NOTE: Relative paths start at ${basedir}; If this path is a filename, the directory is the same as inFile.

Parameter Details

inFile:

The path to the source XML document to compare. NOTE: Relative paths start at ${basedir}.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${inFile}

mappedClass:

Root class name to use to round-trip the document.
  • Type: java.lang.String
  • Required: No
  • Expression: ${mappedClass}

outFile:

The path to the destination XML document to compare. NOTE: Relative paths start at ${basedir}; If this path is a filename, the directory is the same as inFile.
  • Type: java.lang.String
  • Required: No
  • Expression: ${outFile}