THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
<plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>${cxf.version}</version> <executions> <execution> <id>generate-sources</id> <phase>generate-sources</phase> <configuration> <wsdlOptions> <wsdlOption> <wsdl>${basedir}/src/main/wsdl/myService.wsdl</wsdl> <extraargs> <extraarg>-xjc-b,binding.xjb</extraarg> <extraarg>-xjc-Xts</extraarg> </extraargs> </wsdlOption> </wsdlOptions> </configuration> <goals> <goal>wsdl2java</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-xjc-ts</artifactId> <version>${cxf.version}</version> </dependency> </dependencies> </plugin> |
Other configuration options
The cxf-codegen-plugin has some additional configuration options that may be useful:
<fork>false/always/once</fork> | Forks a separate JVM for the code generation |
<additionalJvmArgs>.... | Additional JVM args set on the forked process if fork is not false |
<encoding>UTF-8</encoding> | (new in 2.6.1, requires configuring plugin to use very latest JAXB 2.2 impl jars) |