Skip to content

Instantly share code, notes, and snippets.

@nazartm
Last active December 11, 2015 01:38
Show Gist options
  • Save nazartm/4524580 to your computer and use it in GitHub Desktop.
Save nazartm/4524580 to your computer and use it in GitHub Desktop.
Generating Java artifacts from a WSDL using JAX-WS Maven plugin.
<build>
<plugins>
<plugin>
<groupId>org.jvnet.jax-ws-commons</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<goals>
<goal>wsimport</goal>
</goals>
</execution>
</executions>
<configuration>
<keep>true</keep>>
<verbose>true</verbose>
<wsdlDirectory>src/main/resources/wsdl</wsdlDirectory>
<!--
<bindingDirectory>src/main/resources/binding</bindingDirectory>
-->
</configuration>
<dependencies>
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId>
<version>2.1.7</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment