Created
December 22, 2015 16:49
-
-
Save zeroows/c3410935b9969aae6c3d to your computer and use it in GitHub Desktop.
generation service from wsdl
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
<profiles> | |
<profile> | |
<id>CXF</id> | |
<!-- To use Metro by default, move this activation element to its profile below --> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<properties> | |
<cxf.version>3.0.1</cxf.version> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>org.apache.cxf</groupId> | |
<artifactId>cxf-rt-frontend-jaxws</artifactId> | |
<version>${cxf.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.cxf</groupId> | |
<artifactId>cxf-rt-transports-http</artifactId> | |
<version>${cxf.version}</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.cxf</groupId> | |
<artifactId>cxf-codegen-plugin</artifactId> | |
<version>${cxf.version}</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>wsdl2java</goal> | |
</goals> | |
<configuration> | |
<sourceRoot>${basedir}/target/generated-sources</sourceRoot> | |
<wsdlOptions> | |
<wsdlOption> | |
<wsdl> | |
${basedir}/src/main/resources/ShoppingService.wsdl | |
</wsdl> | |
<wsdlLocation>classpath:ShoppingService.wsdl</wsdlLocation> | |
</wsdlOption> | |
</wsdlOptions> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
<profile> | |
<id>Metro</id> | |
<dependencies> | |
<dependency> | |
<groupId>org.glassfish.metro</groupId> | |
<artifactId>webservices-rt</artifactId> | |
<version>2.3</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.jvnet.jax-ws-commons</groupId> | |
<artifactId>jaxws-maven-plugin</artifactId> | |
<version>2.3</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>wsimport</goal> | |
</goals> | |
<configuration> | |
<wsdlDirectory>src/main/resources</wsdlDirectory> | |
<wsdlFiles> | |
<wsdlFile>ShoppingService.wsdl</wsdlFile> | |
</wsdlFiles> | |
<wsdlLocation>/*</wsdlLocation> | |
<sourceDestDir>${basedir}/target/generated-sources</sourceDestDir> | |
<!-- Needed with JAXP 1.5, see https://netbeans.org/bugzilla/show_bug.cgi?id=241570#c2 --> | |
<vmArgs> | |
<vmArg>-Djavax.xml.accessExternalSchema=all</vmArg> | |
</vmArgs> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment