Skip to content

Instantly share code, notes, and snippets.

@tjsnell
Last active December 17, 2015 06:09
Show Gist options
  • Save tjsnell/5563482 to your computer and use it in GitHub Desktop.
Save tjsnell/5563482 to your computer and use it in GitHub Desktop.
Maven WSDL Code Generator Plugin
<build>
<plugins>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<wsdlOptions>
<wsdlOption>
<wsdl>src/main/resources/CustomerService.wsdl</wsdl>
<frontEnd>jaxws21</frontEnd>
<faultSerialVersionUID>1</faultSerialVersionUID>
<bindingFiles>
<bindingFile>src/main/resources/binding.xml</bindingFile>
</bindingFiles>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<finalName>wsdl_first</finalName>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment