Skip to content

Instantly share code, notes, and snippets.

@pulkitsinghal
Created May 22, 2014 16:49
Show Gist options
  • Save pulkitsinghal/9eb608096aeffd4d3306 to your computer and use it in GitHub Desktop.
Save pulkitsinghal/9eb608096aeffd4d3306 to your computer and use it in GitHub Desktop.
Extend classes generated by cxf-codegen-plugin usign the fluent plugin
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
<id>generate-wsdl-sources</id>
<phase>generate-sources</phase>
<configuration>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/wsdl/wsdl.xml</wsdl>
<wsdlLocation>classpath:wsdl/wsdl.xml</wsdlLocation>
<extraargs>
<extraarg>-impl</extraarg>
<extraarg>-verbose</extraarg>
<extraarg>-xjc-Xfluent-api</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>net.java.dev.jaxb2-commons</groupId>
<artifactId>jaxb-fluent-api</artifactId>
<version>${jaxb.fluent.api.version}</version>
</dependency>
</dependencies>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment