Statistics
| Branch: | Revision:

m2u-upass-ws / pom.xml @ 83:7924ebcf5539

History | View | Annotate | Download (22.2 KB)

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

    
4
        <modelVersion>4.0.0</modelVersion>
5

    
6
        <groupId>net.penril</groupId>
7
        <artifactId>m2u-upass-ws</artifactId>
8
        <version>2.0-SNAPSHOT</version>
9
        <packaging>war</packaging>
10
        <name>M2U UPass Web Services</name>
11
        <properties>
12
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13
                <cobertura.version>1.9.4.1</cobertura.version>
14
                <config.postfix />
15
                <tomcat.home>/var/lib/jenkins/apache-tomcat-5.5.33</tomcat.home>
16
                <m2u-upass-classifier></m2u-upass-classifier>
17
        </properties>
18
        <pluginRepositories>
19
                <pluginRepository>
20
                        <id>eviwarePluginRepository</id>
21
                        <url>http://www.eviware.com/repository/maven2/</url>
22
                </pluginRepository>
23
        </pluginRepositories>
24
        <distributionManagement>
25
                <snapshotRepository>
26
                        <id>penril.nexus.repo</id>
27
                        <name>Penril Nexus Repo</name>
28
                        <url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots</url>
29
                        <uniqueVersion>false</uniqueVersion>
30
                </snapshotRepository>
31
        </distributionManagement>
32
        <build>
33
                <pluginManagement>
34
                        <plugins>
35
                                <plugin>
36
                                        <groupId>org.codehaus.mojo</groupId>
37
                                        <artifactId>cobertura-maven-plugin</artifactId>
38
                                        <version>2.5.1</version>
39
                                </plugin>
40
                                <plugin>
41
                                        <groupId>org.apache.maven.plugins</groupId>
42
                                        <artifactId>maven-antrun-plugin</artifactId>
43
                                        <version>1.6</version>
44
                                </plugin>
45
                                <plugin>
46
                                        <groupId>org.mortbay.jetty</groupId>
47
                                        <artifactId>maven-jetty-plugin</artifactId>
48
                                        <version>6.1.16</version>
49
                                        <configuration>
50
                                                <connectors>
51
                                                        <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
52
                                                                <port>9090</port>
53
                                                                <maxIdleTime>60000</maxIdleTime>
54
                                                        </connector>
55
                                                </connectors>
56
                                                <stopPort>9005</stopPort>
57
                                                <stopKey>STOP</stopKey>
58
                                                <contextPath>${project.artifactId}</contextPath>
59
                                                <jettyConfig>target/classes/jetty.xml</jettyConfig>
60
                                        </configuration>
61
                                </plugin>
62
                                <plugin>
63
                                        <groupId>org.glassfish</groupId>
64
                                        <artifactId>maven-embedded-glassfish-plugin</artifactId>
65
                                        <version>3.1.1</version>
66
                                        <configuration>
67
                                                <goalPrefix>embedded-glassfish</goalPrefix>
68
                                                <autoDelete>true</autoDelete>
69
                                                <port>9090</port>
70
                                                <contextRoot>${project.artifactId}</contextRoot>
71
                                        </configuration>
72
                                </plugin>
73
                        </plugins>
74
                </pluginManagement>
75
                <sourceDirectory>src</sourceDirectory>
76
                <resources>
77
                        <resource>
78
                                <directory>src</directory>
79
                                <excludes>
80
                                        <exclude>**/*.java</exclude>
81
                                </excludes>
82
                        </resource>
83
                        <resource>
84
                                <directory>resources</directory>
85
                        </resource>
86
                </resources>
87
                <testSourceDirectory>test/java</testSourceDirectory>
88
                <testResources>
89
                        <testResource>
90
                                <directory>test/resources</directory>
91
                        </testResource>
92
                </testResources>
93
                <plugins>
94
                        <plugin>
95
                                <groupId>org.apache.maven.plugins</groupId>
96
                                <artifactId>maven-war-plugin</artifactId>
97
                                <version>2.1.1</version>
98
                                <configuration>
99
                                        <warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
100
                                </configuration>
101
                        </plugin>
102
                        <plugin>
103
                                <groupId>org.apache.maven.plugins</groupId>
104
                                <artifactId>maven-compiler-plugin</artifactId>
105
                                <version>2.3.2</version>
106
                                <configuration>
107
                                        <source>1.6</source>
108
                                        <target>1.6</target>
109
                                </configuration>
110
                        </plugin>
111
                        <plugin>
112
                                <artifactId>maven-antrun-plugin</artifactId>
113
                                <executions>
114
                                        <execution>
115
                                                <id>env-config</id>
116
                                                <phase>process-resources</phase>
117
                                                <configuration>
118
                                                        <target>
119
                                                                <delete file="${project.build.outputDirectory}/log4j.xml" />
120
                                                                <copy file="resources/log4j${config.postfix}.xml" tofile="${project.build.outputDirectory}/log4j.xml" />
121

    
122
                                                                <delete>
123
                                                                        <fileset dir="${project.build.outputDirectory}" includes="log4j.*.xml" />
124
                                                                </delete>
125
                                                        </target>
126
                                                </configuration>
127
                                                <goals>
128
                                                        <goal>run</goal>
129
                                                </goals>
130
                                        </execution>
131
                                </executions>
132
                        </plugin>
133
                        <plugin>
134
                                <artifactId>maven-failsafe-plugin</artifactId>
135
                                <version>2.6</version>
136
                                <executions>
137
                                        <execution>
138
                                                <goals>
139
                                                        <goal>integration-test</goal>
140
                                                        <goal>verify</goal>
141
                                                </goals>
142
                                        </execution>
143
                                </executions>
144
                                <dependencies>
145
                                        <dependency>
146
                                                <groupId>net.sourceforge.cobertura</groupId>
147
                                                <artifactId>cobertura-runtime</artifactId>
148
                                                <version>${cobertura.version}</version>
149
                                                <!-- <scope>provided</scope> -->
150
                                                <scope>compile</scope>
151
                                                <type>pom</type>
152
                                        </dependency>
153
                                </dependencies>
154
                        </plugin>
155
                </plugins>
156
        </build>
157
        <profiles>
158
                <profile>
159
                        <id>env-dev-penril</id>
160
                        <activation>
161
                                <property>
162
                                        <name>env</name>
163
                                        <value>dev-penril</value>
164
                                </property>
165
                        </activation>
166
                        <properties>
167
                                <config.postfix>.dev-penril</config.postfix>
168
                        </properties>
169
                        <dependencies>
170
                                <dependency>
171
                                        <groupId>axis</groupId>
172
                                        <artifactId>axis</artifactId>
173
                                        <version>1.4</version>
174
                                        <type>jar</type>
175
                                        <scope>compile</scope>
176
                                </dependency>
177
                        </dependencies>
178
                </profile>
179
                <profile>
180
                        <id>env-staging-ci</id>
181
                        <activation>
182
                                <property>
183
                                        <name>env</name>
184
                                        <value>staging-ci</value>
185
                                </property>
186
                        </activation>
187
                        <properties>
188
                                <config.postfix>.staging-ci</config.postfix>
189
                        </properties>
190
                        <build>
191
                                <plugins>
192
<!-- 
193
                                        <plugin>
194
                                                <groupId>org.mortbay.jetty</groupId>
195
                                                <artifactId>maven-jetty-plugin</artifactId>
196
                                                <configuration>
197
                                                        <webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory>
198
                                                        <classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
199
                                                </configuration>
200
                                                <executions>
201
                                                        <execution>
202
                                                                <id>start-jetty</id>
203
                                                                <phase>pre-integration-test</phase>
204
                                                                <goals>
205
                                                                        <goal>run</goal>
206
                                                                </goals>
207
                                                                <configuration>
208
                                                                        <scanIntervalSeconds>0</scanIntervalSeconds>
209
                                                                        <daemon>true</daemon>
210
                                                                </configuration>
211
                                                        </execution>
212
                                                        <execution>
213
                                                                <id>stop-jetty</id>
214
                                                                <phase>post-integration-test</phase>
215
                                                                <goals>
216
                                                                        <goal>stop</goal>
217
                                                                </goals>
218
                                                        </execution>
219
                                                </executions>
220
                                                <dependencies>
221
                                                        <dependency>
222
                                                                <groupId>net.sourceforge.cobertura</groupId>
223
                                                                <artifactId>cobertura-runtime</artifactId>
224
                                                                <version>${cobertura.version}</version>
225
                                                                <scope>compile</scope>
226
                                                                <type>pom</type>
227
                                                        </dependency>
228
                                                </dependencies>
229
                                        </plugin>
230
 -->
231
                                        <plugin>
232
                                                <groupId>org.glassfish</groupId>
233
                                                <artifactId>maven-embedded-glassfish-plugin</artifactId>
234
                                                <configuration>
235
                                                        <app>${project.build.directory}/${project.artifactId}-${project.version}-${m2u-upass-classifier}.war</app>
236
                                                        <!-- <app>${project.build.directory}/${project.artifactId}-${project.version}</app> -->
237
                                                </configuration>
238
                                                <executions>
239
                                                        <execution>
240
                                                                <id>start-glassfish</id>
241
                                                                <phase>pre-integration-test</phase>
242
                                                                <goals>
243
                                                                        <goal>start</goal>
244
                                                                </goals>
245
                                                        </execution>
246
                                                        <execution>
247
                                                                <id>glassfish-deploy</id>
248
                                                                <phase>pre-integration-test</phase>
249
                                                                <goals>
250
                                                                        <goal>deploy</goal>
251
                                                                </goals>
252
                                                        </execution>
253
                                                        <!--
254
                                                         <execution>
255
                                                                <id>glassfish-undeploy</id>
256
                                                                <phase>post-integration-test</phase>
257
                                                                <goals>
258
                                                                        <goal>undeploy</goal>
259
                                                                </goals>
260
                                                        </execution>
261
                                                        <execution>
262
                                                                <id>stop-glassfish</id>
263
                                                                <phase>post-integration-test</phase>
264
                                                                <goals>
265
                                                                        <goal>stop</goal>
266
                                                                </goals>
267
                                                        </execution>
268
                                                         -->
269
                                                </executions>
270
                                                <dependencies>
271
                                                        <dependency>
272
                                                                <groupId>net.sourceforge.cobertura</groupId>
273
                                                                <artifactId>cobertura-runtime</artifactId>
274
                                                                <version>${cobertura.version}</version>
275
                                                                <!-- <scope>provided</scope> -->
276
                                                                <scope>compile</scope>
277
                                                                <type>pom</type>
278
                                                        </dependency>
279
                                                </dependencies>
280
                                        </plugin>
281
                                        <plugin>
282
                                                <artifactId>maven-surefire-plugin</artifactId>
283
                                                <configuration>
284
                                                        <classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
285
                                                        <forkMode>none</forkMode>
286
                                                </configuration>
287
                                        </plugin>
288
                                        <plugin>
289
                                                <groupId>eviware</groupId>
290
                                                <artifactId>maven-soapui-plugin</artifactId>
291
                                                <version>4.5.1</version>
292
                                                <executions>
293
                                                        <execution>
294
                                                                <id>UPassWsTests</id>
295
                                                                <goals>
296
                                                                        <goal>test</goal>
297
                                                                </goals>
298
                                                                <phase>integration-test</phase>
299
                                                                <configuration>
300
                                                                        <projectFile>${basedir}/test/soap-ui/UPass-soapui-project.xml</projectFile>
301
<!--                                                                         
302
                                                                        <projectProperties>
303
                                                                                <projectProperty>invokerUsername=UpassAdmin</projectProperty>
304
                                                                                <projectProperty>invokerPassword=password</projectProperty>
305
                                                                        </projectProperties>
306
 -->
307
                                                                </configuration>
308
                                                        </execution>
309
                                                        <execution>
310
                                                                <id>MaybankFacadeTests</id>
311
                                                                <goals>
312
                                                                        <goal>test</goal>
313
                                                                </goals>
314
                                                                <phase>integration-test</phase>
315
                                                                <configuration>
316
                                                                        <projectFile>${basedir}/test/soap-ui/MaybankFacade-soapui-project.xml</projectFile>
317
                                                                </configuration>
318
                                                        </execution>
319
                                                </executions>
320
                                                <configuration>
321
                                                        <host>localhost</host>
322
                                                        <!-- <port>8080</port> -->
323
                                                        <port>9090</port>
324
                                                        <outputFolder>${project.build.directory}/surefire-reports</outputFolder>
325
                                                        <junitReport>true</junitReport>
326
                                                        <printReport>false</printReport>
327
                                                </configuration>
328
                                        </plugin>
329
                                </plugins>
330
                        </build>
331
                        <dependencies>
332
                                <dependency>
333
                                        <groupId>axis</groupId>
334
                                        <artifactId>axis</artifactId>
335
                                        <version>1.4</version>
336
                                        <type>jar</type>
337
                                        <scope>compile</scope>
338
                                </dependency>
339
                        </dependencies>
340
                </profile>
341
                <profile>
342
                        <id>env-maybank-dev</id>
343
                        <activation>
344
                                <property>
345
                                        <name>env</name>
346
                                        <value>maybank-dev</value>
347
                                </property>
348
                        </activation>
349
                        <properties>
350
                                <config.postfix>.maybank-dev</config.postfix>
351
                        </properties>
352
                        <dependencies>
353
                                <dependency>
354
                                        <groupId>axis</groupId>
355
                                        <artifactId>axis</artifactId>
356
                                        <version>1.4</version>
357
                                        <type>jar</type>
358
                                        <scope>compile</scope>
359
                                        <exclusions>
360
                                                <exclusion>
361
                                                        <artifactId>axis-jaxrpc</artifactId>
362
                                                        <groupId>org.apache.axis</groupId>
363
                                                </exclusion>
364
                                                <exclusion>
365
                                                        <artifactId>axis-saaj</artifactId>
366
                                                        <groupId>org.apache.axis</groupId>
367
                                                </exclusion>
368
                                        </exclusions>
369
                                </dependency>
370
                        </dependencies>
371
                        <build>
372
                                <plugins>
373
                                        <plugin>
374
                                                <groupId>org.glassfish</groupId>
375
                                                <artifactId>maven-embedded-glassfish-plugin</artifactId>
376
                                                <configuration>
377
                                                        <app>${project.build.directory}/${project.artifactId}-${project.version}.war</app>
378
                                                </configuration>
379
                                        </plugin>
380
                                </plugins>
381
                        </build>
382
                </profile>
383
                <profile>
384
                        <id>cobertura-instrument</id>
385
                        <activation>
386
                                <property>
387
                                        <name>cobertura-build</name>
388
                                </property>
389
                        </activation>
390
                        <properties>
391
                                <m2u-upass-classifier>instrumented</m2u-upass-classifier>
392
                        </properties>
393
                        <distributionManagement>
394
                                <snapshotRepository>
395
                                        <id>penril.nexus.repo.coverage</id>
396
                                        <name>Penril Nexus Repo Coverage</name>
397
                                        <url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots-coverage</url>
398
                                </snapshotRepository>
399
                        </distributionManagement>
400
                        <build>
401
                                <plugins>
402
                                        <plugin>
403
                                                <artifactId>maven-war-plugin</artifactId>
404
                                                <configuration>
405
                                                        <classifier>${m2u-upass-classifier}</classifier>
406
                                                        <packagingExcludes>WEB-INF/lib/m2u-upass-*SNAPSHOT.jar</packagingExcludes>
407
                                                </configuration>
408
                                        </plugin>
409
                                        <plugin>
410
                                                <groupId>org.codehaus.mojo</groupId>
411
                                                <artifactId>cobertura-maven-plugin</artifactId>
412
                                                <configuration>
413
                                                        <formats>
414
                                                                <format>html</format>
415
                                                                <format>xml</format>
416
                                                        </formats>
417

    
418
                                                        <!-- TODO: To be configured... -->
419
                                                        <instrumentation>
420
                                                                <ignores>
421
                                                                        <ignore>com.example.boringcode.*</ignore>
422
                                                                </ignores>
423
                                                                <excludes>
424
                                                                        <exclude>com/example/dullcode/**/*.class</exclude>
425
                                                                        <exclude>com/example/**/*Test.class</exclude>
426
                                                                </excludes>
427
                                                        </instrumentation>
428

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