m2u-upass-ws / pom.xml @ 116:1ce61d19e8a5
History | View | Annotate | Download (26.5 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="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="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="resources/spring-ldap${config.postfix}.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 |
</profile>
|
444 |
<profile>
|
445 |
<id>env-maybank-prod</id> |
446 |
<activation>
|
447 |
<property>
|
448 |
<name>env</name> |
449 |
<value>maybank-prod</value> |
450 |
</property>
|
451 |
</activation>
|
452 |
<properties>
|
453 |
<config.postfix>.maybank-prod</config.postfix> |
454 |
</properties>
|
455 |
<dependencies>
|
456 |
<dependency>
|
457 |
<groupId>org.hibernate</groupId> |
458 |
<artifactId>hibernate-core</artifactId> |
459 |
<version>3.3.1.GA</version> |
460 |
<type>jar</type> |
461 |
<scope>compile</scope> |
462 |
<exclusions>
|
463 |
<exclusion>
|
464 |
<groupId>xml-apis</groupId> |
465 |
<artifactId>xml-apis</artifactId> |
466 |
</exclusion>
|
467 |
</exclusions>
|
468 |
</dependency>
|
469 |
<dependency>
|
470 |
<groupId>org.hibernate</groupId> |
471 |
<artifactId>hibernate-c3p0</artifactId> |
472 |
<version>3.3.1.GA</version> |
473 |
</dependency>
|
474 |
<dependency>
|
475 |
<groupId>axis</groupId> |
476 |
<artifactId>axis</artifactId> |
477 |
<version>1.4</version> |
478 |
<type>jar</type> |
479 |
<scope>compile</scope> |
480 |
<exclusions>
|
481 |
<exclusion>
|
482 |
<artifactId>axis-jaxrpc</artifactId> |
483 |
<groupId>org.apache.axis</groupId> |
484 |
</exclusion>
|
485 |
<exclusion>
|
486 |
<artifactId>axis-saaj</artifactId> |
487 |
<groupId>org.apache.axis</groupId> |
488 |
</exclusion>
|
489 |
</exclusions>
|
490 |
</dependency>
|
491 |
</dependencies>
|
492 |
<build>
|
493 |
<plugins>
|
494 |
<plugin>
|
495 |
<groupId>org.glassfish</groupId> |
496 |
<artifactId>maven-embedded-glassfish-plugin</artifactId> |
497 |
<configuration>
|
498 |
<app>${project.build.directory}/${project.artifactId}-${project.version}.war</app> |
499 |
</configuration>
|
500 |
</plugin>
|
501 |
</plugins>
|
502 |
</build>
|
503 |
</profile>
|
504 |
<profile>
|
505 |
<id>cobertura-instrument</id> |
506 |
<activation>
|
507 |
<property>
|
508 |
<name>cobertura-build</name> |
509 |
</property>
|
510 |
</activation>
|
511 |
<properties>
|
512 |
<m2u-upass-classifier>instrumented</m2u-upass-classifier> |
513 |
</properties>
|
514 |
<distributionManagement>
|
515 |
<snapshotRepository>
|
516 |
<id>penril.nexus.repo.coverage</id> |
517 |
<name>Penril Nexus Repo Coverage</name> |
518 |
<url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots-coverage</url> |
519 |
</snapshotRepository>
|
520 |
</distributionManagement>
|
521 |
<build>
|
522 |
<plugins>
|
523 |
<plugin>
|
524 |
<artifactId>maven-war-plugin</artifactId> |
525 |
<configuration>
|
526 |
<classifier>${m2u-upass-classifier}</classifier> |
527 |
<packagingExcludes>WEB-INF/lib/m2u-upass-*SNAPSHOT.jar</packagingExcludes> |
528 |
</configuration>
|
529 |
</plugin>
|
530 |
<plugin>
|
531 |
<groupId>org.codehaus.mojo</groupId> |
532 |
<artifactId>cobertura-maven-plugin</artifactId> |
533 |
<configuration>
|
534 |
<formats>
|
535 |
<format>html</format> |
536 |
<format>xml</format> |
537 |
</formats>
|
538 |
|
539 |
<!-- TODO: To be configured... -->
|
540 |
<instrumentation>
|
541 |
<ignores>
|
542 |
<ignore>com.example.boringcode.*</ignore> |
543 |
</ignores>
|
544 |
<excludes>
|
545 |
<exclude>com/example/dullcode/**/*.class</exclude> |
546 |
<exclude>com/example/**/*Test.class</exclude> |
547 |
</excludes>
|
548 |
</instrumentation>
|
549 |
|
550 |
<!-- TODO: To be configured... -->
|
551 |
<check>
|
552 |
<branchRate>85</branchRate> |
553 |
<lineRate>85</lineRate> |
554 |
<haltOnFailure>true</haltOnFailure> |
555 |
<totalBranchRate>85</totalBranchRate> |
556 |
<totalLineRate>85</totalLineRate> |
557 |
<packageLineRate>85</packageLineRate> |
558 |
<packageBranchRate>85</packageBranchRate> |
559 |
<regexes>
|
560 |
<regex>
|
561 |
<pattern>com.example.reallyimportant.*</pattern> |
562 |
<branchRate>90</branchRate> |
563 |
<lineRate>80</lineRate> |
564 |
</regex>
|
565 |
<regex>
|
566 |
<pattern>com.example.boringcode.*</pattern> |
567 |
<branchRate>40</branchRate> |
568 |
<lineRate>30</lineRate> |
569 |
</regex>
|
570 |
</regexes>
|
571 |
</check>
|
572 |
</configuration>
|
573 |
<executions>
|
574 |
<execution>
|
575 |
<id>instrument-code</id> |
576 |
<phase>process-classes</phase> |
577 |
<goals>
|
578 |
<goal>instrument</goal> |
579 |
</goals>
|
580 |
<configuration>
|
581 |
<attach>true</attach> |
582 |
</configuration>
|
583 |
</execution>
|
584 |
</executions>
|
585 |
</plugin>
|
586 |
<plugin>
|
587 |
<artifactId>maven-source-plugin</artifactId> |
588 |
<executions>
|
589 |
<execution>
|
590 |
<id>attach-sources</id> |
591 |
<goals>
|
592 |
<goal>jar</goal> |
593 |
</goals>
|
594 |
</execution>
|
595 |
</executions>
|
596 |
<inherited>true</inherited> |
597 |
</plugin>
|
598 |
</plugins>
|
599 |
</build>
|
600 |
<dependencies>
|
601 |
<dependency>
|
602 |
<groupId>net.sourceforge.cobertura</groupId> |
603 |
<artifactId>cobertura-runtime</artifactId> |
604 |
<version>${cobertura.version}</version> |
605 |
<!-- <scope>provided</scope> -->
|
606 |
<scope>compile</scope> |
607 |
<type>pom</type> |
608 |
</dependency>
|
609 |
</dependencies>
|
610 |
</profile>
|
611 |
<profile>
|
612 |
<id>custom-war-deploy</id> |
613 |
<activation>
|
614 |
<property>
|
615 |
<name>custom-war-deploy</name> |
616 |
</property>
|
617 |
</activation>
|
618 |
<build>
|
619 |
<plugins>
|
620 |
<plugin>
|
621 |
<artifactId>maven-antrun-plugin</artifactId> |
622 |
<executions>
|
623 |
<execution>
|
624 |
<id>tomcat-deployment</id> |
625 |
<phase>install</phase> |
626 |
<configuration>
|
627 |
<target>
|
628 |
<!-- <echo>Shutting down the Tomcat</echo> <exec dir="${tomcat.home}/bin"
|
629 |
executable="${tomcat.home}/bin/shutdown.sh" /> -->
|
630 |
<copy file="${basedir}/target/${project.artifactId}-${project.version}.war" tofile="${tomcat.home}/webapps/${project.artifactId}.war" |
631 |
overwrite="true" /> |
632 |
<!-- <echo>Starting up the Tomcat</echo> <exec dir="${tomcat.home}/bin"
|
633 |
executable="${tomcat.home}/bin/startup.sh" /> -->
|
634 |
</target>
|
635 |
</configuration>
|
636 |
<goals>
|
637 |
<goal>run</goal> |
638 |
</goals>
|
639 |
</execution>
|
640 |
</executions>
|
641 |
</plugin>
|
642 |
</plugins>
|
643 |
</build>
|
644 |
</profile>
|
645 |
<profile>
|
646 |
<id>load-test</id> |
647 |
<build>
|
648 |
<plugins>
|
649 |
<plugin>
|
650 |
<groupId>org.mortbay.jetty</groupId> |
651 |
<artifactId>maven-jetty-plugin</artifactId> |
652 |
<configuration>
|
653 |
<webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory> |
654 |
<classesDirectory>${project.build.directory}/classes</classesDirectory> |
655 |
<daemon>true</daemon> |
656 |
</configuration>
|
657 |
</plugin>
|
658 |
<plugin>
|
659 |
<groupId>org.glassfish</groupId> |
660 |
<artifactId>maven-embedded-glassfish-plugin</artifactId> |
661 |
<configuration>
|
662 |
<app>${project.build.directory}/${project.artifactId}-${project.version}-${m2u-upass-classifier}.war</app> |
663 |
</configuration>
|
664 |
<executions>
|
665 |
<execution>
|
666 |
<id>start-glassfish</id> |
667 |
<phase>pre-integration-test</phase> |
668 |
<goals>
|
669 |
<goal>start</goal> |
670 |
</goals>
|
671 |
</execution>
|
672 |
<execution>
|
673 |
<id>glassfish-deploy</id> |
674 |
<phase>pre-integration-test</phase> |
675 |
<goals>
|
676 |
<goal>deploy</goal> |
677 |
</goals>
|
678 |
</execution>
|
679 |
<execution>
|
680 |
<id>glassfish-undeploy</id> |
681 |
<phase>post-integration-test</phase> |
682 |
<goals>
|
683 |
<goal>undeploy</goal> |
684 |
</goals>
|
685 |
</execution>
|
686 |
<execution>
|
687 |
<id>stop-glassfish</id> |
688 |
<phase>post-integration-test</phase> |
689 |
<goals>
|
690 |
<goal>stop</goal> |
691 |
</goals>
|
692 |
</execution>
|
693 |
</executions>
|
694 |
<dependencies>
|
695 |
<dependency>
|
696 |
<groupId>net.sourceforge.cobertura</groupId> |
697 |
<artifactId>cobertura-runtime</artifactId> |
698 |
<version>${cobertura.version}</version> |
699 |
<!-- <scope>provided</scope> -->
|
700 |
<scope>compile</scope> |
701 |
<type>pom</type> |
702 |
</dependency>
|
703 |
</dependencies>
|
704 |
</plugin>
|
705 |
<plugin>
|
706 |
<artifactId>maven-antrun-plugin</artifactId> |
707 |
<executions>
|
708 |
<execution>
|
709 |
<phase>process-resources</phase> |
710 |
<configuration>
|
711 |
<target>
|
712 |
<echo message="Creating a directory required by our JMeter test plan." /> |
713 |
<mkdir dir="${basedir}/target/jmeter/responses/add" /> |
714 |
<mkdir dir="${basedir}/target/jmeter/responses/auth" /> |
715 |
</target>
|
716 |
</configuration>
|
717 |
<goals>
|
718 |
<goal>run</goal> |
719 |
</goals>
|
720 |
</execution>
|
721 |
</executions>
|
722 |
</plugin>
|
723 |
<plugin>
|
724 |
<groupId>org.codehaus.mojo</groupId> |
725 |
<artifactId>exec-maven-plugin</artifactId> |
726 |
<executions>
|
727 |
<execution>
|
728 |
<id>upass-load-test</id> |
729 |
<phase>integration-test</phase> |
730 |
<goals>
|
731 |
<goal>exec</goal> |
732 |
</goals>
|
733 |
<configuration>
|
734 |
<executable>${JMETER_HOME}/bin/jmeter.sh</executable> |
735 |
<arguments>
|
736 |
<argument>-n</argument> |
737 |
<argument>-t</argument> |
738 |
<argument>${basedir}/test/jmeter/UPass-test-plan.jmx</argument> |
739 |
<argument>-l</argument> |
740 |
<argument>${project.build.directory}/jmeter/result.jtl</argument> |
741 |
<argument>-J</argument> |
742 |
<argument>jmeter.save.saveservice.output_format=xml</argument> |
743 |
<argument>-J</argument> |
744 |
<argument>jmeter.save.saveservice.thread_counts=true</argument> |
745 |
<argument>-j</argument> |
746 |
<argument>${project.build.directory}/jmeter/jmeter.log</argument> |
747 |
</arguments>
|
748 |
</configuration>
|
749 |
</execution>
|
750 |
<execution>
|
751 |
<id>maybank-load-test</id> |
752 |
<phase>integration-test</phase> |
753 |
<goals>
|
754 |
<goal>exec</goal> |
755 |
</goals>
|
756 |
<configuration>
|
757 |
<executable>${JMETER_HOME}/bin/jmeter.sh</executable> |
758 |
<arguments>
|
759 |
<argument>-n</argument> |
760 |
<argument>-t</argument> |
761 |
<argument>${basedir}/test/jmeter/Maybank-facade-test-plan.jmx</argument> |
762 |
<argument>-l</argument> |
763 |
<argument>${project.build.directory}/jmeter/resultMaybank.jtl</argument> |
764 |
<argument>-J</argument> |
765 |
<argument>jmeter.save.saveservice.output_format=xml</argument> |
766 |
<argument>-J</argument> |
767 |
<argument>jmeter.save.saveservice.thread_counts=true</argument> |
768 |
<argument>-j</argument> |
769 |
<argument>${project.build.directory}/jmeter/jmeterMaybank.log</argument> |
770 |
</arguments>
|
771 |
</configuration>
|
772 |
</execution>
|
773 |
</executions>
|
774 |
</plugin>
|
775 |
</plugins>
|
776 |
</build>
|
777 |
<dependencies>
|
778 |
<dependency>
|
779 |
<groupId>axis</groupId> |
780 |
<artifactId>axis</artifactId> |
781 |
<version>1.4</version> |
782 |
<type>jar</type> |
783 |
<scope>compile</scope> |
784 |
</dependency>
|
785 |
</dependencies>
|
786 |
</profile>
|
787 |
<profile>
|
788 |
<id>wstools</id> |
789 |
<build>
|
790 |
<plugins>
|
791 |
<plugin>
|
792 |
<groupId>org.apache.maven.plugins</groupId> |
793 |
<artifactId>maven-antrun-plugin</artifactId> |
794 |
<executions>
|
795 |
<execution>
|
796 |
<phase>generate-resources</phase> |
797 |
<configuration>
|
798 |
<target>
|
799 |
<mkdir dir="${project.build.directory}/wsdl" /> |
800 |
<property name="compile_classpath" refid="maven.compile.classpath" /> |
801 |
<taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen" /> |
802 |
<wsgen sei="my.com.upass.maybank.MaybankFacadeImpl" classpath="${compile_classpath}" genWsdl="true" |
803 |
encoding="UTF-8" keep="false" verbose="true" inlineSchemas="false" resourcedestdir="${project.build.directory}/wsdl" |
804 |
xendorsed="true" /> |
805 |
<replace file="${project.build.directory}/wsdl/MaybankFacade.wsdl" token="REPLACE_WITH_ACTUAL_URL" |
806 |
value="http://dummy.endpoint.url" /> |
807 |
</target>
|
808 |
</configuration>
|
809 |
<goals>
|
810 |
<goal>run</goal> |
811 |
</goals>
|
812 |
</execution>
|
813 |
</executions>
|
814 |
<dependencies>
|
815 |
<dependency>
|
816 |
<groupId>com.sun.xml.ws</groupId> |
817 |
<artifactId>jaxws-tools</artifactId> |
818 |
<version>2.2.6</version> |
819 |
</dependency>
|
820 |
</dependencies>
|
821 |
</plugin>
|
822 |
</plugins>
|
823 |
</build>
|
824 |
</profile>
|
825 |
</profiles>
|
826 |
<dependencies>
|
827 |
<dependency>
|
828 |
<groupId>junit</groupId> |
829 |
<artifactId>junit</artifactId> |
830 |
<version>3.8.1</version> |
831 |
<scope>test</scope> |
832 |
</dependency>
|
833 |
<dependency>
|
834 |
<groupId>net.penril</groupId> |
835 |
<artifactId>m2u-upass-core</artifactId> |
836 |
<version>2.0-SNAPSHOT</version> |
837 |
<classifier>${m2u-upass-classifier}</classifier> |
838 |
<exclusions>
|
839 |
<exclusion>
|
840 |
<groupId>net.penril</groupId> |
841 |
<artifactId>m2u-upass-min</artifactId> |
842 |
</exclusion>
|
843 |
</exclusions>
|
844 |
</dependency>
|
845 |
<dependency>
|
846 |
<groupId>net.penril</groupId> |
847 |
<artifactId>m2u-upass-min</artifactId> |
848 |
<version>2.0-SNAPSHOT</version> |
849 |
<classifier>${m2u-upass-classifier}</classifier> |
850 |
<exclusions>
|
851 |
<exclusion>
|
852 |
<artifactId>xml-apis</artifactId> |
853 |
<groupId>xml-apis</groupId> |
854 |
</exclusion>
|
855 |
</exclusions>
|
856 |
</dependency>
|
857 |
<dependency>
|
858 |
<groupId>commons-discovery</groupId> |
859 |
<artifactId>commons-discovery</artifactId> |
860 |
<version>0.2</version> |
861 |
<type>jar</type> |
862 |
<scope>compile</scope> |
863 |
</dependency>
|
864 |
<dependency>
|
865 |
<groupId>commons-logging</groupId> |
866 |
<artifactId>commons-logging</artifactId> |
867 |
<version>1.1.1</version> |
868 |
<type>jar</type> |
869 |
<scope>compile</scope> |
870 |
</dependency>
|
871 |
<dependency>
|
872 |
<groupId>wsdl4j</groupId> |
873 |
<artifactId>wsdl4j</artifactId> |
874 |
<version>1.6.2</version> |
875 |
<type>jar</type> |
876 |
<scope>compile</scope> |
877 |
</dependency>
|
878 |
<dependency>
|
879 |
<groupId>commons-io</groupId> |
880 |
<artifactId>commons-io</artifactId> |
881 |
<version>1.4</version> |
882 |
</dependency>
|
883 |
<dependency>
|
884 |
<groupId>net.sourceforge.cobertura</groupId> |
885 |
<artifactId>cobertura-runtime</artifactId> |
886 |
<version>${cobertura.version}</version> |
887 |
<!-- <scope>provided</scope> -->
|
888 |
<scope>test</scope> |
889 |
<type>pom</type> |
890 |
</dependency>
|
891 |
<dependency>
|
892 |
<groupId>com.sun.jersey</groupId> |
893 |
<artifactId>jersey-core</artifactId> |
894 |
<version>1.8</version> |
895 |
<scope>provided</scope> |
896 |
</dependency>
|
897 |
<dependency>
|
898 |
<groupId>com.sun.jersey</groupId> |
899 |
<artifactId>jersey-json</artifactId> |
900 |
<version>1.8</version> |
901 |
<scope>provided</scope> |
902 |
</dependency>
|
903 |
<dependency>
|
904 |
<groupId>javax.servlet</groupId> |
905 |
<artifactId>servlet-api</artifactId> |
906 |
<version>2.4</version> |
907 |
<scope>provided</scope> |
908 |
</dependency>
|
909 |
<dependency>
|
910 |
<groupId>javax.annotation</groupId> |
911 |
<artifactId>jsr250-api</artifactId> |
912 |
<version>1.0</version> |
913 |
<scope>provided</scope> |
914 |
</dependency>
|
915 |
</dependencies>
|
916 |
</project>
|