Skip to content

Instantly share code, notes, and snippets.

@robbypelssers
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save robbypelssers/ba9a9bdeb1a9cdcf37aa to your computer and use it in GitHub Desktop.

Select an option

Save robbypelssers/ba9a9bdeb1a9cdcf37aa to your computer and use it in GitHub Desktop.
helloworldservice - pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.pelssers</groupId>
<artifactId>objectfactory</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<cxf.version>2.7.8</cxf.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<defaultGoal>clean generate-sources install</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/helloworld.wsdl</wsdl>
<extraargs>
<extraarg>-frontend</extraarg>
<extraarg>jaxws21</extraarg>
<extraarg>-p</extraarg>
<extraarg>http://com.pelssers.helloworld/=com.pelssers.helloworld</extraarg>
<extraarg>-p</extraarg>
<extraarg>http://com.pelssers.helloworld/wrapper=com.pelssers.helloworld.wrapper</extraarg>
<extraarg>-b</extraarg>
<extraarg>${basedir}/src/main/resources/bindings.xml</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.cxf.xjc-utils</groupId>
<artifactId>cxf-xjc-runtime</artifactId>
<version>2.6.1</version>
</dependency>
</dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment