...
xsd | The location of the schema to process. |
bindingFile | The location of the JAXB binding file to customize the output. |
bindingFiles | It's possible to specify multiple bindingFile options using "bindingFiles" since the 3.2.3 release. |
packagename | Specifies the package name to use for the outputted code. |
extension | (boolean) Turns on the custom JAXB implementation extensions. |
catalog | The location of a catalog file for mapping schema locations. |
extensionArgs | List of additional arguements passed to XJC. (ex: -Xlocator) |
dependencies | List of files that are examined to determine if subsequent runs of the plugin must re-generate code. |
deleteDirs | List of directories that are removed after generation. If you have schemas that generate code that has already been generated, (possibly in a different maven module) you can specify this to have them removed. The preferred method to do this, however, is a binding file with the "skip" flag set on those namespaces. |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-xjc-plugin</artifactId> <version>2<version>3.32.0<3</version> <configuration> <extensions> <extension>org.apache.cxf.xjcplugins:cxf-xjc-dv:3.2.3.0<3</extension> </extensions> </configuration> <executions> <execution> <id>generate-sources</id> <phase>generate-sources</phase> <goals> <goal>xsdtojava</goal> </goals> <configuration> <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot> <xsdOptions> <xsdOption> <xsd>classpath:/schemas/wsdl/http.xsd</xsd> <bindingFile>classpath:/schemas/wsdl/http.xjb</bindingFile> <catalog>${basedir}/src/main/build-resources/catalog.cat</catalog> </xsdOption> <xsdOption> <xsd>classpath:/schemas/wsdl/ws-addr.xsd</xsd> <packagename>org.apache.cxf.ws.addressing</packagename> </xsdOption> <xsdOption> <xsd>classpath:/schemas/wsdl/addressing.xsd</xsd> <bindingFile>classpath:/schemas/wsdl/addressing.xjb</bindingFile> </xsdOption> <xsdOption> <xsd>classpath:/schemas/configuration/security.xsd</xsd> <bindingFiles> <bindingFile>classpath:/schemas/configuration/security.xjb</bindingFile> <catalog>$ <bindingFile>classpath:/schemas/configuration/security2.xjb</bindingFile> </bindingFiles> <catalog>${basedir}/src/main/build-resources/catalog.cat</catalog> <extensionArgs> <extensionArg>-Xdv</extensionArg> </extensionArgs> </xsdOption> <xsdOption> <xsd>classpath:/schemas/wsdl/ws-addr-wsdl.xsd</xsd> <bindingFile>classpath:/schemas/wsdl/ws-addr-wsdl.xjb</bindingFile> <extension>true</extension> </xsdOption> <xsdOption> <xsd>classpath:/schemas/wsdl/addressing200403.xsd</xsd> <bindingFile>classpath:/schemas/wsdl/addressing200403.xjb</bindingFile> </xsdOption> </xsdOptions> </configuration> </execution> </executions> </plugin> |
...