xjc:xjc

Full name:

org.codehaus.mojo:xjc-maven-plugin:1.0-beta-2-SNAPSHOT:xjc

Description:

xjc compiler plugin. This plugin generates JAXB source files from an XML schema. The source files are generated in a directory under the project build directory derived from the configured properties.

A word of caution: Your schema may be rejected if your text editor places spurious whitespace characters at the start of the file - if you think your schema is otherwise well formed then open it up in a hex editor and correct as necessary.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • Binds by default to the lifecycle phase: generate-sources.

Required Parameters

Name Type Since Description
task String - The xjc ant task, for example: <xjc schema="src/main/resources/com/acme/services.xsd" package="com.acme"/> Place inside a CDATA section - see README.txt for more information.

Parameter Details

task:

The xjc ant task, for example: <xjc schema="src/main/resources/com/acme/services.xsd" package="com.acme"/> Place inside a CDATA section - see README.txt for more information.
  • Type: java.lang.String
  • Required: Yes