Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.