xjc compiler plugin. This plugin uses JaxMe 2 to generate 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. Note: this goal is now in bug fix mode and won't be extended. Please use the ant based xjc task instead.
Parameters for the goal:
| Parameter | Type | Expression | Default Value | Description |
|---|---|---|---|---|
packageName
|
String
|
-
|
-
|
Specifies the target package for schema-derived classes, for example "com.myapp.xjc". |
project
|
MavenProject
|
${project}
|
-
|
The maven project. |
readonly (Optional) |
boolean
|
-
|
false
|
Whether or not the generated source files are read-only. |
schema
|
String
|
-
|
-
|
The schema file to be compiled, either absolute or relative to your project directory. For example "src/main/resources/com/myapp/myschema.xsd". 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. |
validating (Optional) |
boolean
|
-
|
false
|
Whether or not the underlying xml parser will operate in validating mode. |
xjcBuildDirectory
|
String
|
${project.build.directory}/xjc
|
-
|
The directory the binding classes should be generated in. |