This file contains hidden or 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
<dependencies> | |
<!-- This is for the JAXWS WsImport --> | |
<dependency> | |
<groupId>com.sun.xml.ws</groupId> | |
<artifactId>jaxws-rt</artifactId> | |
<version>2.2.8</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> | |
</execution> | |
</executions> | |
<configuration> | |
<wsdlUrls> | |
<wsdlUrl>http://domain/webservices/CoreService2013.svc?wsdl</wsdlUrl> | |
</wsdlUrls> | |
</configuration> | |
<!-- if you want to use a specific version of JAX-WS, you can do so like this --> | |
<dependencies> | |
<dependency> | |
<groupId>com.sun.xml.ws</groupId> | |
<artifactId>jaxws-tools</artifactId> | |
<version>2.2.5</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<source>1.8</source> | |
<target>1.8</target> | |
<compilerArguments> | |
<endorseddirs>${project.build.directory}/endorsed</endorseddirs> | |
</compilerArguments> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<version>2.3</version> | |
<executions> | |
<execution> | |
<phase>validate</phase> | |
<goals> | |
<goal>copy</goal> | |
</goals> | |
<configuration> | |
<outputDirectory>${project.build.directory}/endorsed</outputDirectory> | |
<silent>true</silent> | |
<artifactItems> | |
<artifactItem> | |
<groupId>javax.xml.bind</groupId> | |
<artifactId>jaxb-api</artifactId> | |
<version>2.2.7</version> | |
<type>jar</type> | |
</artifactItem> | |
<artifactItem> | |
<groupId>javax.xml.ws</groupId> | |
<artifactId>jaxws-api</artifactId> | |
<version>2.2.9</version> | |
<type>jar</type> | |
</artifactItem> | |
</artifactItems> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> |
No comments:
Post a Comment