Statistics
| Branch: | Revision:

m2u-upass-ws / pom.xml @ 110:479f2fec2270

History | View | Annotate | Download (28.1 KB)

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

    
5
        <modelVersion>4.0.0</modelVersion>
6

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

    
334
                                                                                <delete>
335
                                                                                        <fileset dir="${project.build.outputDirectory}" includes="upassMin.*.properties" />
336
                                                                                </delete>
337
                                                                                <delete file="${project.build.outputDirectory}/hibernate.cfg.xml" />
338
                                                                                <copy file="src/main/resources/hibernate${config.postfix}.cfg.xml" tofile="${project.build.outputDirectory}/hibernate.cfg.xml" />
339

    
340
                                                                                <delete>
341
                                                                                        <fileset dir="${project.build.outputDirectory}" includes="hibernate.*.cfg.xml" />
342
                                                                                </delete>
343

    
344
                                                                                <delete file="${project.build.outputDirectory}/spring-ldap.xml" />
345
                                                                                <copy file="src/main/resources/spring-ldap.xml" tofile="${project.build.outputDirectory}/spring-ldap.xml" />
346
                                                                                <delete>
347
                                                                                        <fileset dir="${project.build.outputDirectory}" includes="spring-ldap.*.xml" />
348
                                                                                </delete>
349

    
350
                                                                                <delete file="${project.build.outputDirectory}/log4j.xml" />
351
                                                                                <copy file="resources/log4j${config.postfix}.xml" tofile="${project.build.outputDirectory}/log4j.xml" />
352

    
353
                                                                                <delete>
354
                                                                                        <fileset dir="${project.build.outputDirectory}" includes="log4j.*.xml" />
355
                                                                                </delete>
356
                                                                        </target>
357
                                                                </configuration>
358
                                                                <goals>
359
                                                                        <goal>run</goal>
360
                                                                </goals>
361
                                                        </execution>
362
                                                </executions>
363
                                        </plugin>
364
                                </plugins>
365
                        </build>
366
                </profile>
367
                <profile>
368
                        <id>env-dev-penril</id>
369
                        <activation>
370
                                <property>
371
                                        <name>env</name>
372
                                        <value>dev-penril</value>
373
                                </property>
374
                        </activation>
375
                        <properties>
376
                                <config.postfix>.dev-penril</config.postfix>
377
                        </properties>
378
                        <dependencies>
379
                                <dependency>
380
                                        <groupId>org.hibernate</groupId>
381
                                        <artifactId>hibernate-core</artifactId>
382
                                        <version>3.3.1.GA</version>
383
                                        <type>jar</type>
384
                                        <scope>compile</scope>
385
                                </dependency>
386
                                <dependency>
387
                                        <groupId>axis</groupId>
388
                                        <artifactId>axis</artifactId>
389
                                        <version>1.4</version>
390
                                        <type>jar</type>
391
                                        <scope>compile</scope>
392
                                </dependency>
393
                        </dependencies>
394
                </profile>
395
                <profile>
396
                        <id>env-maybank-dev</id>
397
                        <activation>
398
                                <property>
399
                                        <name>env</name>
400
                                        <value>maybank-dev</value>
401
                                </property>
402
                        </activation>
403
                        <properties>
404
                                <config.postfix>.maybank-dev</config.postfix>
405
                        </properties>
406
                        <dependencies>
407
                                <dependency>
408
                                        <groupId>org.hibernate</groupId>
409
                                        <artifactId>hibernate-core</artifactId>
410
                                        <version>3.3.1.GA</version>
411
                                        <type>jar</type>
412
                                        <scope>compile</scope>
413
                                        <exclusions>
414
                                                <exclusion>
415
                                                        <groupId>xml-apis</groupId>
416
                                                        <artifactId>xml-apis</artifactId>
417
                                                </exclusion>
418
                                        </exclusions>
419
                                </dependency>
420
                                <dependency>
421
                                        <groupId>org.hibernate</groupId>
422
                                        <artifactId>hibernate-c3p0</artifactId>
423
                                        <version>3.3.1.GA</version>
424
                                </dependency>
425
                                <dependency>
426
                                        <groupId>axis</groupId>
427
                                        <artifactId>axis</artifactId>
428
                                        <version>1.4</version>
429
                                        <type>jar</type>
430
                                        <scope>compile</scope>
431
                                        <exclusions>
432
                                                <exclusion>
433
                                                        <artifactId>axis-jaxrpc</artifactId>
434
                                                        <groupId>org.apache.axis</groupId>
435
                                                </exclusion>
436
                                                <exclusion>
437
                                                        <artifactId>axis-saaj</artifactId>
438
                                                        <groupId>org.apache.axis</groupId>
439
                                                </exclusion>
440
                                        </exclusions>
441
                                </dependency>
442
                        </dependencies>
443
                        <build>
444
                                <plugins>
445
                                        <plugin>
446
                                                <groupId>org.glassfish</groupId>
447
                                                <artifactId>maven-embedded-glassfish-plugin</artifactId>
448
                                                <configuration>
449
                                                        <app>${project.build.directory}/${project.artifactId}-${project.version}.war</app>
450
                                                </configuration>
451
                                        </plugin>
452
                                </plugins>
453
                        </build>
454
                </profile>
455

    
456

    
457

    
458

    
459

    
460

    
461

    
462

    
463

    
464

    
465

    
466

    
467
                <profile>
468
                        <id>env-maybank-dev-jndi</id>
469
                        <activation>
470
                                <property>
471
                                        <name>env</name>
472
                                        <value>maybank-dev-jndi</value>
473
                                </property>
474
                        </activation>
475
                        <properties>
476
                                <config.postfix>.maybank-dev-jndi</config.postfix>
477
                        </properties>
478
                        <dependencies>
479
                                <dependency>
480
                                        <groupId>org.hibernate</groupId>
481
                                        <artifactId>hibernate-core</artifactId>
482
                                        <version>3.3.1.GA</version>
483
                                        <type>jar</type>
484
                                        <scope>compile</scope>
485
                                        <exclusions>
486
                                                <exclusion>
487
                                                        <groupId>xml-apis</groupId>
488
                                                        <artifactId>xml-apis</artifactId>
489
                                                </exclusion>
490
                                        </exclusions>
491
                                </dependency>
492
                        </dependencies>
493
                </profile>
494
                <profile>
495
                        <id>env-maybank-prod</id>
496
                        <activation>
497
                                <property>
498
                                        <name>env</name>
499
                                        <value>maybank-prod</value>
500
                                </property>
501
                        </activation>
502
                        <properties>
503
                                <config.postfix>.maybank-prod</config.postfix>
504
                        </properties>
505
                        <dependencies>
506
                                <dependency>
507
                                        <groupId>org.hibernate</groupId>
508
                                        <artifactId>hibernate-core</artifactId>
509
                                        <version>3.3.1.GA</version>
510
                                        <type>jar</type>
511
                                        <scope>compile</scope>
512
                                        <exclusions>
513
                                                <exclusion>
514
                                                        <groupId>xml-apis</groupId>
515
                                                        <artifactId>xml-apis</artifactId>
516
                                                </exclusion>
517
                                        </exclusions>
518
                                </dependency>
519
                                <dependency>
520
                                        <groupId>org.hibernate</groupId>
521
                                        <artifactId>hibernate-c3p0</artifactId>
522
                                        <version>3.3.1.GA</version>
523
                                </dependency>
524
                                <dependency>
525
                                        <groupId>axis</groupId>
526
                                        <artifactId>axis</artifactId>
527
                                        <version>1.4</version>
528
                                        <type>jar</type>
529
                                        <scope>compile</scope>
530
                                        <exclusions>
531
                                                <exclusion>
532
                                                        <artifactId>axis-jaxrpc</artifactId>
533
                                                        <groupId>org.apache.axis</groupId>
534
                                                </exclusion>
535
                                                <exclusion>
536
                                                        <artifactId>axis-saaj</artifactId>
537
                                                        <groupId>org.apache.axis</groupId>
538
                                                </exclusion>
539
                                        </exclusions>
540
                                </dependency>
541
                        </dependencies>
542
                        <build>
543
                                <plugins>
544
                                        <plugin>
545
                                                <groupId>org.glassfish</groupId>
546
                                                <artifactId>maven-embedded-glassfish-plugin</artifactId>
547
                                                <configuration>
548
                                                        <app>${project.build.directory}/${project.artifactId}-${project.version}.war</app>
549
                                                </configuration>
550
                                        </plugin>
551
                                </plugins>
552
                        </build>
553
                </profile>
554

    
555

    
556

    
557

    
558

    
559
                <profile>
560
                        <id>env-maybank-prod-jndi</id>
561
                        <activation>
562
                                <property>
563
                                        <name>env</name>
564
                                        <value>maybank-prod-jndi</value>
565
                                </property>
566
                        </activation>
567
                        <properties>
568
                                <config.postfix>.maybank-prod-jndi</config.postfix>
569
                        </properties>
570
                        <dependencies>
571
                                <dependency>
572
                                        <groupId>org.hibernate</groupId>
573
                                        <artifactId>hibernate-core</artifactId>
574
                                        <version>3.3.1.GA</version>
575
                                        <type>jar</type>
576
                                        <scope>compile</scope>
577
                                        <exclusions>
578
                                                <exclusion>
579
                                                        <groupId>xml-apis</groupId>
580
                                                        <artifactId>xml-apis</artifactId>
581
                                                </exclusion>
582
                                        </exclusions>
583
                                </dependency>
584
                        </dependencies>
585
                </profile>
586
                <profile>
587
                        <id>cobertura-instrument</id>
588
                        <activation>
589
                                <property>
590
                                        <name>cobertura-build</name>
591
                                </property>
592
                        </activation>
593
                        <properties>
594
                                <m2u-upass-classifier>instrumented</m2u-upass-classifier>
595
                        </properties>
596
                        <distributionManagement>
597
                                <snapshotRepository>
598
                                        <id>penril.nexus.repo.coverage</id>
599
                                        <name>Penril Nexus Repo Coverage</name>
600
                                        <url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots-coverage</url>
601
                                </snapshotRepository>
602
                        </distributionManagement>
603
                        <build>
604
                                <plugins>
605
                                        <plugin>
606
                                                <artifactId>maven-war-plugin</artifactId>
607
                                                <configuration>
608
                                                        <classifier>${m2u-upass-classifier}</classifier>
609
                                                        <packagingExcludes>WEB-INF/lib/m2u-upass-*SNAPSHOT.jar</packagingExcludes>
610
                                                </configuration>
611
                                        </plugin>
612
                                        <plugin>
613
                                                <groupId>org.codehaus.mojo</groupId>
614
                                                <artifactId>cobertura-maven-plugin</artifactId>
615
                                                <configuration>
616
                                                        <formats>
617
                                                                <format>html</format>
618
                                                                <format>xml</format>
619
                                                        </formats>
620

    
621
                                                        <!-- TODO: To be configured... -->
622
                                                        <instrumentation>
623
                                                                <ignores>
624
                                                                        <ignore>com.example.boringcode.*</ignore>
625
                                                                </ignores>
626
                                                                <excludes>
627
                                                                        <exclude>com/example/dullcode/**/*.class</exclude>
628
                                                                        <exclude>com/example/**/*Test.class</exclude>
629
                                                                </excludes>
630
                                                        </instrumentation>
631

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

    
909

    
910

    
911
        <dependencies>
912
                <dependency>
913
                        <groupId>junit</groupId>
914
                        <artifactId>junit</artifactId>
915
                        <version>3.8.1</version>
916
                        <scope>test</scope>
917
                </dependency>
918
                <dependency>
919
                        <groupId>net.penril</groupId>
920
                        <artifactId>m2u-upass-core</artifactId>
921
                        <version>2.0-SNAPSHOT</version>
922
                        <classifier>${m2u-upass-classifier}</classifier>
923
                        <exclusions>
924
                                <exclusion>
925
                                        <groupId>net.penril</groupId>
926
                                        <artifactId>m2u-upass-min</artifactId>
927
                                </exclusion>
928
                        </exclusions>
929
                </dependency>
930
                <dependency>
931
                        <groupId>net.penril</groupId>
932
                        <artifactId>m2u-upass-min</artifactId>
933
                        <version>2.0-SNAPSHOT</version>
934
                        <classifier>${m2u-upass-classifier}</classifier>
935
                        <exclusions>
936
                                <exclusion>
937
                                        <artifactId>xml-apis</artifactId>
938
                                        <groupId>xml-apis</groupId>
939
                                </exclusion>
940
                        </exclusions>
941
                </dependency>
942
                <dependency>
943
                        <groupId>commons-discovery</groupId>
944
                        <artifactId>commons-discovery</artifactId>
945
                        <version>0.2</version>
946
                        <type>jar</type>
947
                        <scope>compile</scope>
948
                </dependency>
949
                <dependency>
950
                        <groupId>commons-logging</groupId>
951
                        <artifactId>commons-logging</artifactId>
952
                        <version>1.1.1</version>
953
                        <type>jar</type>
954
                        <scope>compile</scope>
955
                </dependency>
956
                <dependency>
957
                        <groupId>wsdl4j</groupId>
958
                        <artifactId>wsdl4j</artifactId>
959
                        <version>1.6.2</version>
960
                        <type>jar</type>
961
                        <scope>compile</scope>
962
                </dependency>
963
                <dependency>
964
                        <groupId>commons-io</groupId>
965
                        <artifactId>commons-io</artifactId>
966
                        <version>1.4</version>
967
                </dependency>
968
                <dependency>
969
                        <groupId>net.sourceforge.cobertura</groupId>
970
                        <artifactId>cobertura-runtime</artifactId>
971
                        <version>${cobertura.version}</version>
972
                        <!-- <scope>provided</scope> -->
973
                        <scope>test</scope>
974
                        <type>pom</type>
975
                </dependency>
976
                <dependency>
977
                        <groupId>com.sun.jersey</groupId>
978
                        <artifactId>jersey-core</artifactId>
979
                        <version>1.8</version>
980
                        <scope>provided</scope>
981
                </dependency>
982
                <dependency>
983
                        <groupId>com.sun.jersey</groupId>
984
                        <artifactId>jersey-json</artifactId>
985
                        <version>1.8</version>
986
                        <scope>provided</scope>
987
                </dependency>
988
                <dependency>
989
                        <groupId>javax.servlet</groupId>
990
                        <artifactId>servlet-api</artifactId>
991
                        <version>2.4</version>
992
                        <scope>provided</scope>
993
                </dependency>
994
                <dependency>
995
                        <groupId>javax.annotation</groupId>
996
                        <artifactId>jsr250-api</artifactId>
997
                        <version>1.0</version>
998
                        <scope>provided</scope>
999
                </dependency>
1000
        </dependencies>
1001
</project>