Last active
March 2, 2017 21:03
-
-
Save pmedcraft/02301669cedf9ba2b731813104ed6aad to your computer and use it in GitHub Desktop.
Getting the Java proxy for the SDL Web (Tridion) Core Service using the jaxws-maven-plugin
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
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment