Skip to content

Instantly share code, notes, and snippets.

@hasithaa
Created August 25, 2013 04:12
Show Gist options
  • Select an option

  • Save hasithaa/6331948 to your computer and use it in GitHub Desktop.

Select an option

Save hasithaa/6331948 to your computer and use it in GitHub Desktop.
<plugins>
<!-- usage of jax-ws maven plugin-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>1.12</version>
<executions>
<execution>
<id>wsimport-from-jdk</id>
<goals>
<goal>wsimport</goal>
</goals>
</execution>
</executions>
<configuration>
<!--wsdls file directory -->
<wsdlDirectory>src/main/resources/wsdls</wsdlDirectory>
<!-- which wsdl file -->
<wsdlFiles>
<wsdlFile>echo.wsdl</wsdlFile>
</wsdlFiles>
<!-- Keep generated files -->
<keep>true</keep>
<!-- Package name -->
<packageName>org.example.echo.service.skeleton</packageName>
<!-- generated source files destination-->
<sourceDestDir>target/generated-code/src</sourceDestDir>
</configuration>
</plugin>
<!-- adding generated source -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>target/generated-code/src</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
...
<plugins>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment