THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Example 6: Loading a wsdl from the maven repository
For CXF 2.3 and latter there There is a new config element <wsdlArtifact> wsdlOption configuration which can be used to load a wsdl file from the maven repository.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>${cxf.version}</version> <configuration> <fork>once</fork> <additionalJvmArgs>-Djava.endorsed.dirs=${project.build.directory}/endorsed</additionalJvmArgs> <!-- rest of the normal codegen configuration options --> </configuration> <dependencies> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>2.2.2<11</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-xjc</artifactId> <version>2.2.2<11</version> </dependency> </dependencies> </plugin> |
...
<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.11 impl jars) |