-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathpom.xml
More file actions
62 lines (56 loc) Β· 3.1 KB
/
pom.xml
File metadata and controls
62 lines (56 loc) Β· 3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="UTF-8"?>
<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>
<parent>
<groupId>org.javaee7</groupId>
<artifactId>jaxws</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>jaxws-jaxws-client</artifactId>
<packaging>war</packaging>
<name>Java EE 7 Sample: jaxws - jaxws-client</name>
<build>
<finalName>jaxws-client</finalName>
<plugins>
<plugin>
<!-- wsimport for web service classes generation -->
<groupId>com.helger.maven</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.6.2</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<!--
Generates JAX-WS portable artifacts used in JAX-WS clients and services.
This goal reads WSDL files and generates the required artifacts for web service development,
deployment, and invocation.
-->
<goal>wsimport</goal>
</goals>
<configuration>
<packageName>org.javaee7.jaxws.client.gen</packageName>
<!--
Could technically do the following without needing the .wsdl file in this project, but must
have the jaxws-endpoint class running then during the build.
-->
<!--
<wsdlUrls>
<wsdlUrl>http://localhost:8080/jaxws-endpoint/EBookStoreImplService?wsdl</wsdlUrl>
</wsdlUrls>
-->
<!-- For convenience, use a pre-copied wsdl file instead of requesting it from the server -->
<wsdlFiles>
<wsdlFile>${basedir}/src/main/webapp/WEB-INF/wsdl/EBookStoreImplService.wsdl</wsdlFile>
</wsdlFiles>
<!-- Set the location in the generated Java files as-if we had fetched the wsdl file from the server -->
<wsdlLocation>http://localhost:8080/jaxws-endpoint/EBookStoreImplService?wsdl</wsdlLocation>
<verbose>true</verbose>
<sourceDestDir>${basedir}/src/main/java</sourceDestDir>
<target>2.1</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>