Skip to content

Instantly share code, notes, and snippets.

@davidraviv
Created April 17, 2014 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidraviv/10984450 to your computer and use it in GitHub Desktop.
Save davidraviv/10984450 to your computer and use it in GitHub Desktop.
Add this to the build part of a pom.xml to generate wsdl related classes. The wsdl is expected to be locally stored under src/main/resources/wsdl
<build>
<plugins>
<!--Generate wsdl related classes-->
<plugin>
<groupId>org.jvnet.jax-ws-commons</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<id>Wsdl1</id>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<sourceDestDir>${project.build.directory}/generated-sources/jaxb</sourceDestDir>
<wsdlFiles>
<wsdlFile>myWsdl.wsdl</wsdlFile>
</wsdlFiles>
<wsdlDirectory>${basedir}/src/main/resources/wsdl/</wsdlDirectory>
<wsdlLocation>/wsdl/myWsdl.wsdl</wsdlLocation>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment