Forked from mpellegrini/maven-jaxws-plugin_withClientJar.xml
Last active
August 29, 2015 14:19
-
-
Save FMCalisto/9fbee9e9b635109a5b4a to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
| <plugin> | |
| <!-- | |
| Generates JAXWS classes for all of the WSDL files in $[project.base.dir}/src/wsdl. | |
| --> | |
| <groupId>org.jvnet.jax-ws-commons</groupId> | |
| <artifactId>jaxws-maven-plugin</artifactId> | |
| <version>2.3</version> | |
| <executions> | |
| <execution> | |
| <goals> | |
| <goal>wsimport</goal> | |
| </goals> | |
| <configuration> | |
| <args> | |
| <arg>-clientjar</arg> | |
| <arg>${project.build.directory}/wsimport-client.jar</arg> | |
| </args> | |
| <wsdlUrls> | |
| <wsdlUrl>https://webservice.com/service.wsdl</wsdlUrl> | |
| </wsdlUrls> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| <configuration> | |
| <target>2.1</target> | |
| <verbose>true</verbose> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <!-- | |
| Unjar the wsimport-client.jar created in the jaxws-maven-plugin to the WAR's classes folder | |
| --> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-antrun-plugin</artifactId> | |
| <version>1.7</version> | |
| <executions> | |
| <execution> | |
| <phase>process-resources</phase> | |
| <configuration> | |
| <target> | |
| <unzip src="${project.build.directory}/wsimport-client.jar" dest="${project.build.directory}/classes" /> | |
| </target> | |
| </configuration> | |
| <goals> | |
| <goal>run</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment