forked from gmazza/blog-samples
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpom.xml
313 lines (304 loc) · 13.5 KB
/
pom.xml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<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>org.gmazza</groupId>
<artifactId>blog-samples</artifactId>
<version>1.0-SNAPSHOT</version>
<name>Root POM for Blog Samples</name>
<description>Source code for the web service tutorials listed at http://web-gmazza.rhcloud.com/blog/entry/blog-index</description>
<packaging>pom</packaging>
<modules>
<module>web_service_tutorial</module>
<module>soap_client_tutorial</module>
<module>ssl_for_web_services</module>
<module>cxf_usernametoken_profile</module>
<module>metro_usernametoken_profile</module>
<module>cxf_x509_profile</module>
<module>metro_x509_profile</module>
<module>cxf_sts_tutorial</module>
<module>metro_sts_tutorial</module>
<module>opensaml_with_web_services</module>
<module>junit_for_soap_clients</module>
<module>junit_web_service_testing</module>
<module>asynchronous_web_service_calls</module>
<module>jaxws_handler_tutorial</module>
<module>jaxwshandlers_to_cxfinterceptors</module>
<module>enhancing_jaxb_artifacts</module>
<module>updating_databases_with_jaxws</module>
<module>quartz_scheduled_soap_calls</module>
<module>soap_contract_xslt_cleanup</module>
<module>using_mtom_and_apache_fop</module>
<module>cxf_soap_over_jms</module>
<module>web_service_ear_tutorial</module>
</modules>
<prerequisites>
<maven>3.0</maven>
</prerequisites>
<!-- Note web_service_tutorial, java_first_web_service, and soap_client_tutorial
poms are standalone (do not reference this pom) to help keep the
corresponding blog tutorials as clear as possible.
Others reference this pom and hence rely on the below settings -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<cxf.version>3.0.2</cxf.version>
<spring.version>3.2.5.RELEASE</spring.version>
<slf4j.version>1.7.7</slf4j.version>
<wsp.module.name>-- Web Service Provider</wsp.module.name>
<wspwar.module.name>-- Service WAR file</wspwar.module.name>
<stswar.module.name>-- STS WAR file</stswar.module.name>
<wsc.module.name>-- SOAP Client</wsc.module.name>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
</dependency>
<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>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-ws-security</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http-jetty</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf.services.sts</groupId>
<artifactId>cxf-services-sts-core</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-ws-mex</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>${slf4j.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!--
See http://metro.java.net/guide/Using_Mavenized_Metro_Binaries.html
for more Metro/Maven config info
-->
<dependency>
<groupId>org.glassfish.metro</groupId>
<artifactId>webservices-rt</artifactId>
<version>2.3</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>10.11.1.1</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
<configuration>
<downloadSources>true</downloadSources>
<!--downloadJavadocs>true</downloadJavadocs-->
<useProjectReferences>true</useProjectReferences>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!-- Below plugin provides a separate JAR for the JAX-WS artifacts
(i.e., the objects created by running wsdl2java or wsimport), as this JAR
will also be used by the SOAP client for each web service provider using this plugin.
More info: http://maven.apache.org/plugins/maven-assembly-plugin/
-->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<appendAssemblyId>true</appendAssemblyId>
<attach>true</attach>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Below used with client poms, default params for running client via mvn exec:exec -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.2</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath />
<!-- Uncomment below for debug output with CXF. Will
need to configure client-side interceptors and supply a java.util.logging
properties file: http://cxf.apache.org/docs/debugging-and-logging.html
Place the logging file in the client folder. -->
<!--argument>
-Djava.util.logging.config.file=mylogging.properties
</argument -->
<!-- Uncomment below for debug output with Metro -->
<!--argument>
-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true
</argument-->
<argument>
client.WSClient
</argument>
</arguments>
</configuration>
</plugin>
<!-- Below used with OSGi deployment; in service poms -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.5.3</version>
<extensions>true</extensions>
</plugin>
<!-- Below used with CXF service poms -->
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Below used with Metro service poms -->
<plugin>
<groupId>org.jvnet.jax-ws-commons</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<goals>
<goal>wsimport</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
For Tomcat 7 and 8, both embedded (tomcat7:run-war) and standalone
deployment - tomcat7:deploy/undeploy/redeploy
How to configure Maven and Tomcat to use below plugin:
http://web-gmazza.rhcloud.com/blog/entry/web-service-tutorial#maventomcat
-->
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<server>myTomcat</server>
<url>http://localhost:8080/manager/text</url>
<path>/${project.build.finalName}</path>
</configuration>
</plugin>
<!-- Never used; bad URL error message will remind those
inadvertently using tomcat:xxx instead of tomcat7:xxx -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<url>Use tomcat7:xxx instead of tomcat:xxx goals!</url>
</configuration>
</plugin>
<!-- Below for WAR submodules, defaults for when creating the WAR file. -->
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
</plugin>
<!-- Below activates any integration tests where testcases require
the JAR or WAR to be created first (see http://tinyurl.com/7zfp7v7) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.17</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<version>1.0</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>