Created
April 17, 2014 13:42
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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