Statistics
| Branch: | Revision:

m2u-upass-ws / pom.xml @ 107:63dd8c2cdfa8

History | View | Annotate | Download (23.3 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

    
140

    
141

    
142
        <profiles>
143
                <profile>
144
                        <id>env-staging-ci</id>
145
                        <activation>
146
                                <property>
147
                                        <name>env</name>
148
                                        <value>staging-ci</value>
149
                                </property>
150
                        </activation>
151
                        <properties>
152
                                <config.postfix>.staging-ci</config.postfix>
153
                        </properties>
154
                        <build>
155
                                <plugins>
156
<!-- 
157
                                        <plugin>
158
                                                <groupId>org.mortbay.jetty</groupId>
159
                                                <artifactId>maven-jetty-plugin</artifactId>
160
                                                <configuration>
161
                                                        <webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory>
162
                                                        <classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
163
                                                </configuration>
164
                                                <executions>
165
                                                        <execution>
166
                                                                <id>start-jetty</id>
167
                                                                <phase>pre-integration-test</phase>
168
                                                                <goals>
169
                                                                        <goal>run</goal>
170
                                                                </goals>
171
                                                                <configuration>
172
                                                                        <scanIntervalSeconds>0</scanIntervalSeconds>
173
                                                                        <daemon>true</daemon>
174
                                                                </configuration>
175
                                                        </execution>
176
                                                        <execution>
177
                                                                <id>stop-jetty</id>
178
                                                                <phase>post-integration-test</phase>
179
                                                                <goals>
180
                                                                        <goal>stop</goal>
181
                                                                </goals>
182
                                                        </execution>
183
                                                </executions>
184
                                                <dependencies>
185
                                                        <dependency>
186
                                                                <groupId>net.sourceforge.cobertura</groupId>
187
                                                                <artifactId>cobertura-runtime</artifactId>
188
                                                                <version>${cobertura.version}</version>
189
                                                                <scope>compile</scope>
190
                                                                <type>pom</type>
191
                                                        </dependency>
192
                                                </dependencies>
193
                                        </plugin>
194
 -->
195
                                        <plugin>
196
                                                <groupId>org.glassfish</groupId>
197
                                                <artifactId>maven-embedded-glassfish-plugin</artifactId>
198
                                                <configuration>
199
                                                        <app>${project.build.directory}/${project.artifactId}-${project.version}-${m2u-upass-classifier}.war</app>
200
                                                        <!-- <app>${project.build.directory}/${project.artifactId}-${project.version}</app> -->
201
                                                </configuration>
202
                                                <executions>
203
                                                        <execution>
204
                                                                <id>start-glassfish</id>
205
                                                                <phase>pre-integration-test</phase>
206
                                                                <goals>
207
                                                                        <goal>start</goal>
208
                                                                </goals>
209
                                                        </execution>
210
                                                        <execution>
211
                                                                <id>glassfish-deploy</id>
212
                                                                <phase>pre-integration-test</phase>
213
                                                                <goals>
214
                                                                        <goal>deploy</goal>
215
                                                                </goals>
216
                                                        </execution>
217
                                                        <!--
218
                                                         <execution>
219
                                                                <id>glassfish-undeploy</id>
220
                                                                <phase>post-integration-test</phase>
221
                                                                <goals>
222
                                                                        <goal>undeploy</goal>
223
                                                                </goals>
224
                                                        </execution>
225
                                                        <execution>
226
                                                                <id>stop-glassfish</id>
227
                                                                <phase>post-integration-test</phase>
228
                                                                <goals>
229
                                                                        <goal>stop</goal>
230
                                                                </goals>
231
                                                        </execution>
232
                                                         -->
233
                                                </executions>
234
                                                <dependencies>
235
                                                        <dependency>
236
                                                                <groupId>net.sourceforge.cobertura</groupId>
237
                                                                <artifactId>cobertura-runtime</artifactId>
238
                                                                <version>${cobertura.version}</version>
239
                                                                <!-- <scope>provided</scope> -->
240
                                                                <scope>compile</scope>
241
                                                                <type>pom</type>
242
                                                        </dependency>
243
                                                </dependencies>
244
                                        </plugin>
245
                                        <plugin>
246
                                                <artifactId>maven-surefire-plugin</artifactId>
247
                                                <configuration>
248
                                                        <classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
249
                                                        <forkMode>none</forkMode>
250
                                                </configuration>
251
                                        </plugin>
252
                                        <plugin>
253
                                                <groupId>eviware</groupId>
254
                                                <artifactId>maven-soapui-plugin</artifactId>
255
                                                <version>4.5.1</version>
256
                                                <executions>
257
                                                        <execution>
258
                                                                <id>UPassWsTests</id>
259
                                                                <goals>
260
                                                                        <goal>test</goal>
261
                                                                </goals>
262
                                                                <phase>integration-test</phase>
263
                                                                <configuration>
264
                                                                        <projectFile>${basedir}/test/soap-ui/UPass-soapui-project.xml</projectFile>
265
<!--                                                                         
266
                                                                        <projectProperties>
267
                                                                                <projectProperty>invokerUsername=UpassAdmin</projectProperty>
268
                                                                                <projectProperty>invokerPassword=password</projectProperty>
269
                                                                        </projectProperties>
270
 -->
271
                                                                </configuration>
272
                                                        </execution>
273
                                                        <execution>
274
                                                                <id>MaybankFacadeTests</id>
275
                                                                <goals>
276
                                                                        <goal>test</goal>
277
                                                                </goals>
278
                                                                <phase>integration-test</phase>
279
                                                                <configuration>
280
                                                                        <projectFile>${basedir}/test/soap-ui/MaybankFacade-soapui-project.xml</projectFile>
281
                                                                </configuration>
282
                                                        </execution>
283
                                                </executions>
284
                                                <configuration>
285
                                                        <host>localhost</host>
286
                                                        <!-- <port>8080</port> -->
287
                                                        <port>9090</port>
288
                                                        <outputFolder>${project.build.directory}/surefire-reports</outputFolder>
289
                                                        <junitReport>true</junitReport>
290
                                                        <printReport>false</printReport>
291
                                                </configuration>
292
                                        </plugin>
293
                                </plugins>
294
                        </build>
295
                        <dependencies>
296
                                <dependency>
297
                                        <groupId>axis</groupId>
298
                                        <artifactId>axis</artifactId>
299
                                        <version>1.4</version>
300
                                        <type>jar</type>
301
                                        <scope>compile</scope>
302
                                </dependency>
303
                        </dependencies>
304
                </profile>
305
                <profile>
306
                        <id>env-ant</id>
307
                        <activation>
308
                                <property>
309
                                        <name>env</name>
310
                                </property>
311
                        </activation>
312
                        <build>
313
                                <plugins>
314
                                        <plugin>
315
                                                <artifactId>maven-antrun-plugin</artifactId>
316
                                                <executions>
317
                                                        <execution>
318
                                                                <id>env-config</id>
319
                                                                <phase>process-resources</phase>
320
                                                                <configuration>
321
                                                                        <target>
322
                                                                                <delete file="${project.build.outputDirectory}/log4j.xml" />
323
                                                                                <copy file="resources/log4j${config.postfix}.xml" tofile="${project.build.outputDirectory}/log4j.xml" />
324

    
325
                                                                                <delete>
326
                                                                                        <fileset dir="${project.build.outputDirectory}" includes="log4j.*.xml" />
327
                                                                                </delete>
328
                                                                        </target>
329
                                                                </configuration>
330
                                                                <goals>
331
                                                                        <goal>run</goal>
332
                                                                </goals>
333
                                                        </execution>
334
                                                </executions>
335
                                        </plugin>
336
                                </plugins>
337
                        </build>
338
                </profile>
339
                <profile>
340
                        <id>env-dev-penril</id>
341
                        <activation>
342
                                <property>
343
                                        <name>env</name>
344
                                        <value>dev-penril</value>
345
                                </property>
346
                        </activation>
347
                        <properties>
348
                                <config.postfix>.dev-penril</config.postfix>
349
                        </properties>
350
                        <dependencies>
351
                                <dependency>
352
                                        <groupId>axis</groupId>
353
                                        <artifactId>axis</artifactId>
354
                                        <version>1.4</version>
355
                                        <type>jar</type>
356
                                        <scope>compile</scope>
357
                                </dependency>
358
                        </dependencies>
359
                </profile>
360
                <profile>
361
                        <id>env-maybank-dev</id>
362
                        <activation>
363
                                <property>
364
                                        <name>env</name>
365
                                        <value>maybank-dev</value>
366
                                </property>
367
                        </activation>
368
                        <properties>
369
                                <config.postfix>.maybank-dev</config.postfix>
370
                        </properties>
371
                        <dependencies>
372
                                <dependency>
373
                                        <groupId>axis</groupId>
374
                                        <artifactId>axis</artifactId>
375
                                        <version>1.4</version>
376
                                        <type>jar</type>
377
                                        <scope>compile</scope>
378
                                        <exclusions>
379
                                                <exclusion>
380
                                                        <artifactId>axis-jaxrpc</artifactId>
381
                                                        <groupId>org.apache.axis</groupId>
382
                                                </exclusion>
383
                                                <exclusion>
384
                                                        <artifactId>axis-saaj</artifactId>
385
                                                        <groupId>org.apache.axis</groupId>
386
                                                </exclusion>
387
                                        </exclusions>
388
                                </dependency>
389
                        </dependencies>
390
                        <build>
391
                                <plugins>
392
                                        <plugin>
393
                                                <groupId>org.glassfish</groupId>
394
                                                <artifactId>maven-embedded-glassfish-plugin</artifactId>
395
                                                <configuration>
396
                                                        <app>${project.build.directory}/${project.artifactId}-${project.version}.war</app>
397
                                                </configuration>
398
                                        </plugin>
399
                                </plugins>
400
                        </build>
401
                </profile>
402

    
403

    
404

    
405
                <profile>
406
                        <id>cobertura-instrument</id>
407
                        <activation>
408
                                <property>
409
                                        <name>cobertura-build</name>
410
                                </property>
411
                        </activation>
412
                        <properties>
413
                                <m2u-upass-classifier>instrumented</m2u-upass-classifier>
414
                        </properties>
415
                        <distributionManagement>
416
                                <snapshotRepository>
417
                                        <id>penril.nexus.repo.coverage</id>
418
                                        <name>Penril Nexus Repo Coverage</name>
419
                                        <url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots-coverage</url>
420
                                </snapshotRepository>
421
                        </distributionManagement>
422
                        <build>
423
                                <plugins>
424
                                        <plugin>
425
                                                <artifactId>maven-war-plugin</artifactId>
426
                                                <configuration>
427
                                                        <classifier>${m2u-upass-classifier}</classifier>
428
                                                        <packagingExcludes>WEB-INF/lib/m2u-upass-*SNAPSHOT.jar</packagingExcludes>
429
                                                </configuration>
430
                                        </plugin>
431
                                        <plugin>
432
                                                <groupId>org.codehaus.mojo</groupId>
433
                                                <artifactId>cobertura-maven-plugin</artifactId>
434
                                                <configuration>
435
                                                        <formats>
436
                                                                <format>html</format>
437
                                                                <format>xml</format>
438
                                                        </formats>
439

    
440
                                                        <!-- TODO: To be configured... -->
441
                                                        <instrumentation>
442
                                                                <ignores>
443
                                                                        <ignore>com.example.boringcode.*</ignore>
444
                                                                </ignores>
445
                                                                <excludes>
446
                                                                        <exclude>com/example/dullcode/**/*.class</exclude>
447
                                                                        <exclude>com/example/**/*Test.class</exclude>
448
                                                                </excludes>
449
                                                        </instrumentation>
450

    
451
                                                        <!-- TODO: To be configured... -->
452
                                                        <check>
453
                                                                <branchRate>85</branchRate>
454
                                                                <lineRate>85</lineRate>
455
                                                                <haltOnFailure>true</haltOnFailure>
456
                                                                <totalBranchRate>85</totalBranchRate>
457
                                                                <totalLineRate>85</totalLineRate>
458
                                                                <packageLineRate>85</packageLineRate>
459
                                                                <packageBranchRate>85</packageBranchRate>
460
                                                                <regexes>
461
                                                                        <regex>
462
                                                                                <pattern>com.example.reallyimportant.*</pattern>
463
                                                                                <branchRate>90</branchRate>
464
                                                                                <lineRate>80</lineRate>
465
                                                                        </regex>
466
                                                                        <regex>
467
                                                                                <pattern>com.example.boringcode.*</pattern>
468
                                                                                <branchRate>40</branchRate>
469
                                                                                <lineRate>30</lineRate>
470
                                                                        </regex>
471
                                                                </regexes>
472
                                                        </check>
473
                                                </configuration>
474
                                                <executions>
475
                                                        <execution>
476
                                                                <id>instrument-code</id>
477
                                                                <phase>process-classes</phase>
478
                                                                <goals>
479
                                                                        <goal>instrument</goal>
480
                                                                </goals>
481
                                                                <configuration>
482
                                                                        <attach>true</attach>
483
                                                                </configuration>
484
                                                        </execution>
485
                                                </executions>
486
                                        </plugin>
487
                                        <plugin>
488
                                                <artifactId>maven-source-plugin</artifactId>
489
                                                <executions>
490
                                                        <execution>
491
                                                                <id>attach-sources</id>
492
                                                                <goals>
493
                                                                        <goal>jar</goal>
494
                                                                </goals>
495
                                                        </execution>
496
                                                </executions>
497
                                                <inherited>true</inherited>
498
                                        </plugin>
499
                                </plugins>
500
                        </build>
501
                        <dependencies>
502
                                <dependency>
503
                                        <groupId>net.sourceforge.cobertura</groupId>
504
                                        <artifactId>cobertura-runtime</artifactId>
505
                                        <version>${cobertura.version}</version>
506
                                        <!-- <scope>provided</scope> -->
507
                                        <scope>compile</scope>
508
                                        <type>pom</type>
509
                                </dependency>
510
                        </dependencies>
511
                </profile>
512
                <profile>
513
                        <id>custom-war-deploy</id>
514
                        <activation>
515
                                <property>
516
                                        <name>custom-war-deploy</name>
517
                                </property>
518
                        </activation>
519
                        <build>
520
                                <plugins>
521
                                        <plugin>
522
                                                <artifactId>maven-antrun-plugin</artifactId>
523
                                                <executions>
524
                                                        <execution>
525
                                                                <id>tomcat-deployment</id>
526
                                                                <phase>install</phase>
527
                                                                <configuration>
528
                                                                        <target>
529
                                                                                <!-- <echo>Shutting down the Tomcat</echo> <exec dir="${tomcat.home}/bin" 
530
                                                                                        executable="${tomcat.home}/bin/shutdown.sh" /> -->
531
                                                                                <copy file="${basedir}/target/${project.artifactId}-${project.version}.war" tofile="${tomcat.home}/webapps/${project.artifactId}.war"
532
                                                                                        overwrite="true" />
533
                                                                                <!-- <echo>Starting up the Tomcat</echo> <exec dir="${tomcat.home}/bin" 
534
                                                                                        executable="${tomcat.home}/bin/startup.sh" /> -->
535
                                                                        </target>
536
                                                                </configuration>
537
                                                                <goals>
538
                                                                        <goal>run</goal>
539
                                                                </goals>
540
                                                        </execution>
541
                                                </executions>
542
                                        </plugin>
543
                                </plugins>
544
                        </build>
545
                </profile>
546
                <profile>
547
                        <id>load-test</id>
548
                        <build>
549
                                <plugins>
550
                                        <plugin>
551
                                                <groupId>org.mortbay.jetty</groupId>
552
                                                <artifactId>maven-jetty-plugin</artifactId>
553
                                                <configuration>
554
                                                        <webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory>
555
                                                        <classesDirectory>${project.build.directory}/classes</classesDirectory>
556
                                                        <daemon>true</daemon>
557
                                                </configuration>
558
                                        </plugin>
559
                                        <plugin>
560
                                                <groupId>org.glassfish</groupId>
561
                                                <artifactId>maven-embedded-glassfish-plugin</artifactId>
562
                                                <configuration>
563
                                                        <app>${project.build.directory}/${project.artifactId}-${project.version}-${m2u-upass-classifier}.war</app>
564
                                                </configuration>
565
                                                <executions>
566
                                                        <execution>
567
                                                                <id>start-glassfish</id>
568
                                                                <phase>pre-integration-test</phase>
569
                                                                <goals>
570
                                                                        <goal>start</goal>
571
                                                                </goals>
572
                                                        </execution>
573
                                                        <execution>
574
                                                                <id>glassfish-deploy</id>
575
                                                                <phase>pre-integration-test</phase>
576
                                                                <goals>
577
                                                                        <goal>deploy</goal>
578
                                                                </goals>
579
                                                        </execution>
580
                                                        <execution>
581
                                                                <id>glassfish-undeploy</id>
582
                                                                <phase>post-integration-test</phase>
583
                                                                <goals>
584
                                                                        <goal>undeploy</goal>
585
                                                                </goals>
586
                                                        </execution>
587
                                                        <execution>
588
                                                                <id>stop-glassfish</id>
589
                                                                <phase>post-integration-test</phase>
590
                                                                <goals>
591
                                                                        <goal>stop</goal>
592
                                                                </goals>
593
                                                        </execution>
594
                                                </executions>
595
                                                <dependencies>
596
                                                        <dependency>
597
                                                                <groupId>net.sourceforge.cobertura</groupId>
598
                                                                <artifactId>cobertura-runtime</artifactId>
599
                                                                <version>${cobertura.version}</version>
600
                                                                <!-- <scope>provided</scope> -->
601
                                                                <scope>compile</scope>
602
                                                                <type>pom</type>
603
                                                        </dependency>
604
                                                </dependencies>
605
                                        </plugin>
606
                                        <plugin>
607
                                                <artifactId>maven-antrun-plugin</artifactId>
608
                                                <executions>
609
                                                        <execution>
610
                                                                <phase>process-resources</phase>
611
                                                                <configuration>
612
                                                                        <target>
613
                                                                                <echo message="Creating a directory required by our JMeter test plan." />
614
                                                                                <mkdir dir="${basedir}/target/jmeter/responses/add" />
615
                                                                                <mkdir dir="${basedir}/target/jmeter/responses/auth" />
616
                                                                        </target>
617
                                                                </configuration>
618
                                                                <goals>
619
                                                                        <goal>run</goal>
620
                                                                </goals>
621
                                                        </execution>
622
                                                </executions>
623
                                        </plugin>
624
                                        <plugin>
625
                                                <groupId>org.codehaus.mojo</groupId>
626
                                                <artifactId>exec-maven-plugin</artifactId>
627
                                                <executions>
628
                                                        <execution>
629
                                                                <id>upass-load-test</id>
630
                                                                <phase>integration-test</phase>
631
                                                                <goals>
632
                                                                        <goal>exec</goal>
633
                                                                </goals>
634
                                                                <configuration>
635
                                                                        <executable>${JMETER_HOME}/bin/jmeter.sh</executable>
636
                                                                        <arguments>
637
                                                                                <argument>-n</argument>
638
                                                                                <argument>-t</argument>
639
                                                                                <argument>${basedir}/test/jmeter/UPass-test-plan.jmx</argument>
640
                                                                                <argument>-l</argument>
641
                                                                                <argument>${project.build.directory}/jmeter/result.jtl</argument>
642
                                                                                <argument>-J</argument>
643
                                                                                <argument>jmeter.save.saveservice.output_format=xml</argument>
644
                                                                                <argument>-J</argument>
645
                                                                                <argument>jmeter.save.saveservice.thread_counts=true</argument>
646
                                                                                <argument>-j</argument>
647
                                                                                <argument>${project.build.directory}/jmeter/jmeter.log</argument>
648
                                                                        </arguments>
649
                                                                </configuration>
650
                                                        </execution>
651
                                                        <execution>
652
                                                                <id>maybank-load-test</id>
653
                                                                <phase>integration-test</phase>
654
                                                                <goals>
655
                                                                        <goal>exec</goal>
656
                                                                </goals>
657
                                                                <configuration>
658
                                                                        <executable>${JMETER_HOME}/bin/jmeter.sh</executable>
659
                                                                        <arguments>
660
                                                                                <argument>-n</argument>
661
                                                                                <argument>-t</argument>
662
                                                                                <argument>${basedir}/test/jmeter/Maybank-facade-test-plan.jmx</argument>
663
                                                                                <argument>-l</argument>
664
                                                                                <argument>${project.build.directory}/jmeter/resultMaybank.jtl</argument>
665
                                                                                <argument>-J</argument>
666
                                                                                <argument>jmeter.save.saveservice.output_format=xml</argument>
667
                                                                                <argument>-J</argument>
668
                                                                                <argument>jmeter.save.saveservice.thread_counts=true</argument>
669
                                                                                <argument>-j</argument>
670
                                                                                <argument>${project.build.directory}/jmeter/jmeterMaybank.log</argument>
671
                                                                        </arguments>
672
                                                                </configuration>
673
                                                        </execution>
674
                                                </executions>
675
                                        </plugin>
676
                                </plugins>
677
                        </build>
678
                        <dependencies>
679
                                <dependency>
680
                                        <groupId>axis</groupId>
681
                                        <artifactId>axis</artifactId>
682
                                        <version>1.4</version>
683
                                        <type>jar</type>
684
                                        <scope>compile</scope>
685
                                </dependency>
686
                        </dependencies>
687
                </profile>
688
                <profile>
689
                        <id>wstools</id>
690
                        <build>
691
                                <plugins>
692
                                        <plugin>
693
                                                <groupId>org.apache.maven.plugins</groupId>
694
                                                <artifactId>maven-antrun-plugin</artifactId>
695
                                                <executions>
696
                                                        <execution>
697
                                                                <phase>generate-resources</phase>
698
                                                                <configuration>
699
                                                                        <target>
700
                                                                                <mkdir dir="${project.build.directory}/wsdl" />
701
                                                                                <property name="compile_classpath" refid="maven.compile.classpath" />
702
                                                                                <taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen" />
703
                                                                                <wsgen sei="my.com.upass.maybank.MaybankFacadeImpl" classpath="${compile_classpath}" genWsdl="true"
704
                                                                                        encoding="UTF-8" keep="false" verbose="true" inlineSchemas="false" resourcedestdir="${project.build.directory}/wsdl"
705
                                                                                        xendorsed="true" />
706
                                                                                <replace file="${project.build.directory}/wsdl/MaybankFacade.wsdl" token="REPLACE_WITH_ACTUAL_URL"
707
                                                                                        value="http://dummy.endpoint.url" />
708
                                                                        </target>
709
                                                                </configuration>
710
                                                                <goals>
711
                                                                        <goal>run</goal>
712
                                                                </goals>
713
                                                        </execution>
714
                                                </executions>
715
                                                <dependencies>
716
                                                        <dependency>
717
                                                                <groupId>com.sun.xml.ws</groupId>
718
                                                                <artifactId>jaxws-tools</artifactId>
719
                                                                <version>2.2.6</version>
720
                                                        </dependency>
721
                                                </dependencies>
722
                                        </plugin>
723
                                </plugins>
724
                        </build>
725
                </profile>
726
        </profiles>
727

    
728

    
729

    
730
        <dependencies>
731
                <dependency>
732
                        <groupId>junit</groupId>
733
                        <artifactId>junit</artifactId>
734
                        <version>3.8.1</version>
735
                        <scope>test</scope>
736
                </dependency>
737
                <dependency>
738
                        <groupId>net.penril</groupId>
739
                        <artifactId>m2u-upass-core</artifactId>
740
                        <version>2.0-SNAPSHOT</version>
741
                        <classifier>${m2u-upass-classifier}</classifier>
742
                        <exclusions>
743
                                <exclusion>
744
                                        <groupId>net.penril</groupId>
745
                                        <artifactId>m2u-upass-min</artifactId>
746
                                </exclusion>
747
                        </exclusions>
748
                </dependency>
749
                <dependency>
750
                        <groupId>net.penril</groupId>
751
                        <artifactId>m2u-upass-min</artifactId>
752
                        <version>2.0-SNAPSHOT</version>
753
                        <classifier>${m2u-upass-classifier}</classifier>
754
                        <exclusions>
755
                                <exclusion>
756
                                        <artifactId>xml-apis</artifactId>
757
                                        <groupId>xml-apis</groupId>
758
                                </exclusion>
759
                        </exclusions>
760
                </dependency>
761
                <dependency>
762
                        <groupId>commons-discovery</groupId>
763
                        <artifactId>commons-discovery</artifactId>
764
                        <version>0.2</version>
765
                        <type>jar</type>
766
                        <scope>compile</scope>
767
                </dependency>
768
                <dependency>
769
                        <groupId>commons-logging</groupId>
770
                        <artifactId>commons-logging</artifactId>
771
                        <version>1.1.1</version>
772
                        <type>jar</type>
773
                        <scope>compile</scope>
774
                </dependency>
775
                <dependency>
776
                        <groupId>wsdl4j</groupId>
777
                        <artifactId>wsdl4j</artifactId>
778
                        <version>1.6.2</version>
779
                        <type>jar</type>
780
                        <scope>compile</scope>
781
                </dependency>
782
                <dependency>
783
                        <groupId>commons-io</groupId>
784
                        <artifactId>commons-io</artifactId>
785
                        <version>1.4</version>
786
                </dependency>
787
                <dependency>
788
                        <groupId>net.sourceforge.cobertura</groupId>
789
                        <artifactId>cobertura-runtime</artifactId>
790
                        <version>${cobertura.version}</version>
791
                        <!-- <scope>provided</scope> -->
792
                        <scope>test</scope>
793
                        <type>pom</type>
794
                </dependency>
795
                <dependency>
796
                        <groupId>com.sun.jersey</groupId>
797
                        <artifactId>jersey-core</artifactId>
798
                        <version>1.8</version>
799
                        <scope>provided</scope>
800
                </dependency>
801
                <dependency>
802
                        <groupId>com.sun.jersey</groupId>
803
                        <artifactId>jersey-json</artifactId>
804
                        <version>1.8</version>
805
                        <scope>provided</scope>
806
                </dependency>
807
                <dependency>
808
                        <groupId>javax.servlet</groupId>
809
                        <artifactId>servlet-api</artifactId>
810
                        <version>2.4</version>
811
                        <scope>provided</scope>
812
                </dependency>
813
                <dependency>
814
                        <groupId>javax.annotation</groupId>
815
                        <artifactId>jsr250-api</artifactId>
816
                        <version>1.0</version>
817
                        <scope>provided</scope>
818
                </dependency>
819
        </dependencies>
820
</project>