Statistics
| Branch: | Revision:

m2u-upass-ws / pom.xml @ 126:ba591d55eb2a

History | View | Annotate | Download (26.7 KB)

1
<?xml version="1.0"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4

    
5
        <modelVersion>4.0.0</modelVersion>
6

    
7
        <groupId>net.penril</groupId>
8
        <artifactId>m2u-upass-ws</artifactId>
9
        <version>2.0-SNAPSHOT</version>
10
        <packaging>war</packaging>
11
        <name>M2U UPass Web Services</name>
12
        <properties>
13
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14
                <cobertura.version>1.9.4.1</cobertura.version>
15
                <config.postfix />
16
                <tomcat.home>/var/lib/jenkins/apache-tomcat-5.5.33</tomcat.home>
17
                <m2u-upass-classifier></m2u-upass-classifier>
18
        </properties>
19
        <pluginRepositories>
20
                <pluginRepository>
21
                        <id>eviwarePluginRepository</id>
22
                        <url>http://www.eviware.com/repository/maven2/</url>
23
                </pluginRepository>
24
        </pluginRepositories>
25
        <distributionManagement>
26
                <snapshotRepository>
27
                        <id>penril.nexus.repo</id>
28
                        <name>Penril Nexus Repo</name>
29
                        <url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots</url>
30
                        <uniqueVersion>false</uniqueVersion>
31
                </snapshotRepository>
32
        </distributionManagement>
33
        <build>
34
                <pluginManagement>
35
                        <plugins>
36
                                <plugin>
37
                                        <groupId>org.codehaus.mojo</groupId>
38
                                        <artifactId>cobertura-maven-plugin</artifactId>
39
                                        <version>2.5.1</version>
40
                                </plugin>
41
                                <plugin>
42
                                        <groupId>org.apache.maven.plugins</groupId>
43
                                        <artifactId>maven-antrun-plugin</artifactId>
44
                                        <version>1.6</version>
45
                                </plugin>
46
                                <plugin>
47
                                        <groupId>org.mortbay.jetty</groupId>
48
                                        <artifactId>maven-jetty-plugin</artifactId>
49
                                        <version>6.1.16</version>
50
                                        <configuration>
51
                                                <connectors>
52
                                                        <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
53
                                                                <port>9090</port>
54
                                                                <maxIdleTime>60000</maxIdleTime>
55
                                                        </connector>
56
                                                </connectors>
57
                                                <stopPort>9005</stopPort>
58
                                                <stopKey>STOP</stopKey>
59
                                                <contextPath>${project.artifactId}</contextPath>
60
                                                <jettyConfig>target/classes/jetty.xml</jettyConfig>
61
                                        </configuration>
62
                                </plugin>
63
                                <plugin>
64
                                        <groupId>org.glassfish</groupId>
65
                                        <artifactId>maven-embedded-glassfish-plugin</artifactId>
66
                                        <version>3.1.1</version>
67
                                        <configuration>
68
                                                <goalPrefix>embedded-glassfish</goalPrefix>
69
                                                <autoDelete>true</autoDelete>
70
                                                <ports>
71
                                                        <http-listener>9090</http-listener>
72
                                                        <https-listener>9093</https-listener>
73
                                                </ports>
74
                                                <contextRoot>${project.artifactId}</contextRoot>
75
                                        </configuration>
76
                                </plugin>
77
                        </plugins>
78
                </pluginManagement>
79
                <sourceDirectory>src</sourceDirectory>
80
                <resources>
81
                        <resource>
82
                                <directory>src</directory>
83
                                <excludes>
84
                                        <exclude>**/*.java</exclude>
85
                                </excludes>
86
                        </resource>
87
                        <resource>
88
                                <directory>resources</directory>
89
                        </resource>
90
                </resources>
91
                <testSourceDirectory>test/java</testSourceDirectory>
92
                <testResources>
93
                        <testResource>
94
                                <directory>test/resources</directory>
95
                        </testResource>
96
                </testResources>
97
                <plugins>
98
                        <plugin>
99
                                <groupId>org.apache.maven.plugins</groupId>
100
                                <artifactId>maven-war-plugin</artifactId>
101
                                <version>2.1.1</version>
102
                                <configuration>
103
                                        <warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
104
                                </configuration>
105
                        </plugin>
106
                        <plugin>
107
                                <groupId>org.apache.maven.plugins</groupId>
108
                                <artifactId>maven-compiler-plugin</artifactId>
109
                                <version>2.3.2</version>
110
                                <configuration>
111
                                        <source>1.6</source>
112
                                        <target>1.6</target>
113
                                </configuration>
114
                        </plugin>
115
                        <plugin>
116
                                <artifactId>maven-failsafe-plugin</artifactId>
117
                                <version>2.6</version>
118
                                <executions>
119
                                        <execution>
120
                                                <goals>
121
                                                        <goal>integration-test</goal>
122
                                                        <goal>verify</goal>
123
                                                </goals>
124
                                        </execution>
125
                                </executions>
126
                                <dependencies>
127
                                        <dependency>
128
                                                <groupId>net.sourceforge.cobertura</groupId>
129
                                                <artifactId>cobertura-runtime</artifactId>
130
                                                <version>${cobertura.version}</version>
131
                                                <!-- <scope>provided</scope> -->
132
                                                <scope>compile</scope>
133
                                                <type>pom</type>
134
                                        </dependency>
135
                                </dependencies>
136
                        </plugin>
137
                </plugins>
138
        </build>
139
        <profiles>
140
                <profile>
141
                        <id>env-staging-ci</id>
142
                        <activation>
143
                                <property>
144
                                        <name>env</name>
145
                                        <value>staging-ci</value>
146
                                </property>
147
                        </activation>
148
                        <properties>
149
                                <config.postfix>.staging-ci</config.postfix>
150
                        </properties>
151
                        <dependencies>
152
                                <dependency>
153
                                        <groupId>org.hibernate</groupId>
154
                                        <artifactId>hibernate-core</artifactId>
155
                                        <version>3.3.1.GA</version>
156
                                        <type>jar</type>
157
                                        <scope>compile</scope>
158
                                </dependency>
159
                                <dependency>
160
                                        <groupId>org.hibernate</groupId>
161
                                        <artifactId>hibernate-c3p0</artifactId>
162
                                        <version>3.3.1.GA</version>
163
                                </dependency>
164
                                <dependency>
165
                                        <groupId>axis</groupId>
166
                                        <artifactId>axis</artifactId>
167
                                        <version>1.4</version>
168
                                        <type>jar</type>
169
                                        <scope>compile</scope>
170
                                </dependency>
171
                        </dependencies>
172
                </profile>
173
                <profile>
174
                        <id>self-test</id>
175
                        <build>
176
                                <plugins>
177
<!-- 
178
                                        <plugin>
179
                                                <groupId>org.mortbay.jetty</groupId>
180
                                                <artifactId>maven-jetty-plugin</artifactId>
181
                                                <configuration>
182
                                                        <webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory>
183
                                                        <classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
184
                                                </configuration>
185
                                                <executions>
186
                                                        <execution>
187
                                                                <id>start-jetty</id>
188
                                                                <phase>pre-integration-test</phase>
189
                                                                <goals>
190
                                                                        <goal>run</goal>
191
                                                                </goals>
192
                                                                <configuration>
193
                                                                        <scanIntervalSeconds>0</scanIntervalSeconds>
194
                                                                        <daemon>true</daemon>
195
                                                                </configuration>
196
                                                        </execution>
197
                                                        <execution>
198
                                                                <id>stop-jetty</id>
199
                                                                <phase>post-integration-test</phase>
200
                                                                <goals>
201
                                                                        <goal>stop</goal>
202
                                                                </goals>
203
                                                        </execution>
204
                                                </executions>
205
                                                <dependencies>
206
                                                        <dependency>
207
                                                                <groupId>net.sourceforge.cobertura</groupId>
208
                                                                <artifactId>cobertura-runtime</artifactId>
209
                                                                <version>${cobertura.version}</version>
210
                                                                <scope>compile</scope>
211
                                                                <type>pom</type>
212
                                                        </dependency>
213
                                                </dependencies>
214
                                        </plugin>
215
 -->
216
                                        <plugin>
217
                                                <groupId>org.glassfish</groupId>
218
                                                <artifactId>maven-embedded-glassfish-plugin</artifactId>
219
                                                <configuration>
220
                                                        <app>${project.build.directory}/${project.artifactId}-${project.version}-${m2u-upass-classifier}.war</app>
221
                                                        <!-- <app>${project.build.directory}/${project.artifactId}-${project.version}</app> -->
222
                                                </configuration>
223
                                                <executions>
224
                                                        <execution>
225
                                                                <id>start-glassfish</id>
226
                                                                <phase>pre-integration-test</phase>
227
                                                                <goals>
228
                                                                        <goal>start</goal>
229
                                                                </goals>
230
                                                        </execution>
231
                                                        <execution>
232
                                                                <id>glassfish-deploy</id>
233
                                                                <phase>pre-integration-test</phase>
234
                                                                <goals>
235
                                                                        <goal>deploy</goal>
236
                                                                </goals>
237
                                                        </execution>
238
                                                        <!--
239
                                                         <execution>
240
                                                                <id>glassfish-undeploy</id>
241
                                                                <phase>post-integration-test</phase>
242
                                                                <goals>
243
                                                                        <goal>undeploy</goal>
244
                                                                </goals>
245
                                                        </execution>
246
                                                        <execution>
247
                                                                <id>stop-glassfish</id>
248
                                                                <phase>post-integration-test</phase>
249
                                                                <goals>
250
                                                                        <goal>stop</goal>
251
                                                                </goals>
252
                                                        </execution>
253
                                                         -->
254
                                                </executions>
255
                                                <dependencies>
256
                                                        <dependency>
257
                                                                <groupId>net.sourceforge.cobertura</groupId>
258
                                                                <artifactId>cobertura-runtime</artifactId>
259
                                                                <version>${cobertura.version}</version>
260
                                                                <!-- <scope>provided</scope> -->
261
                                                                <scope>compile</scope>
262
                                                                <type>pom</type>
263
                                                        </dependency>
264
                                                </dependencies>
265
                                        </plugin>
266
                                        <plugin>
267
                                                <artifactId>maven-surefire-plugin</artifactId>
268
                                                <configuration>
269
                                                        <classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
270
                                                        <forkMode>none</forkMode>
271
                                                </configuration>
272
                                        </plugin>
273
                                        <plugin>
274
                                                <groupId>eviware</groupId>
275
                                                <artifactId>maven-soapui-plugin</artifactId>
276
                                                <version>4.5.1</version>
277
                                                <executions>
278
                                                        <execution>
279
                                                                <id>UPassWsTests</id>
280
                                                                <goals>
281
                                                                        <goal>test</goal>
282
                                                                </goals>
283
                                                                <phase>integration-test</phase>
284
                                                                <configuration>
285
                                                                        <projectFile>${basedir}/test/soap-ui/UPass-soapui-project.xml</projectFile>
286
<!--                                                                         
287
                                                                        <projectProperties>
288
                                                                                <projectProperty>invokerUsername=UpassAdmin</projectProperty>
289
                                                                                <projectProperty>invokerPassword=password</projectProperty>
290
                                                                        </projectProperties>
291
 -->
292
                                                                </configuration>
293
                                                        </execution>
294
                                                        <execution>
295
                                                                <id>MaybankFacadeTests</id>
296
                                                                <goals>
297
                                                                        <goal>test</goal>
298
                                                                </goals>
299
                                                                <phase>integration-test</phase>
300
                                                                <configuration>
301
                                                                        <projectFile>${basedir}/test/soap-ui/MaybankFacade-soapui-project.xml</projectFile>
302
                                                                </configuration>
303
                                                        </execution>
304
                                                </executions>
305
                                                <configuration>
306
                                                        <host>localhost</host>
307
                                                        <!-- <port>8080</port> -->
308
                                                        <port>9090</port>
309
                                                        <outputFolder>${project.build.directory}/surefire-reports</outputFolder>
310
                                                        <junitReport>true</junitReport>
311
                                                        <printReport>false</printReport>
312
                                                </configuration>
313
                                        </plugin>
314
                                </plugins>
315
                        </build>
316
                </profile>
317
                <profile>
318
                        <id>env-ant</id>
319
                        <activation>
320
                                <property>
321
                                        <name>env</name>
322
                                </property>
323
                        </activation>
324
                        <build>
325
                                <plugins>
326
                                        <plugin>
327
                                                <artifactId>maven-antrun-plugin</artifactId>
328
                                                <executions>
329
                                                        <execution>
330
                                                                <id>env-config</id>
331
                                                                <phase>process-resources</phase>
332
                                                                <configuration>
333
                                                                        <target>
334
                                                                                <delete file="${project.build.outputDirectory}/upassMin.properties" />
335
                                                                                <copy file="resources/upassMin${config.postfix}.properties" tofile="${project.build.outputDirectory}/upassMin.properties" />
336

    
337
                                                                                <delete>
338
                                                                                        <fileset dir="${project.build.outputDirectory}" includes="upassMin.*.properties" />
339
                                                                                </delete>
340
                                                                                <delete file="${project.build.outputDirectory}/hibernate.cfg.xml" />
341
                                                                                <copy file="resources/hibernate${config.postfix}.cfg.xml" tofile="${project.build.outputDirectory}/hibernate.cfg.xml" />
342

    
343
                                                                                <delete>
344
                                                                                        <fileset dir="${project.build.outputDirectory}" includes="hibernate.*.cfg.xml" />
345
                                                                                </delete>
346

    
347
                                                                                <delete file="${project.build.outputDirectory}/spring-ldap.xml" />
348
                                                                                <copy file="resources/spring-ldap${config.postfix}.xml" tofile="${project.build.outputDirectory}/spring-ldap.xml" />
349
                                                                                <delete>
350
                                                                                        <fileset dir="${project.build.outputDirectory}" includes="spring-ldap.*.xml" />
351
                                                                                </delete>
352

    
353
                                                                                <delete file="${project.build.outputDirectory}/log4j.xml" />
354
                                                                                <copy file="resources/log4j${config.postfix}.xml" tofile="${project.build.outputDirectory}/log4j.xml" />
355

    
356
                                                                                <delete>
357
                                                                                        <fileset dir="${project.build.outputDirectory}" includes="log4j.*.xml" />
358
                                                                                </delete>
359
                                                                        </target>
360
                                                                </configuration>
361
                                                                <goals>
362
                                                                        <goal>run</goal>
363
                                                                </goals>
364
                                                        </execution>
365
                                                </executions>
366
                                        </plugin>
367
                                        <plugin>
368
                                                <artifactId>maven-war-plugin</artifactId>
369
                                                <configuration>
370
                                                        <classifier>${env}</classifier>
371
                                                </configuration>
372
                                        </plugin>
373
                                </plugins>
374
                        </build>
375
                </profile>
376
                <profile>
377
                        <id>env-dev-penril</id>
378
                        <activation>
379
                                <property>
380
                                        <name>env</name>
381
                                        <value>dev-penril</value>
382
                                </property>
383
                        </activation>
384
                        <properties>
385
                                <config.postfix>.dev-penril</config.postfix>
386
                        </properties>
387
                        <dependencies>
388
                                <dependency>
389
                                        <groupId>org.hibernate</groupId>
390
                                        <artifactId>hibernate-core</artifactId>
391
                                        <version>3.3.1.GA</version>
392
                                        <type>jar</type>
393
                                        <scope>compile</scope>
394
                                </dependency>
395
                                <dependency>
396
                                        <groupId>axis</groupId>
397
                                        <artifactId>axis</artifactId>
398
                                        <version>1.4</version>
399
                                        <type>jar</type>
400
                                        <scope>compile</scope>
401
                                </dependency>
402
                        </dependencies>
403
                </profile>
404
                <profile>
405
                        <id>env-maybank-dev</id>
406
                        <activation>
407
                                <property>
408
                                        <name>env</name>
409
                                        <value>maybank-dev</value>
410
                                </property>
411
                        </activation>
412
                        <properties>
413
                                <config.postfix>.maybank-dev</config.postfix>
414
                        </properties>
415
                        <dependencies>
416
                                <dependency>
417
                                        <groupId>org.hibernate</groupId>
418
                                        <artifactId>hibernate-core</artifactId>
419
                                        <version>3.3.1.GA</version>
420
                                        <type>jar</type>
421
                                        <scope>compile</scope>
422
                                        <exclusions>
423
                                                <exclusion>
424
                                                        <groupId>xml-apis</groupId>
425
                                                        <artifactId>xml-apis</artifactId>
426
                                                </exclusion>
427
                                        </exclusions>
428
                                </dependency>
429
                                <dependency>
430
                                        <groupId>org.hibernate</groupId>
431
                                        <artifactId>hibernate-c3p0</artifactId>
432
                                        <version>3.3.1.GA</version>
433
                                </dependency>
434
                                <dependency>
435
                                        <groupId>axis</groupId>
436
                                        <artifactId>axis</artifactId>
437
                                        <version>1.4</version>
438
                                        <type>jar</type>
439
                                        <scope>compile</scope>
440
                                        <exclusions>
441
                                                <exclusion>
442
                                                        <artifactId>axis-jaxrpc</artifactId>
443
                                                        <groupId>org.apache.axis</groupId>
444
                                                </exclusion>
445
                                                <exclusion>
446
                                                        <artifactId>axis-saaj</artifactId>
447
                                                        <groupId>org.apache.axis</groupId>
448
                                                </exclusion>
449
                                        </exclusions>
450
                                </dependency>
451
                        </dependencies>
452
                </profile>
453
                <profile>
454
                        <id>env-maybank-prod</id>
455
                        <activation>
456
                                <property>
457
                                        <name>env</name>
458
                                        <value>maybank-prod</value>
459
                                </property>
460
                        </activation>
461
                        <properties>
462
                                <config.postfix>.maybank-prod</config.postfix>
463
                        </properties>
464
                        <dependencies>
465
                                <dependency>
466
                                        <groupId>org.hibernate</groupId>
467
                                        <artifactId>hibernate-core</artifactId>
468
                                        <version>3.3.1.GA</version>
469
                                        <type>jar</type>
470
                                        <scope>compile</scope>
471
                                        <exclusions>
472
                                                <exclusion>
473
                                                        <groupId>xml-apis</groupId>
474
                                                        <artifactId>xml-apis</artifactId>
475
                                                </exclusion>
476
                                        </exclusions>
477
                                </dependency>
478
                                <dependency>
479
                                        <groupId>org.hibernate</groupId>
480
                                        <artifactId>hibernate-c3p0</artifactId>
481
                                        <version>3.3.1.GA</version>
482
                                </dependency>
483
                                <dependency>
484
                                        <groupId>axis</groupId>
485
                                        <artifactId>axis</artifactId>
486
                                        <version>1.4</version>
487
                                        <type>jar</type>
488
                                        <scope>compile</scope>
489
                                        <exclusions>
490
                                                <exclusion>
491
                                                        <artifactId>axis-jaxrpc</artifactId>
492
                                                        <groupId>org.apache.axis</groupId>
493
                                                </exclusion>
494
                                                <exclusion>
495
                                                        <artifactId>axis-saaj</artifactId>
496
                                                        <groupId>org.apache.axis</groupId>
497
                                                </exclusion>
498
                                        </exclusions>
499
                                </dependency>
500
                        </dependencies>
501
                        <build>
502
                                <plugins>
503
                                        <plugin>
504
                                                <groupId>org.glassfish</groupId>
505
                                                <artifactId>maven-embedded-glassfish-plugin</artifactId>
506
                                                <configuration>
507
                                                        <app>${project.build.directory}/${project.artifactId}-${project.version}.war</app>
508
                                                </configuration>
509
                                        </plugin>
510
                                </plugins>
511
                        </build>
512
                </profile>
513
                <profile>
514
                        <id>cobertura-instrument</id>
515
                        <activation>
516
                                <property>
517
                                        <name>cobertura-build</name>
518
                                </property>
519
                        </activation>
520
                        <properties>
521
                                <m2u-upass-classifier>instrumented</m2u-upass-classifier>
522
                        </properties>
523
                        <distributionManagement>
524
                                <snapshotRepository>
525
                                        <id>penril.nexus.repo.coverage</id>
526
                                        <name>Penril Nexus Repo Coverage</name>
527
                                        <url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots-coverage</url>
528
                                </snapshotRepository>
529
                        </distributionManagement>
530
                        <build>
531
                                <plugins>
532
                                        <plugin>
533
                                                <artifactId>maven-war-plugin</artifactId>
534
                                                <configuration>
535
                                                        <classifier>${m2u-upass-classifier}</classifier>
536
                                                        <packagingExcludes>WEB-INF/lib/m2u-upass-*SNAPSHOT.jar</packagingExcludes>
537
                                                </configuration>
538
                                        </plugin>
539
                                        <plugin>
540
                                                <groupId>org.codehaus.mojo</groupId>
541
                                                <artifactId>cobertura-maven-plugin</artifactId>
542
                                                <configuration>
543
                                                        <formats>
544
                                                                <format>html</format>
545
                                                                <format>xml</format>
546
                                                        </formats>
547

    
548
                                                        <!-- TODO: To be configured... -->
549
                                                        <instrumentation>
550
                                                                <ignores>
551
                                                                        <ignore>com.example.boringcode.*</ignore>
552
                                                                </ignores>
553
                                                                <excludes>
554
                                                                        <exclude>com/example/dullcode/**/*.class</exclude>
555
                                                                        <exclude>com/example/**/*Test.class</exclude>
556
                                                                </excludes>
557
                                                        </instrumentation>
558

    
559
                                                        <!-- TODO: To be configured... -->
560
                                                        <check>
561
                                                                <branchRate>85</branchRate>
562
                                                                <lineRate>85</lineRate>
563
                                                                <haltOnFailure>true</haltOnFailure>
564
                                                                <totalBranchRate>85</totalBranchRate>
565
                                                                <totalLineRate>85</totalLineRate>
566
                                                                <packageLineRate>85</packageLineRate>
567
                                                                <packageBranchRate>85</packageBranchRate>
568
                                                                <regexes>
569
                                                                        <regex>
570
                                                                                <pattern>com.example.reallyimportant.*</pattern>
571
                                                                                <branchRate>90</branchRate>
572
                                                                                <lineRate>80</lineRate>
573
                                                                        </regex>
574
                                                                        <regex>
575
                                                                                <pattern>com.example.boringcode.*</pattern>
576
                                                                                <branchRate>40</branchRate>
577
                                                                                <lineRate>30</lineRate>
578
                                                                        </regex>
579
                                                                </regexes>
580
                                                        </check>
581
                                                </configuration>
582
                                                <executions>
583
                                                        <execution>
584
                                                                <id>instrument-code</id>
585
                                                                <phase>process-classes</phase>
586
                                                                <goals>
587
                                                                        <goal>instrument</goal>
588
                                                                </goals>
589
                                                                <configuration>
590
                                                                        <attach>true</attach>
591
                                                                </configuration>
592
                                                        </execution>
593
                                                </executions>
594
                                        </plugin>
595
                                        <plugin>
596
                                                <artifactId>maven-source-plugin</artifactId>
597
                                                <executions>
598
                                                        <execution>
599
                                                                <id>attach-sources</id>
600
                                                                <goals>
601
                                                                        <goal>jar</goal>
602
                                                                </goals>
603
                                                        </execution>
604
                                                </executions>
605
                                                <inherited>true</inherited>
606
                                        </plugin>
607
                                </plugins>
608
                        </build>
609
                        <dependencies>
610
                                <dependency>
611
                                        <groupId>net.sourceforge.cobertura</groupId>
612
                                        <artifactId>cobertura-runtime</artifactId>
613
                                        <version>${cobertura.version}</version>
614
                                        <!-- <scope>provided</scope> -->
615
                                        <scope>compile</scope>
616
                                        <type>pom</type>
617
                                </dependency>
618
                        </dependencies>
619
                </profile>
620
                <profile>
621
                        <id>custom-war-deploy</id>
622
                        <activation>
623
                                <property>
624
                                        <name>custom-war-deploy</name>
625
                                </property>
626
                        </activation>
627
                        <build>
628
                                <plugins>
629
                                        <plugin>
630
                                                <artifactId>maven-antrun-plugin</artifactId>
631
                                                <executions>
632
                                                        <execution>
633
                                                                <id>tomcat-deployment</id>
634
                                                                <phase>install</phase>
635
                                                                <configuration>
636
                                                                        <target>
637
                                                                                <!-- <echo>Shutting down the Tomcat</echo> <exec dir="${tomcat.home}/bin" 
638
                                                                                        executable="${tomcat.home}/bin/shutdown.sh" /> -->
639
                                                                                <copy file="${basedir}/target/${project.artifactId}-${project.version}.war" tofile="${tomcat.home}/webapps/${project.artifactId}.war"
640
                                                                                        overwrite="true" />
641
                                                                                <!-- <echo>Starting up the Tomcat</echo> <exec dir="${tomcat.home}/bin" 
642
                                                                                        executable="${tomcat.home}/bin/startup.sh" /> -->
643
                                                                        </target>
644
                                                                </configuration>
645
                                                                <goals>
646
                                                                        <goal>run</goal>
647
                                                                </goals>
648
                                                        </execution>
649
                                                </executions>
650
                                        </plugin>
651
                                </plugins>
652
                        </build>
653
                </profile>
654
                <profile>
655
                        <id>load-test</id>
656
                        <build>
657
                                <plugins>
658
                                        <plugin>
659
                                                <groupId>org.mortbay.jetty</groupId>
660
                                                <artifactId>maven-jetty-plugin</artifactId>
661
                                                <configuration>
662
                                                        <webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory>
663
                                                        <classesDirectory>${project.build.directory}/classes</classesDirectory>
664
                                                        <daemon>true</daemon>
665
                                                </configuration>
666
                                        </plugin>
667
                                        <plugin>
668
                                                <groupId>org.glassfish</groupId>
669
                                                <artifactId>maven-embedded-glassfish-plugin</artifactId>
670
                                                <configuration>
671
                                                        <app>${project.build.directory}/${project.artifactId}-${project.version}-${m2u-upass-classifier}.war</app>
672
                                                </configuration>
673
                                                <executions>
674
                                                        <execution>
675
                                                                <id>start-glassfish</id>
676
                                                                <phase>pre-integration-test</phase>
677
                                                                <goals>
678
                                                                        <goal>start</goal>
679
                                                                </goals>
680
                                                        </execution>
681
                                                        <execution>
682
                                                                <id>glassfish-deploy</id>
683
                                                                <phase>pre-integration-test</phase>
684
                                                                <goals>
685
                                                                        <goal>deploy</goal>
686
                                                                </goals>
687
                                                        </execution>
688
                                                        <execution>
689
                                                                <id>glassfish-undeploy</id>
690
                                                                <phase>post-integration-test</phase>
691
                                                                <goals>
692
                                                                        <goal>undeploy</goal>
693
                                                                </goals>
694
                                                        </execution>
695
                                                        <execution>
696
                                                                <id>stop-glassfish</id>
697
                                                                <phase>post-integration-test</phase>
698
                                                                <goals>
699
                                                                        <goal>stop</goal>
700
                                                                </goals>
701
                                                        </execution>
702
                                                </executions>
703
                                                <dependencies>
704
                                                        <dependency>
705
                                                                <groupId>net.sourceforge.cobertura</groupId>
706
                                                                <artifactId>cobertura-runtime</artifactId>
707
                                                                <version>${cobertura.version}</version>
708
                                                                <!-- <scope>provided</scope> -->
709
                                                                <scope>compile</scope>
710
                                                                <type>pom</type>
711
                                                        </dependency>
712
                                                </dependencies>
713
                                        </plugin>
714
                                        <plugin>
715
                                                <artifactId>maven-antrun-plugin</artifactId>
716
                                                <executions>
717
                                                        <execution>
718
                                                                <phase>process-resources</phase>
719
                                                                <configuration>
720
                                                                        <target>
721
                                                                                <echo message="Creating a directory required by our JMeter test plan." />
722
                                                                                <mkdir dir="${basedir}/target/jmeter/responses/add" />
723
                                                                                <mkdir dir="${basedir}/target/jmeter/responses/auth" />
724
                                                                        </target>
725
                                                                </configuration>
726
                                                                <goals>
727
                                                                        <goal>run</goal>
728
                                                                </goals>
729
                                                        </execution>
730
                                                </executions>
731
                                        </plugin>
732
                                        <plugin>
733
                                                <groupId>org.codehaus.mojo</groupId>
734
                                                <artifactId>exec-maven-plugin</artifactId>
735
                                                <executions>
736
                                                        <execution>
737
                                                                <id>upass-load-test</id>
738
                                                                <phase>integration-test</phase>
739
                                                                <goals>
740
                                                                        <goal>exec</goal>
741
                                                                </goals>
742
                                                                <configuration>
743
                                                                        <executable>${JMETER_HOME}/bin/jmeter.sh</executable>
744
                                                                        <arguments>
745
                                                                                <argument>-n</argument>
746
                                                                                <argument>-t</argument>
747
                                                                                <argument>${basedir}/test/jmeter/UPass-test-plan.jmx</argument>
748
                                                                                <argument>-l</argument>
749
                                                                                <argument>${project.build.directory}/jmeter/result.jtl</argument>
750
                                                                                <argument>-J</argument>
751
                                                                                <argument>jmeter.save.saveservice.output_format=xml</argument>
752
                                                                                <argument>-J</argument>
753
                                                                                <argument>jmeter.save.saveservice.thread_counts=true</argument>
754
                                                                                <argument>-j</argument>
755
                                                                                <argument>${project.build.directory}/jmeter/jmeter.log</argument>
756
                                                                        </arguments>
757
                                                                </configuration>
758
                                                        </execution>
759
                                                        <execution>
760
                                                                <id>maybank-load-test</id>
761
                                                                <phase>integration-test</phase>
762
                                                                <goals>
763
                                                                        <goal>exec</goal>
764
                                                                </goals>
765
                                                                <configuration>
766
                                                                        <executable>${JMETER_HOME}/bin/jmeter.sh</executable>
767
                                                                        <arguments>
768
                                                                                <argument>-n</argument>
769
                                                                                <argument>-t</argument>
770
                                                                                <argument>${basedir}/test/jmeter/Maybank-facade-test-plan.jmx</argument>
771
                                                                                <argument>-l</argument>
772
                                                                                <argument>${project.build.directory}/jmeter/resultMaybank.jtl</argument>
773
                                                                                <argument>-J</argument>
774
                                                                                <argument>jmeter.save.saveservice.output_format=xml</argument>
775
                                                                                <argument>-J</argument>
776
                                                                                <argument>jmeter.save.saveservice.thread_counts=true</argument>
777
                                                                                <argument>-j</argument>
778
                                                                                <argument>${project.build.directory}/jmeter/jmeterMaybank.log</argument>
779
                                                                        </arguments>
780
                                                                </configuration>
781
                                                        </execution>
782
                                                </executions>
783
                                        </plugin>
784
                                </plugins>
785
                        </build>
786
                        <dependencies>
787
                                <dependency>
788
                                        <groupId>axis</groupId>
789
                                        <artifactId>axis</artifactId>
790
                                        <version>1.4</version>
791
                                        <type>jar</type>
792
                                        <scope>compile</scope>
793
                                </dependency>
794
                        </dependencies>
795
                </profile>
796
                <profile>
797
                        <id>wstools</id>
798
                        <build>
799
                                <plugins>
800
                                        <plugin>
801
                                                <groupId>org.apache.maven.plugins</groupId>
802
                                                <artifactId>maven-antrun-plugin</artifactId>
803
                                                <executions>
804
                                                        <execution>
805
                                                                <phase>generate-resources</phase>
806
                                                                <configuration>
807
                                                                        <target>
808
                                                                                <mkdir dir="${project.build.directory}/wsdl" />
809
                                                                                <property name="compile_classpath" refid="maven.compile.classpath" />
810
                                                                                <taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen" />
811
                                                                                <wsgen sei="my.com.upass.maybank.MaybankFacadeImpl" classpath="${compile_classpath}" genWsdl="true"
812
                                                                                        encoding="UTF-8" keep="false" verbose="true" inlineSchemas="false" resourcedestdir="${project.build.directory}/wsdl"
813
                                                                                        xendorsed="true" />
814
                                                                                <replace file="${project.build.directory}/wsdl/MaybankFacade.wsdl" token="REPLACE_WITH_ACTUAL_URL"
815
                                                                                        value="http://dummy.endpoint.url" />
816
                                                                        </target>
817
                                                                </configuration>
818
                                                                <goals>
819
                                                                        <goal>run</goal>
820
                                                                </goals>
821
                                                        </execution>
822
                                                </executions>
823
                                                <dependencies>
824
                                                        <dependency>
825
                                                                <groupId>com.sun.xml.ws</groupId>
826
                                                                <artifactId>jaxws-tools</artifactId>
827
                                                                <version>2.2.6</version>
828
                                                        </dependency>
829
                                                </dependencies>
830
                                        </plugin>
831
                                </plugins>
832
                        </build>
833
                </profile>
834
        </profiles>
835
        <dependencies>
836
                <dependency>
837
                        <groupId>junit</groupId>
838
                        <artifactId>junit</artifactId>
839
                        <version>3.8.1</version>
840
                        <scope>test</scope>
841
                </dependency>
842
                <dependency>
843
                        <groupId>net.penril</groupId>
844
                        <artifactId>m2u-upass-core</artifactId>
845
                        <version>2.0-SNAPSHOT</version>
846
                        <classifier>${m2u-upass-classifier}</classifier>
847
                        <exclusions>
848
                                <exclusion>
849
                                        <groupId>net.penril</groupId>
850
                                        <artifactId>m2u-upass-min</artifactId>
851
                                </exclusion>
852
                        </exclusions>
853
                </dependency>
854
                <dependency>
855
                        <groupId>net.penril</groupId>
856
                        <artifactId>m2u-upass-min</artifactId>
857
                        <version>2.0-SNAPSHOT</version>
858
                        <classifier>${m2u-upass-classifier}</classifier>
859
                        <exclusions>
860
                                <exclusion>
861
                                        <artifactId>xml-apis</artifactId>
862
                                        <groupId>xml-apis</groupId>
863
                                </exclusion>
864
                        </exclusions>
865
                </dependency>
866
                <dependency>
867
                        <groupId>commons-discovery</groupId>
868
                        <artifactId>commons-discovery</artifactId>
869
                        <version>0.2</version>
870
                        <type>jar</type>
871
                        <scope>compile</scope>
872
                </dependency>
873
                <dependency>
874
                        <groupId>commons-logging</groupId>
875
                        <artifactId>commons-logging</artifactId>
876
                        <version>1.1.1</version>
877
                        <type>jar</type>
878
                        <scope>compile</scope>
879
                </dependency>
880
                <dependency>
881
                        <groupId>wsdl4j</groupId>
882
                        <artifactId>wsdl4j</artifactId>
883
                        <version>1.6.2</version>
884
                        <type>jar</type>
885
                        <scope>compile</scope>
886
                </dependency>
887
                <dependency>
888
                        <groupId>commons-io</groupId>
889
                        <artifactId>commons-io</artifactId>
890
                        <version>1.4</version>
891
                </dependency>
892
                <dependency>
893
                        <groupId>net.sourceforge.cobertura</groupId>
894
                        <artifactId>cobertura-runtime</artifactId>
895
                        <version>${cobertura.version}</version>
896
                        <!-- <scope>provided</scope> -->
897
                        <scope>test</scope>
898
                        <type>pom</type>
899
                </dependency>
900
                <dependency>
901
                        <groupId>com.sun.jersey</groupId>
902
                        <artifactId>jersey-core</artifactId>
903
                        <version>1.8</version>
904
                        <scope>provided</scope>
905
                </dependency>
906
                <dependency>
907
                        <groupId>com.sun.jersey</groupId>
908
                        <artifactId>jersey-json</artifactId>
909
                        <version>1.8</version>
910
                        <scope>provided</scope>
911
                </dependency>
912
                <dependency>
913
                        <groupId>javax.servlet</groupId>
914
                        <artifactId>servlet-api</artifactId>
915
                        <version>2.4</version>
916
                        <scope>provided</scope>
917
                </dependency>
918
                <dependency>
919
                        <groupId>javax.annotation</groupId>
920
                        <artifactId>jsr250-api</artifactId>
921
                        <version>1.0</version>
922
                        <scope>provided</scope>
923
                </dependency>
924
        </dependencies>
925
</project>