Goals available for this plugin:
| Goal | Description |
|---|---|
| xjc:help | Display help information on xjc-maven-plugin. Call mvn xjc:help -Ddetail=true -Dgoal=<goal-name>to display parameter details. |
| xjc:xjc | 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. |
The following specifies the minimum requirements to run this Maven plugin:
| Maven | 2.0 |
| JDK | 1.4 |
| Memory | No minimum requirement. |
| Disk Space | No minimum requirement. |
You should specify the version in your project's plugin configuration:
<project>
...
<build>
<!-- To define the plugin version in your parent POM -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xjc-maven-plugin</artifactId>
<version>1.0-beta-2-SNAPSHOT</version>
</plugin>
...
</plugins>
</pluginManagement>
<!-- To use the plugin goals in your POM or parent POM -->
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xjc-maven-plugin</artifactId>
<version>1.0-beta-2-SNAPSHOT</version>
</plugin>
...
</plugins>
</build>
...
</project>
For more information, see "Guide to Configuring Plug-ins"