Created
May 24, 2012 06:00
-
-
Save meiwin/2779731 to your computer and use it in GitHub Desktop.
Configure cxf wsdl2java to generate list setter in Maven
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
<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/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.yourcompany</groupId> | |
<artifactId>yourartifact</artifactId> | |
<version>1.0.0</version> | |
<packaging>jar</packaging> | |
<dependencies> | |
<dependency> | |
<groupId>org.apache.cxf</groupId> | |
<artifactId>cxf-rt-core</artifactId> | |
<version>2.3.1</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.cxf</groupId> | |
<artifactId>cxf-rt-databinding-jaxb</artifactId> | |
<version>2.3.1</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.cxf</groupId> | |
<artifactId>cxf-rt-frontend-jaxws</artifactId> | |
<version>2.3.1</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.cxf</groupId> | |
<artifactId>cxf-rt-transports-http</artifactId> | |
<version>2.3.1</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.cxf</groupId> | |
<artifactId>cxf-codegen-plugin</artifactId> | |
<version>2.3.1</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/wsdl/${project.version}/yourwsdl.wsdl</wsdl> | |
<extraargs> | |
<extraarg>-xjc-Xcollection-setter-injector</extraarg> | |
</extraargs> | |
</wsdlOption> | |
</wsdlOptions> | |
</configuration> | |
<goals> | |
<goal>wsdl2java</goal> | |
</goals> | |
</execution> | |
</executions> | |
<dependencies> | |
<dependency> | |
<groupId>net.java.dev.vcc.thirdparty</groupId> | |
<artifactId>collection-setter-injector</artifactId> | |
<version>0.5.0-1</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment