m2u-upass-ws / pom.xml @ 104:1ae0392e1378
History | View | Annotate | Download (22.7 KB)
1 |
<?xml version="1.0"?>
|
---|---|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 |
|
5 |
<modelVersion>4.0.0</modelVersion> |
6 |
|
7 |
<groupId>net.penril</groupId> |
8 |
<artifactId>m2u-upass-ws</artifactId> |
9 |
<version>2.0-SNAPSHOT</version> |
10 |
<packaging>war</packaging> |
11 |
<name>M2U UPass Web Services</name> |
12 |
<properties>
|
13 |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
14 |
<cobertura.version>1.9.4.1</cobertura.version> |
15 |
<config.postfix /> |
16 |
<tomcat.home>/var/lib/jenkins/apache-tomcat-5.5.33</tomcat.home> |
17 |
<m2u-upass-classifier></m2u-upass-classifier> |
18 |
</properties>
|
19 |
<pluginRepositories>
|
20 |
<pluginRepository>
|
21 |
<id>eviwarePluginRepository</id> |
22 |
<url>http://www.eviware.com/repository/maven2/</url> |
23 |
</pluginRepository>
|
24 |
</pluginRepositories>
|
25 |
<distributionManagement>
|
26 |
<snapshotRepository>
|
27 |
<id>penril.nexus.repo</id> |
28 |
<name>Penril Nexus Repo</name> |
29 |
<url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots</url> |
30 |
<uniqueVersion>false</uniqueVersion> |
31 |
</snapshotRepository>
|
32 |
</distributionManagement>
|
33 |
<build>
|
34 |
<pluginManagement>
|
35 |
<plugins>
|
36 |
<plugin>
|
37 |
<groupId>org.codehaus.mojo</groupId> |
38 |
<artifactId>cobertura-maven-plugin</artifactId> |
39 |
<version>2.5.1</version> |
40 |
</plugin>
|
41 |
<plugin>
|
42 |
<groupId>org.apache.maven.plugins</groupId> |
43 |
<artifactId>maven-antrun-plugin</artifactId> |
44 |
<version>1.6</version> |
45 |
</plugin>
|
46 |
<plugin>
|
47 |
<groupId>org.mortbay.jetty</groupId> |
48 |
<artifactId>maven-jetty-plugin</artifactId> |
49 |
<version>6.1.16</version> |
50 |
<configuration>
|
51 |
<connectors>
|
52 |
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> |
53 |
<port>9090</port> |
54 |
<maxIdleTime>60000</maxIdleTime> |
55 |
</connector>
|
56 |
</connectors>
|
57 |
<stopPort>9005</stopPort> |
58 |
<stopKey>STOP</stopKey> |
59 |
<contextPath>${project.artifactId}</contextPath> |
60 |
<jettyConfig>target/classes/jetty.xml</jettyConfig> |
61 |
</configuration>
|
62 |
</plugin>
|
63 |
<plugin>
|
64 |
<groupId>org.glassfish</groupId> |
65 |
<artifactId>maven-embedded-glassfish-plugin</artifactId> |
66 |
<version>3.1.1</version> |
67 |
<configuration>
|
68 |
<goalPrefix>embedded-glassfish</goalPrefix> |
69 |
<autoDelete>true</autoDelete> |
70 |
<ports>
|
71 |
<http-listener>9090</http-listener> |
72 |
<https-listener>9093</https-listener> |
73 |
</ports>
|
74 |
<contextRoot>${project.artifactId}</contextRoot> |
75 |
</configuration>
|
76 |
</plugin>
|
77 |
</plugins>
|
78 |
</pluginManagement>
|
79 |
<sourceDirectory>src</sourceDirectory> |
80 |
<resources>
|
81 |
<resource>
|
82 |
<directory>src</directory> |
83 |
<excludes>
|
84 |
<exclude>**/*.java</exclude> |
85 |
</excludes>
|
86 |
</resource>
|
87 |
<resource>
|
88 |
<directory>resources</directory> |
89 |
</resource>
|
90 |
</resources>
|
91 |
<testSourceDirectory>test/java</testSourceDirectory> |
92 |
<testResources>
|
93 |
<testResource>
|
94 |
<directory>test/resources</directory> |
95 |
</testResource>
|
96 |
</testResources>
|
97 |
<plugins>
|
98 |
<plugin>
|
99 |
<groupId>org.apache.maven.plugins</groupId> |
100 |
<artifactId>maven-war-plugin</artifactId> |
101 |
<version>2.1.1</version> |
102 |
<configuration>
|
103 |
<warSourceDirectory>${basedir}/WebContent</warSourceDirectory> |
104 |
</configuration>
|
105 |
</plugin>
|
106 |
<plugin>
|
107 |
<groupId>org.apache.maven.plugins</groupId> |
108 |
<artifactId>maven-compiler-plugin</artifactId> |
109 |
<version>2.3.2</version> |
110 |
<configuration>
|
111 |
<source>1.6</source> |
112 |
<target>1.6</target> |
113 |
</configuration>
|
114 |
</plugin>
|
115 |
<plugin>
|
116 |
<artifactId>maven-failsafe-plugin</artifactId> |
117 |
<version>2.6</version> |
118 |
<executions>
|
119 |
<execution>
|
120 |
<goals>
|
121 |
<goal>integration-test</goal> |
122 |
<goal>verify</goal> |
123 |
</goals>
|
124 |
</execution>
|
125 |
</executions>
|
126 |
<dependencies>
|
127 |
<dependency>
|
128 |
<groupId>net.sourceforge.cobertura</groupId> |
129 |
<artifactId>cobertura-runtime</artifactId> |
130 |
<version>${cobertura.version}</version> |
131 |
<!-- <scope>provided</scope> -->
|
132 |
<scope>compile</scope> |
133 |
<type>pom</type> |
134 |
</dependency>
|
135 |
</dependencies>
|
136 |
</plugin>
|
137 |
</plugins>
|
138 |
</build>
|
139 |
|
140 |
|
141 |
|
142 |
<profiles>
|
143 |
<profile>
|
144 |
<id>env-staging-ci</id> |
145 |
<activation>
|
146 |
<property>
|
147 |
<name>env</name> |
148 |
<value>staging-ci</value> |
149 |
</property>
|
150 |
</activation>
|
151 |
<properties>
|
152 |
<config.postfix>.staging-ci</config.postfix> |
153 |
</properties>
|
154 |
<build>
|
155 |
<plugins>
|
156 |
<!--
|
157 |
<plugin>
|
158 |
<groupId>org.mortbay.jetty</groupId>
|
159 |
<artifactId>maven-jetty-plugin</artifactId>
|
160 |
<configuration>
|
161 |
<webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory>
|
162 |
<classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
|
163 |
</configuration>
|
164 |
<executions>
|
165 |
<execution>
|
166 |
<id>start-jetty</id>
|
167 |
<phase>pre-integration-test</phase>
|
168 |
<goals>
|
169 |
<goal>run</goal>
|
170 |
</goals>
|
171 |
<configuration>
|
172 |
<scanIntervalSeconds>0</scanIntervalSeconds>
|
173 |
<daemon>true</daemon>
|
174 |
</configuration>
|
175 |
</execution>
|
176 |
<execution>
|
177 |
<id>stop-jetty</id>
|
178 |
<phase>post-integration-test</phase>
|
179 |
<goals>
|
180 |
<goal>stop</goal>
|
181 |
</goals>
|
182 |
</execution>
|
183 |
</executions>
|
184 |
<dependencies>
|
185 |
<dependency>
|
186 |
<groupId>net.sourceforge.cobertura</groupId>
|
187 |
<artifactId>cobertura-runtime</artifactId>
|
188 |
<version>${cobertura.version}</version>
|
189 |
<scope>compile</scope>
|
190 |
<type>pom</type>
|
191 |
</dependency>
|
192 |
</dependencies>
|
193 |
</plugin>
|
194 |
-->
|
195 |
<plugin>
|
196 |
<groupId>org.glassfish</groupId> |
197 |
<artifactId>maven-embedded-glassfish-plugin</artifactId> |
198 |
<configuration>
|
199 |
<app>${project.build.directory}/${project.artifactId}-${project.version}-${m2u-upass-classifier}.war</app> |
200 |
<!-- <app>${project.build.directory}/${project.artifactId}-${project.version}</app> -->
|
201 |
</configuration>
|
202 |
<executions>
|
203 |
<execution>
|
204 |
<id>start-glassfish</id> |
205 |
<phase>pre-integration-test</phase> |
206 |
<goals>
|
207 |
<goal>start</goal> |
208 |
</goals>
|
209 |
</execution>
|
210 |
<execution>
|
211 |
<id>glassfish-deploy</id> |
212 |
<phase>pre-integration-test</phase> |
213 |
<goals>
|
214 |
<goal>deploy</goal> |
215 |
</goals>
|
216 |
</execution>
|
217 |
<!--
|
218 |
<execution>
|
219 |
<id>glassfish-undeploy</id>
|
220 |
<phase>post-integration-test</phase>
|
221 |
<goals>
|
222 |
<goal>undeploy</goal>
|
223 |
</goals>
|
224 |
</execution>
|
225 |
<execution>
|
226 |
<id>stop-glassfish</id>
|
227 |
<phase>post-integration-test</phase>
|
228 |
<goals>
|
229 |
<goal>stop</goal>
|
230 |
</goals>
|
231 |
</execution>
|
232 |
-->
|
233 |
</executions>
|
234 |
<dependencies>
|
235 |
<dependency>
|
236 |
<groupId>net.sourceforge.cobertura</groupId> |
237 |
<artifactId>cobertura-runtime</artifactId> |
238 |
<version>${cobertura.version}</version> |
239 |
<!-- <scope>provided</scope> -->
|
240 |
<scope>compile</scope> |
241 |
<type>pom</type> |
242 |
</dependency>
|
243 |
</dependencies>
|
244 |
</plugin>
|
245 |
<plugin>
|
246 |
<artifactId>maven-surefire-plugin</artifactId> |
247 |
<configuration>
|
248 |
<classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory> |
249 |
<forkMode>none</forkMode> |
250 |
</configuration>
|
251 |
</plugin>
|
252 |
<plugin>
|
253 |
<groupId>eviware</groupId> |
254 |
<artifactId>maven-soapui-plugin</artifactId> |
255 |
<version>4.5.1</version> |
256 |
<executions>
|
257 |
<execution>
|
258 |
<id>UPassWsTests</id> |
259 |
<goals>
|
260 |
<goal>test</goal> |
261 |
</goals>
|
262 |
<phase>integration-test</phase> |
263 |
<configuration>
|
264 |
<projectFile>${basedir}/test/soap-ui/UPass-soapui-project.xml</projectFile> |
265 |
<!--
|
266 |
<projectProperties>
|
267 |
<projectProperty>invokerUsername=UpassAdmin</projectProperty>
|
268 |
<projectProperty>invokerPassword=password</projectProperty>
|
269 |
</projectProperties>
|
270 |
-->
|
271 |
</configuration>
|
272 |
</execution>
|
273 |
<execution>
|
274 |
<id>MaybankFacadeTests</id> |
275 |
<goals>
|
276 |
<goal>test</goal> |
277 |
</goals>
|
278 |
<phase>integration-test</phase> |
279 |
<configuration>
|
280 |
<projectFile>${basedir}/test/soap-ui/MaybankFacade-soapui-project.xml</projectFile> |
281 |
</configuration>
|
282 |
</execution>
|
283 |
</executions>
|
284 |
<configuration>
|
285 |
<host>localhost</host> |
286 |
<!-- <port>8080</port> -->
|
287 |
<port>9090</port> |
288 |
<outputFolder>${project.build.directory}/surefire-reports</outputFolder> |
289 |
<junitReport>true</junitReport> |
290 |
<printReport>false</printReport> |
291 |
</configuration>
|
292 |
</plugin>
|
293 |
</plugins>
|
294 |
</build>
|
295 |
<dependencies>
|
296 |
<dependency>
|
297 |
<groupId>axis</groupId> |
298 |
<artifactId>axis</artifactId> |
299 |
<version>1.4</version> |
300 |
<type>jar</type> |
301 |
<scope>compile</scope> |
302 |
</dependency>
|
303 |
</dependencies>
|
304 |
</profile>
|
305 |
<profile>
|
306 |
<id>env-ant</id> |
307 |
<activation>
|
308 |
<property>
|
309 |
<name>env</name> |
310 |
</property>
|
311 |
</activation>
|
312 |
<build>
|
313 |
<plugins>
|
314 |
<plugin>
|
315 |
<artifactId>maven-antrun-plugin</artifactId> |
316 |
<executions>
|
317 |
<execution>
|
318 |
<id>env-config</id> |
319 |
<phase>process-resources</phase> |
320 |
<configuration>
|
321 |
<target>
|
322 |
<delete file="${project.build.outputDirectory}/log4j.xml" /> |
323 |
<copy file="resources/log4j${config.postfix}.xml" tofile="${project.build.outputDirectory}/log4j.xml" /> |
324 |
|
325 |
<delete>
|
326 |
<fileset dir="${project.build.outputDirectory}" includes="log4j.*.xml" /> |
327 |
</delete>
|
328 |
</target>
|
329 |
</configuration>
|
330 |
<goals>
|
331 |
<goal>run</goal> |
332 |
</goals>
|
333 |
</execution>
|
334 |
</executions>
|
335 |
</plugin>
|
336 |
</plugins>
|
337 |
</build>
|
338 |
</profile>
|
339 |
<profile>
|
340 |
<id>env-dev-penril</id> |
341 |
<activation>
|
342 |
<property>
|
343 |
<name>env</name> |
344 |
<value>dev-penril</value> |
345 |
</property>
|
346 |
</activation>
|
347 |
<properties>
|
348 |
<config.postfix>.dev-penril</config.postfix> |
349 |
</properties>
|
350 |
</profile>
|
351 |
<profile>
|
352 |
<id>env-maybank-dev</id> |
353 |
<activation>
|
354 |
<property>
|
355 |
<name>env</name> |
356 |
<value>maybank-dev</value> |
357 |
</property>
|
358 |
</activation>
|
359 |
<properties>
|
360 |
<config.postfix>.maybank-dev</config.postfix> |
361 |
</properties>
|
362 |
<dependencies>
|
363 |
<dependency>
|
364 |
<groupId>axis</groupId> |
365 |
<artifactId>axis</artifactId> |
366 |
<version>1.4</version> |
367 |
<type>jar</type> |
368 |
<scope>compile</scope> |
369 |
<exclusions>
|
370 |
<exclusion>
|
371 |
<artifactId>axis-jaxrpc</artifactId> |
372 |
<groupId>org.apache.axis</groupId> |
373 |
</exclusion>
|
374 |
<exclusion>
|
375 |
<artifactId>axis-saaj</artifactId> |
376 |
<groupId>org.apache.axis</groupId> |
377 |
</exclusion>
|
378 |
</exclusions>
|
379 |
</dependency>
|
380 |
</dependencies>
|
381 |
<build>
|
382 |
<plugins>
|
383 |
<plugin>
|
384 |
<groupId>org.glassfish</groupId> |
385 |
<artifactId>maven-embedded-glassfish-plugin</artifactId> |
386 |
<configuration>
|
387 |
<app>${project.build.directory}/${project.artifactId}-${project.version}.war</app> |
388 |
</configuration>
|
389 |
</plugin>
|
390 |
</plugins>
|
391 |
</build>
|
392 |
</profile>
|
393 |
|
394 |
|
395 |
|
396 |
<profile>
|
397 |
<id>cobertura-instrument</id> |
398 |
<activation>
|
399 |
<property>
|
400 |
<name>cobertura-build</name> |
401 |
</property>
|
402 |
</activation>
|
403 |
<properties>
|
404 |
<m2u-upass-classifier>instrumented</m2u-upass-classifier> |
405 |
</properties>
|
406 |
<distributionManagement>
|
407 |
<snapshotRepository>
|
408 |
<id>penril.nexus.repo.coverage</id> |
409 |
<name>Penril Nexus Repo Coverage</name> |
410 |
<url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots-coverage</url> |
411 |
</snapshotRepository>
|
412 |
</distributionManagement>
|
413 |
<build>
|
414 |
<plugins>
|
415 |
<plugin>
|
416 |
<artifactId>maven-war-plugin</artifactId> |
417 |
<configuration>
|
418 |
<classifier>${m2u-upass-classifier}</classifier> |
419 |
<packagingExcludes>WEB-INF/lib/m2u-upass-*SNAPSHOT.jar</packagingExcludes> |
420 |
</configuration>
|
421 |
</plugin>
|
422 |
<plugin>
|
423 |
<groupId>org.codehaus.mojo</groupId> |
424 |
<artifactId>cobertura-maven-plugin</artifactId> |
425 |
<configuration>
|
426 |
<formats>
|
427 |
<format>html</format> |
428 |
<format>xml</format> |
429 |
</formats>
|
430 |
|
431 |
<!-- TODO: To be configured... -->
|
432 |
<instrumentation>
|
433 |
<ignores>
|
434 |
<ignore>com.example.boringcode.*</ignore> |
435 |
</ignores>
|
436 |
<excludes>
|
437 |
<exclude>com/example/dullcode/**/*.class</exclude> |
438 |
<exclude>com/example/**/*Test.class</exclude> |
439 |
</excludes>
|
440 |
</instrumentation>
|
441 |
|
442 |
<!-- TODO: To be configured... -->
|
443 |
<check>
|
444 |
<branchRate>85</branchRate> |
445 |
<lineRate>85</lineRate> |
446 |
<haltOnFailure>true</haltOnFailure> |
447 |
<totalBranchRate>85</totalBranchRate> |
448 |
<totalLineRate>85</totalLineRate> |
449 |
<packageLineRate>85</packageLineRate> |
450 |
<packageBranchRate>85</packageBranchRate> |
451 |
<regexes>
|
452 |
<regex>
|
453 |
<pattern>com.example.reallyimportant.*</pattern> |
454 |
<branchRate>90</branchRate> |
455 |
<lineRate>80</lineRate> |
456 |
</regex>
|
457 |
<regex>
|
458 |
<pattern>com.example.boringcode.*</pattern> |
459 |
<branchRate>40</branchRate> |
460 |
<lineRate>30</lineRate> |
461 |
</regex>
|
462 |
</regexes>
|
463 |
</check>
|
464 |
</configuration>
|
465 |
<executions>
|
466 |
<execution>
|
467 |
<id>instrument-code</id> |
468 |
<phase>process-classes</phase> |
469 |
<goals>
|
470 |
<goal>instrument</goal> |
471 |
</goals>
|
472 |
<configuration>
|
473 |
<attach>true</attach> |
474 |
</configuration>
|
475 |
</execution>
|
476 |
</executions>
|
477 |
</plugin>
|
478 |
<plugin>
|
479 |
<artifactId>maven-source-plugin</artifactId> |
480 |
<executions>
|
481 |
<execution>
|
482 |
<id>attach-sources</id> |
483 |
<goals>
|
484 |
<goal>jar</goal> |
485 |
</goals>
|
486 |
</execution>
|
487 |
</executions>
|
488 |
<inherited>true</inherited> |
489 |
</plugin>
|
490 |
</plugins>
|
491 |
</build>
|
492 |
<dependencies>
|
493 |
<dependency>
|
494 |
<groupId>net.sourceforge.cobertura</groupId> |
495 |
<artifactId>cobertura-runtime</artifactId> |
496 |
<version>${cobertura.version}</version> |
497 |
<!-- <scope>provided</scope> -->
|
498 |
<scope>compile</scope> |
499 |
<type>pom</type> |
500 |
</dependency>
|
501 |
</dependencies>
|
502 |
</profile>
|
503 |
<profile>
|
504 |
<id>custom-war-deploy</id> |
505 |
<activation>
|
506 |
<property>
|
507 |
<name>custom-war-deploy</name> |
508 |
</property>
|
509 |
</activation>
|
510 |
<build>
|
511 |
<plugins>
|
512 |
<plugin>
|
513 |
<artifactId>maven-antrun-plugin</artifactId> |
514 |
<executions>
|
515 |
<execution>
|
516 |
<id>tomcat-deployment</id> |
517 |
<phase>install</phase> |
518 |
<configuration>
|
519 |
<target>
|
520 |
<!-- <echo>Shutting down the Tomcat</echo> <exec dir="${tomcat.home}/bin"
|
521 |
executable="${tomcat.home}/bin/shutdown.sh" /> -->
|
522 |
<copy file="${basedir}/target/${project.artifactId}-${project.version}.war" tofile="${tomcat.home}/webapps/${project.artifactId}.war" |
523 |
overwrite="true" /> |
524 |
<!-- <echo>Starting up the Tomcat</echo> <exec dir="${tomcat.home}/bin"
|
525 |
executable="${tomcat.home}/bin/startup.sh" /> -->
|
526 |
</target>
|
527 |
</configuration>
|
528 |
<goals>
|
529 |
<goal>run</goal> |
530 |
</goals>
|
531 |
</execution>
|
532 |
</executions>
|
533 |
</plugin>
|
534 |
</plugins>
|
535 |
</build>
|
536 |
</profile>
|
537 |
<profile>
|
538 |
<id>load-test</id> |
539 |
<build>
|
540 |
<plugins>
|
541 |
<plugin>
|
542 |
<groupId>org.mortbay.jetty</groupId> |
543 |
<artifactId>maven-jetty-plugin</artifactId> |
544 |
<configuration>
|
545 |
<webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory> |
546 |
<classesDirectory>${project.build.directory}/classes</classesDirectory> |
547 |
<daemon>true</daemon> |
548 |
</configuration>
|
549 |
</plugin>
|
550 |
<plugin>
|
551 |
<groupId>org.glassfish</groupId> |
552 |
<artifactId>maven-embedded-glassfish-plugin</artifactId> |
553 |
<configuration>
|
554 |
<app>${project.build.directory}/${project.artifactId}-${project.version}-${m2u-upass-classifier}.war</app> |
555 |
</configuration>
|
556 |
<executions>
|
557 |
<execution>
|
558 |
<id>start-glassfish</id> |
559 |
<phase>pre-integration-test</phase> |
560 |
<goals>
|
561 |
<goal>start</goal> |
562 |
</goals>
|
563 |
</execution>
|
564 |
<execution>
|
565 |
<id>glassfish-deploy</id> |
566 |
<phase>pre-integration-test</phase> |
567 |
<goals>
|
568 |
<goal>deploy</goal> |
569 |
</goals>
|
570 |
</execution>
|
571 |
<execution>
|
572 |
<id>glassfish-undeploy</id> |
573 |
<phase>post-integration-test</phase> |
574 |
<goals>
|
575 |
<goal>undeploy</goal> |
576 |
</goals>
|
577 |
</execution>
|
578 |
<execution>
|
579 |
<id>stop-glassfish</id> |
580 |
<phase>post-integration-test</phase> |
581 |
<goals>
|
582 |
<goal>stop</goal> |
583 |
</goals>
|
584 |
</execution>
|
585 |
</executions>
|
586 |
<dependencies>
|
587 |
<dependency>
|
588 |
<groupId>net.sourceforge.cobertura</groupId> |
589 |
<artifactId>cobertura-runtime</artifactId> |
590 |
<version>${cobertura.version}</version> |
591 |
<!-- <scope>provided</scope> -->
|
592 |
<scope>compile</scope> |
593 |
<type>pom</type> |
594 |
</dependency>
|
595 |
</dependencies>
|
596 |
</plugin>
|
597 |
<plugin>
|
598 |
<artifactId>maven-antrun-plugin</artifactId> |
599 |
<executions>
|
600 |
<execution>
|
601 |
<phase>process-resources</phase> |
602 |
<configuration>
|
603 |
<target>
|
604 |
<echo message="Creating a directory required by our JMeter test plan." /> |
605 |
<mkdir dir="${basedir}/target/jmeter/responses/add" /> |
606 |
<mkdir dir="${basedir}/target/jmeter/responses/auth" /> |
607 |
</target>
|
608 |
</configuration>
|
609 |
<goals>
|
610 |
<goal>run</goal> |
611 |
</goals>
|
612 |
</execution>
|
613 |
</executions>
|
614 |
</plugin>
|
615 |
<plugin>
|
616 |
<groupId>org.codehaus.mojo</groupId> |
617 |
<artifactId>exec-maven-plugin</artifactId> |
618 |
<executions>
|
619 |
<execution>
|
620 |
<id>upass-load-test</id> |
621 |
<phase>integration-test</phase> |
622 |
<goals>
|
623 |
<goal>exec</goal> |
624 |
</goals>
|
625 |
<configuration>
|
626 |
<executable>${JMETER_HOME}/bin/jmeter.sh</executable> |
627 |
<arguments>
|
628 |
<argument>-n</argument> |
629 |
<argument>-t</argument> |
630 |
<argument>${basedir}/test/jmeter/UPass-test-plan.jmx</argument> |
631 |
<argument>-l</argument> |
632 |
<argument>${project.build.directory}/jmeter/result.jtl</argument> |
633 |
<argument>-J</argument> |
634 |
<argument>jmeter.save.saveservice.output_format=xml</argument> |
635 |
<argument>-J</argument> |
636 |
<argument>jmeter.save.saveservice.thread_counts=true</argument> |
637 |
<argument>-j</argument> |
638 |
<argument>${project.build.directory}/jmeter/jmeter.log</argument> |
639 |
</arguments>
|
640 |
</configuration>
|
641 |
</execution>
|
642 |
<execution>
|
643 |
<id>maybank-load-test</id> |
644 |
<phase>integration-test</phase> |
645 |
<goals>
|
646 |
<goal>exec</goal> |
647 |
</goals>
|
648 |
<configuration>
|
649 |
<executable>${JMETER_HOME}/bin/jmeter.sh</executable> |
650 |
<arguments>
|
651 |
<argument>-n</argument> |
652 |
<argument>-t</argument> |
653 |
<argument>${basedir}/test/jmeter/Maybank-facade-test-plan.jmx</argument> |
654 |
<argument>-l</argument> |
655 |
<argument>${project.build.directory}/jmeter/resultMaybank.jtl</argument> |
656 |
<argument>-J</argument> |
657 |
<argument>jmeter.save.saveservice.output_format=xml</argument> |
658 |
<argument>-J</argument> |
659 |
<argument>jmeter.save.saveservice.thread_counts=true</argument> |
660 |
<argument>-j</argument> |
661 |
<argument>${project.build.directory}/jmeter/jmeterMaybank.log</argument> |
662 |
</arguments>
|
663 |
</configuration>
|
664 |
</execution>
|
665 |
</executions>
|
666 |
</plugin>
|
667 |
</plugins>
|
668 |
</build>
|
669 |
<dependencies>
|
670 |
<dependency>
|
671 |
<groupId>axis</groupId> |
672 |
<artifactId>axis</artifactId> |
673 |
<version>1.4</version> |
674 |
<type>jar</type> |
675 |
<scope>compile</scope> |
676 |
</dependency>
|
677 |
</dependencies>
|
678 |
</profile>
|
679 |
<profile>
|
680 |
<id>wstools</id> |
681 |
<build>
|
682 |
<plugins>
|
683 |
<plugin>
|
684 |
<groupId>org.apache.maven.plugins</groupId> |
685 |
<artifactId>maven-antrun-plugin</artifactId> |
686 |
<executions>
|
687 |
<execution>
|
688 |
<phase>generate-resources</phase> |
689 |
<configuration>
|
690 |
<target>
|
691 |
<mkdir dir="${project.build.directory}/wsdl" /> |
692 |
<property name="compile_classpath" refid="maven.compile.classpath" /> |
693 |
<taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen" /> |
694 |
<wsgen sei="my.com.upass.maybank.MaybankFacadeImpl" classpath="${compile_classpath}" genWsdl="true" |
695 |
encoding="UTF-8" keep="false" verbose="true" inlineSchemas="false" resourcedestdir="${project.build.directory}/wsdl" |
696 |
xendorsed="true" /> |
697 |
<replace file="${project.build.directory}/wsdl/MaybankFacade.wsdl" token="REPLACE_WITH_ACTUAL_URL" |
698 |
value="http://dummy.endpoint.url" /> |
699 |
</target>
|
700 |
</configuration>
|
701 |
<goals>
|
702 |
<goal>run</goal> |
703 |
</goals>
|
704 |
</execution>
|
705 |
</executions>
|
706 |
<dependencies>
|
707 |
<dependency>
|
708 |
<groupId>com.sun.xml.ws</groupId> |
709 |
<artifactId>jaxws-tools</artifactId> |
710 |
<version>2.2.6</version> |
711 |
</dependency>
|
712 |
</dependencies>
|
713 |
</plugin>
|
714 |
</plugins>
|
715 |
</build>
|
716 |
</profile>
|
717 |
</profiles>
|
718 |
|
719 |
|
720 |
|
721 |
<dependencies>
|
722 |
<dependency>
|
723 |
<groupId>junit</groupId> |
724 |
<artifactId>junit</artifactId> |
725 |
<version>3.8.1</version> |
726 |
<scope>test</scope> |
727 |
</dependency>
|
728 |
<dependency>
|
729 |
<groupId>net.penril</groupId> |
730 |
<artifactId>m2u-upass-core</artifactId> |
731 |
<version>2.0-SNAPSHOT</version> |
732 |
<classifier>${m2u-upass-classifier}</classifier> |
733 |
<exclusions>
|
734 |
<exclusion>
|
735 |
<groupId>net.penril</groupId> |
736 |
<artifactId>m2u-upass-min</artifactId> |
737 |
</exclusion>
|
738 |
</exclusions>
|
739 |
</dependency>
|
740 |
<dependency>
|
741 |
<groupId>net.penril</groupId> |
742 |
<artifactId>m2u-upass-min</artifactId> |
743 |
<version>2.0-SNAPSHOT</version> |
744 |
<classifier>${m2u-upass-classifier}</classifier> |
745 |
<exclusions>
|
746 |
<exclusion>
|
747 |
<artifactId>xml-apis</artifactId> |
748 |
<groupId>xml-apis</groupId> |
749 |
</exclusion>
|
750 |
</exclusions>
|
751 |
</dependency>
|
752 |
<dependency>
|
753 |
<groupId>commons-discovery</groupId> |
754 |
<artifactId>commons-discovery</artifactId> |
755 |
<version>0.2</version> |
756 |
<type>jar</type> |
757 |
<scope>compile</scope> |
758 |
</dependency>
|
759 |
<dependency>
|
760 |
<groupId>commons-logging</groupId> |
761 |
<artifactId>commons-logging</artifactId> |
762 |
<version>1.1.1</version> |
763 |
<type>jar</type> |
764 |
<scope>compile</scope> |
765 |
</dependency>
|
766 |
<dependency>
|
767 |
<groupId>wsdl4j</groupId> |
768 |
<artifactId>wsdl4j</artifactId> |
769 |
<version>1.6.2</version> |
770 |
<type>jar</type> |
771 |
<scope>compile</scope> |
772 |
</dependency>
|
773 |
<dependency>
|
774 |
<groupId>commons-io</groupId> |
775 |
<artifactId>commons-io</artifactId> |
776 |
<version>1.4</version> |
777 |
</dependency>
|
778 |
<dependency>
|
779 |
<groupId>net.sourceforge.cobertura</groupId> |
780 |
<artifactId>cobertura-runtime</artifactId> |
781 |
<version>${cobertura.version}</version> |
782 |
<!-- <scope>provided</scope> -->
|
783 |
<scope>test</scope> |
784 |
<type>pom</type> |
785 |
</dependency>
|
786 |
<dependency>
|
787 |
<groupId>com.sun.jersey</groupId> |
788 |
<artifactId>jersey-core</artifactId> |
789 |
<version>1.8</version> |
790 |
<scope>provided</scope> |
791 |
</dependency>
|
792 |
<dependency>
|
793 |
<groupId>com.sun.jersey</groupId> |
794 |
<artifactId>jersey-json</artifactId> |
795 |
<version>1.8</version> |
796 |
<scope>provided</scope> |
797 |
</dependency>
|
798 |
</dependencies>
|
799 |
</project>
|