m2u-upass-ws / pom.xml @ 108:e2fa9e416abd
History | View | Annotate | Download (24.3 KB)
1 | 104:1ae0392e1378 | hadi | <?xml version="1.0"?>
|
---|---|---|---|
2 | 0:53910be9bd5d | hadi | <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 | 1:de3237f0578f | hadi | <artifactId>m2u-upass-ws</artifactId> |
9 | 0:53910be9bd5d | hadi | <version>2.0-SNAPSHOT</version> |
10 | <packaging>war</packaging> |
||
11 | 1:de3237f0578f | hadi | <name>M2U UPass Web Services</name> |
12 | 0:53910be9bd5d | hadi | <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 | 41:82f9226695ca | hadi | <m2u-upass-classifier></m2u-upass-classifier> |
18 | 0:53910be9bd5d | hadi | </properties>
|
19 | <pluginRepositories>
|
||
20 | <pluginRepository>
|
||
21 | <id>eviwarePluginRepository</id> |
||
22 | <url>http://www.eviware.com/repository/maven2/</url> |
||
23 | </pluginRepository>
|
||
24 | </pluginRepositories>
|
||
25 | 42:bc281010aa2b | hadi | <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 | 43:8cf1379b4214 | hadi | <uniqueVersion>false</uniqueVersion> |
31 | 42:bc281010aa2b | hadi | </snapshotRepository>
|
32 | </distributionManagement>
|
||
33 | 0:53910be9bd5d | hadi | <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 | 38:346f2a2fb939 | hadi | <jettyConfig>target/classes/jetty.xml</jettyConfig> |
61 | 0:53910be9bd5d | hadi | </configuration>
|
62 | </plugin>
|
||
63 | 53:ea0221651efe | hadi | <plugin>
|
64 | <groupId>org.glassfish</groupId> |
||
65 | <artifactId>maven-embedded-glassfish-plugin</artifactId> |
||
66 | 55:4d457cd85dc2 | hadi | <version>3.1.1</version> |
67 | 53:ea0221651efe | hadi | <configuration>
|
68 | <goalPrefix>embedded-glassfish</goalPrefix> |
||
69 | <autoDelete>true</autoDelete> |
||
70 | 85:b99ad245c984 | hadi | <ports>
|
71 | <http-listener>9090</http-listener> |
||
72 | <https-listener>9093</https-listener> |
||
73 | </ports>
|
||
74 | 54:3bb2b0f70a0c | hadi | <contextRoot>${project.artifactId}</contextRoot> |
75 | 53:ea0221651efe | hadi | </configuration>
|
76 | </plugin>
|
||
77 | 0:53910be9bd5d | hadi | </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 | 50:0a34b4a7fa41 | hadi | <source>1.6</source> |
112 | <target>1.6</target> |
||
113 | 0:53910be9bd5d | hadi | </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 | 104:1ae0392e1378 | hadi | |
140 | |||
141 | |||
142 | 0:53910be9bd5d | hadi | <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 | 83:7924ebcf5539 | hadi | <!--
|
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 | 53:ea0221651efe | hadi | <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 | 83:7924ebcf5539 | hadi | <!-- <app>${project.build.directory}/${project.artifactId}-${project.version}</app> -->
|
201 | 53:ea0221651efe | hadi | </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 | 83:7924ebcf5539 | hadi | <!--
|
218 | <execution>
|
||
219 | 53:ea0221651efe | hadi | <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 | 83:7924ebcf5539 | hadi | -->
|
233 | 53:ea0221651efe | hadi | </executions>
|
234 | <dependencies>
|
||
235 | <dependency>
|
||
236 | <groupId>net.sourceforge.cobertura</groupId> |
||
237 | <artifactId>cobertura-runtime</artifactId> |
||
238 | <version>${cobertura.version}</version> |
||
239 | 0:53910be9bd5d | hadi | <!-- <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 | 59:aec66d83d091 | hadi | <configuration>
|
264 | <projectFile>${basedir}/test/soap-ui/UPass-soapui-project.xml</projectFile> |
||
265 | 77:3e65986f3550 | hadi | <!--
|
266 | 59:aec66d83d091 | hadi | <projectProperties>
|
267 | <projectProperty>invokerUsername=UpassAdmin</projectProperty>
|
||
268 | <projectProperty>invokerPassword=password</projectProperty>
|
||
269 | </projectProperties>
|
||
270 | 77:3e65986f3550 | hadi | -->
|
271 | 83:7924ebcf5539 | hadi | </configuration>
|
272 | 59:aec66d83d091 | hadi | </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 | 0:53910be9bd5d | hadi | </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 | 62:82ddd2d32001 | hadi | <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 | 0:53910be9bd5d | hadi | </profile>
|
305 | <profile>
|
||
306 | 104:1ae0392e1378 | hadi | <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 | 105:f50e2622bf1e | hadi | <dependencies>
|
351 | <dependency>
|
||
352 | <groupId>axis</groupId> |
||
353 | <artifactId>axis</artifactId> |
||
354 | <version>1.4</version> |
||
355 | <type>jar</type> |
||
356 | <scope>compile</scope> |
||
357 | </dependency>
|
||
358 | </dependencies>
|
||
359 | 104:1ae0392e1378 | hadi | </profile>
|
360 | <profile>
|
||
361 | 49:4b668c7b5357 | mohd | <id>env-maybank-dev</id> |
362 | <activation>
|
||
363 | <property>
|
||
364 | <name>env</name> |
||
365 | <value>maybank-dev</value> |
||
366 | </property>
|
||
367 | </activation>
|
||
368 | <properties>
|
||
369 | <config.postfix>.maybank-dev</config.postfix> |
||
370 | </properties>
|
||
371 | 62:82ddd2d32001 | hadi | <dependencies>
|
372 | <dependency>
|
||
373 | <groupId>axis</groupId> |
||
374 | <artifactId>axis</artifactId> |
||
375 | <version>1.4</version> |
||
376 | <type>jar</type> |
||
377 | <scope>compile</scope> |
||
378 | <exclusions>
|
||
379 | <exclusion>
|
||
380 | <artifactId>axis-jaxrpc</artifactId> |
||
381 | <groupId>org.apache.axis</groupId> |
||
382 | </exclusion>
|
||
383 | <exclusion>
|
||
384 | <artifactId>axis-saaj</artifactId> |
||
385 | <groupId>org.apache.axis</groupId> |
||
386 | </exclusion>
|
||
387 | </exclusions>
|
||
388 | </dependency>
|
||
389 | </dependencies>
|
||
390 | 82:999497720cfa | hadi | <build>
|
391 | <plugins>
|
||
392 | <plugin>
|
||
393 | <groupId>org.glassfish</groupId> |
||
394 | <artifactId>maven-embedded-glassfish-plugin</artifactId> |
||
395 | <configuration>
|
||
396 | <app>${project.build.directory}/${project.artifactId}-${project.version}.war</app> |
||
397 | </configuration>
|
||
398 | </plugin>
|
||
399 | </plugins>
|
||
400 | </build>
|
||
401 | 49:4b668c7b5357 | mohd | </profile>
|
402 | 108:e2fa9e416abd | mohd | <profile>
|
403 | <id>env-maybank-prod</id> |
||
404 | <activation>
|
||
405 | <property>
|
||
406 | <name>env</name> |
||
407 | <value>maybank-prod</value> |
||
408 | </property>
|
||
409 | </activation>
|
||
410 | <properties>
|
||
411 | <config.postfix>.maybank-prod</config.postfix> |
||
412 | </properties>
|
||
413 | <dependencies>
|
||
414 | <dependency>
|
||
415 | <groupId>axis</groupId> |
||
416 | <artifactId>axis</artifactId> |
||
417 | <version>1.4</version> |
||
418 | <type>jar</type> |
||
419 | <scope>compile</scope> |
||
420 | <exclusions>
|
||
421 | <exclusion>
|
||
422 | <artifactId>axis-jaxrpc</artifactId> |
||
423 | <groupId>org.apache.axis</groupId> |
||
424 | </exclusion>
|
||
425 | <exclusion>
|
||
426 | <artifactId>axis-saaj</artifactId> |
||
427 | <groupId>org.apache.axis</groupId> |
||
428 | </exclusion>
|
||
429 | </exclusions>
|
||
430 | </dependency>
|
||
431 | </dependencies>
|
||
432 | <build>
|
||
433 | <plugins>
|
||
434 | <plugin>
|
||
435 | <groupId>org.glassfish</groupId> |
||
436 | <artifactId>maven-embedded-glassfish-plugin</artifactId> |
||
437 | <configuration>
|
||
438 | <app>${project.build.directory}/${project.artifactId}-${project.version}.war</app> |
||
439 | </configuration>
|
||
440 | </plugin>
|
||
441 | </plugins>
|
||
442 | </build>
|
||
443 | </profile>
|
||
444 | 104:1ae0392e1378 | hadi | |
445 | |||
446 | 49:4b668c7b5357 | mohd | <profile>
|
447 | 0:53910be9bd5d | hadi | <id>cobertura-instrument</id> |
448 | <activation>
|
||
449 | <property>
|
||
450 | <name>cobertura-build</name> |
||
451 | </property>
|
||
452 | </activation>
|
||
453 | 41:82f9226695ca | hadi | <properties>
|
454 | <m2u-upass-classifier>instrumented</m2u-upass-classifier> |
||
455 | </properties>
|
||
456 | 0:53910be9bd5d | hadi | <distributionManagement>
|
457 | <snapshotRepository>
|
||
458 | <id>penril.nexus.repo.coverage</id> |
||
459 | <name>Penril Nexus Repo Coverage</name> |
||
460 | <url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots-coverage</url> |
||
461 | </snapshotRepository>
|
||
462 | </distributionManagement>
|
||
463 | <build>
|
||
464 | <plugins>
|
||
465 | <plugin>
|
||
466 | 41:82f9226695ca | hadi | <artifactId>maven-war-plugin</artifactId> |
467 | <configuration>
|
||
468 | <classifier>${m2u-upass-classifier}</classifier> |
||
469 | <packagingExcludes>WEB-INF/lib/m2u-upass-*SNAPSHOT.jar</packagingExcludes> |
||
470 | </configuration>
|
||
471 | </plugin>
|
||
472 | <plugin>
|
||
473 | 0:53910be9bd5d | hadi | <groupId>org.codehaus.mojo</groupId> |
474 | <artifactId>cobertura-maven-plugin</artifactId> |
||
475 | <configuration>
|
||
476 | <formats>
|
||
477 | <format>html</format> |
||
478 | <format>xml</format> |
||
479 | </formats>
|
||
480 | |||
481 | <!-- TODO: To be configured... -->
|
||
482 | <instrumentation>
|
||
483 | <ignores>
|
||
484 | <ignore>com.example.boringcode.*</ignore> |
||
485 | </ignores>
|
||
486 | <excludes>
|
||
487 | <exclude>com/example/dullcode/**/*.class</exclude> |
||
488 | <exclude>com/example/**/*Test.class</exclude> |
||
489 | </excludes>
|
||
490 | </instrumentation>
|
||
491 | |||
492 | <!-- TODO: To be configured... -->
|
||
493 | <check>
|
||
494 | <branchRate>85</branchRate> |
||
495 | <lineRate>85</lineRate> |
||
496 | <haltOnFailure>true</haltOnFailure> |
||
497 | <totalBranchRate>85</totalBranchRate> |
||
498 | <totalLineRate>85</totalLineRate> |
||
499 | <packageLineRate>85</packageLineRate> |
||
500 | <packageBranchRate>85</packageBranchRate> |
||
501 | <regexes>
|
||
502 | <regex>
|
||
503 | <pattern>com.example.reallyimportant.*</pattern> |
||
504 | <branchRate>90</branchRate> |
||
505 | <lineRate>80</lineRate> |
||
506 | </regex>
|
||
507 | <regex>
|
||
508 | <pattern>com.example.boringcode.*</pattern> |
||
509 | <branchRate>40</branchRate> |
||
510 | <lineRate>30</lineRate> |
||
511 | </regex>
|
||
512 | </regexes>
|
||
513 | </check>
|
||
514 | </configuration>
|
||
515 | <executions>
|
||
516 | <execution>
|
||
517 | <id>instrument-code</id> |
||
518 | <phase>process-classes</phase> |
||
519 | <goals>
|
||
520 | <goal>instrument</goal> |
||
521 | </goals>
|
||
522 | <configuration>
|
||
523 | <attach>true</attach> |
||
524 | </configuration>
|
||
525 | </execution>
|
||
526 | </executions>
|
||
527 | </plugin>
|
||
528 | <plugin>
|
||
529 | <artifactId>maven-source-plugin</artifactId> |
||
530 | <executions>
|
||
531 | <execution>
|
||
532 | <id>attach-sources</id> |
||
533 | <goals>
|
||
534 | <goal>jar</goal> |
||
535 | </goals>
|
||
536 | </execution>
|
||
537 | </executions>
|
||
538 | <inherited>true</inherited> |
||
539 | </plugin>
|
||
540 | </plugins>
|
||
541 | </build>
|
||
542 | <dependencies>
|
||
543 | <dependency>
|
||
544 | <groupId>net.sourceforge.cobertura</groupId> |
||
545 | <artifactId>cobertura-runtime</artifactId> |
||
546 | <version>${cobertura.version}</version> |
||
547 | <!-- <scope>provided</scope> -->
|
||
548 | <scope>compile</scope> |
||
549 | <type>pom</type> |
||
550 | </dependency>
|
||
551 | </dependencies>
|
||
552 | </profile>
|
||
553 | <profile>
|
||
554 | <id>custom-war-deploy</id> |
||
555 | <activation>
|
||
556 | <property>
|
||
557 | <name>custom-war-deploy</name> |
||
558 | </property>
|
||
559 | </activation>
|
||
560 | <build>
|
||
561 | <plugins>
|
||
562 | <plugin>
|
||
563 | <artifactId>maven-antrun-plugin</artifactId> |
||
564 | <executions>
|
||
565 | <execution>
|
||
566 | <id>tomcat-deployment</id> |
||
567 | <phase>install</phase> |
||
568 | <configuration>
|
||
569 | <target>
|
||
570 | <!-- <echo>Shutting down the Tomcat</echo> <exec dir="${tomcat.home}/bin"
|
||
571 | executable="${tomcat.home}/bin/shutdown.sh" /> -->
|
||
572 | 83:7924ebcf5539 | hadi | <copy file="${basedir}/target/${project.artifactId}-${project.version}.war" tofile="${tomcat.home}/webapps/${project.artifactId}.war" |
573 | 0:53910be9bd5d | hadi | overwrite="true" /> |
574 | <!-- <echo>Starting up the Tomcat</echo> <exec dir="${tomcat.home}/bin"
|
||
575 | executable="${tomcat.home}/bin/startup.sh" /> -->
|
||
576 | </target>
|
||
577 | </configuration>
|
||
578 | <goals>
|
||
579 | <goal>run</goal> |
||
580 | </goals>
|
||
581 | </execution>
|
||
582 | </executions>
|
||
583 | </plugin>
|
||
584 | </plugins>
|
||
585 | </build>
|
||
586 | </profile>
|
||
587 | <profile>
|
||
588 | <id>load-test</id> |
||
589 | <build>
|
||
590 | <plugins>
|
||
591 | <plugin>
|
||
592 | <groupId>org.mortbay.jetty</groupId> |
||
593 | <artifactId>maven-jetty-plugin</artifactId> |
||
594 | <configuration>
|
||
595 | <webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory> |
||
596 | <classesDirectory>${project.build.directory}/classes</classesDirectory> |
||
597 | <daemon>true</daemon> |
||
598 | </configuration>
|
||
599 | </plugin>
|
||
600 | <plugin>
|
||
601 | 67:19444c2942ad | mohd | <groupId>org.glassfish</groupId> |
602 | <artifactId>maven-embedded-glassfish-plugin</artifactId> |
||
603 | <configuration>
|
||
604 | <app>${project.build.directory}/${project.artifactId}-${project.version}-${m2u-upass-classifier}.war</app> |
||
605 | </configuration>
|
||
606 | <executions>
|
||
607 | <execution>
|
||
608 | <id>start-glassfish</id> |
||
609 | <phase>pre-integration-test</phase> |
||
610 | <goals>
|
||
611 | <goal>start</goal> |
||
612 | </goals>
|
||
613 | </execution>
|
||
614 | <execution>
|
||
615 | <id>glassfish-deploy</id> |
||
616 | <phase>pre-integration-test</phase> |
||
617 | <goals>
|
||
618 | <goal>deploy</goal> |
||
619 | </goals>
|
||
620 | </execution>
|
||
621 | <execution>
|
||
622 | <id>glassfish-undeploy</id> |
||
623 | <phase>post-integration-test</phase> |
||
624 | <goals>
|
||
625 | <goal>undeploy</goal> |
||
626 | </goals>
|
||
627 | </execution>
|
||
628 | <execution>
|
||
629 | <id>stop-glassfish</id> |
||
630 | <phase>post-integration-test</phase> |
||
631 | <goals>
|
||
632 | <goal>stop</goal> |
||
633 | </goals>
|
||
634 | </execution>
|
||
635 | </executions>
|
||
636 | <dependencies>
|
||
637 | <dependency>
|
||
638 | <groupId>net.sourceforge.cobertura</groupId> |
||
639 | <artifactId>cobertura-runtime</artifactId> |
||
640 | <version>${cobertura.version}</version> |
||
641 | <!-- <scope>provided</scope> -->
|
||
642 | <scope>compile</scope> |
||
643 | <type>pom</type> |
||
644 | </dependency>
|
||
645 | </dependencies>
|
||
646 | </plugin>
|
||
647 | <plugin>
|
||
648 | 0:53910be9bd5d | hadi | <artifactId>maven-antrun-plugin</artifactId> |
649 | <executions>
|
||
650 | <execution>
|
||
651 | <phase>process-resources</phase> |
||
652 | <configuration>
|
||
653 | <target>
|
||
654 | <echo message="Creating a directory required by our JMeter test plan." /> |
||
655 | 26:d47f87ecfdb6 | hadi | <mkdir dir="${basedir}/target/jmeter/responses/add" /> |
656 | <mkdir dir="${basedir}/target/jmeter/responses/auth" /> |
||
657 | 0:53910be9bd5d | hadi | </target>
|
658 | </configuration>
|
||
659 | <goals>
|
||
660 | <goal>run</goal> |
||
661 | </goals>
|
||
662 | </execution>
|
||
663 | </executions>
|
||
664 | 38:346f2a2fb939 | hadi | </plugin>
|
665 | 0:53910be9bd5d | hadi | <plugin>
|
666 | <groupId>org.codehaus.mojo</groupId> |
||
667 | <artifactId>exec-maven-plugin</artifactId> |
||
668 | 67:19444c2942ad | mohd | <executions>
|
669 | <execution>
|
||
670 | <id>upass-load-test</id> |
||
671 | <phase>integration-test</phase> |
||
672 | <goals>
|
||
673 | <goal>exec</goal> |
||
674 | </goals>
|
||
675 | <configuration>
|
||
676 | <executable>${JMETER_HOME}/bin/jmeter.sh</executable> |
||
677 | <arguments>
|
||
678 | <argument>-n</argument> |
||
679 | <argument>-t</argument> |
||
680 | <argument>${basedir}/test/jmeter/UPass-test-plan.jmx</argument> |
||
681 | <argument>-l</argument> |
||
682 | <argument>${project.build.directory}/jmeter/result.jtl</argument> |
||
683 | <argument>-J</argument> |
||
684 | <argument>jmeter.save.saveservice.output_format=xml</argument> |
||
685 | <argument>-J</argument> |
||
686 | <argument>jmeter.save.saveservice.thread_counts=true</argument> |
||
687 | <argument>-j</argument> |
||
688 | <argument>${project.build.directory}/jmeter/jmeter.log</argument> |
||
689 | </arguments>
|
||
690 | </configuration>
|
||
691 | </execution>
|
||
692 | <execution>
|
||
693 | <id>maybank-load-test</id> |
||
694 | <phase>integration-test</phase> |
||
695 | <goals>
|
||
696 | <goal>exec</goal> |
||
697 | </goals>
|
||
698 | <configuration>
|
||
699 | <executable>${JMETER_HOME}/bin/jmeter.sh</executable> |
||
700 | <arguments>
|
||
701 | <argument>-n</argument> |
||
702 | <argument>-t</argument> |
||
703 | <argument>${basedir}/test/jmeter/Maybank-facade-test-plan.jmx</argument> |
||
704 | <argument>-l</argument> |
||
705 | <argument>${project.build.directory}/jmeter/resultMaybank.jtl</argument> |
||
706 | <argument>-J</argument> |
||
707 | <argument>jmeter.save.saveservice.output_format=xml</argument> |
||
708 | <argument>-J</argument> |
||
709 | <argument>jmeter.save.saveservice.thread_counts=true</argument> |
||
710 | <argument>-j</argument> |
||
711 | <argument>${project.build.directory}/jmeter/jmeterMaybank.log</argument> |
||
712 | </arguments>
|
||
713 | </configuration>
|
||
714 | </execution>
|
||
715 | </executions>
|
||
716 | 0:53910be9bd5d | hadi | </plugin>
|
717 | </plugins>
|
||
718 | </build>
|
||
719 | 62:82ddd2d32001 | hadi | <dependencies>
|
720 | <dependency>
|
||
721 | <groupId>axis</groupId> |
||
722 | <artifactId>axis</artifactId> |
||
723 | <version>1.4</version> |
||
724 | <type>jar</type> |
||
725 | <scope>compile</scope> |
||
726 | </dependency>
|
||
727 | </dependencies>
|
||
728 | 0:53910be9bd5d | hadi | </profile>
|
729 | 61:d98a1f2ddb58 | hadi | <profile>
|
730 | <id>wstools</id> |
||
731 | <build>
|
||
732 | <plugins>
|
||
733 | <plugin>
|
||
734 | <groupId>org.apache.maven.plugins</groupId> |
||
735 | <artifactId>maven-antrun-plugin</artifactId> |
||
736 | <executions>
|
||
737 | <execution>
|
||
738 | <phase>generate-resources</phase> |
||
739 | <configuration>
|
||
740 | <target>
|
||
741 | <mkdir dir="${project.build.directory}/wsdl" /> |
||
742 | <property name="compile_classpath" refid="maven.compile.classpath" /> |
||
743 | <taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen" /> |
||
744 | 83:7924ebcf5539 | hadi | <wsgen sei="my.com.upass.maybank.MaybankFacadeImpl" classpath="${compile_classpath}" genWsdl="true" |
745 | encoding="UTF-8" keep="false" verbose="true" inlineSchemas="false" resourcedestdir="${project.build.directory}/wsdl" |
||
746 | xendorsed="true" /> |
||
747 | <replace file="${project.build.directory}/wsdl/MaybankFacade.wsdl" token="REPLACE_WITH_ACTUAL_URL" |
||
748 | value="http://dummy.endpoint.url" /> |
||
749 | 61:d98a1f2ddb58 | hadi | </target>
|
750 | </configuration>
|
||
751 | <goals>
|
||
752 | <goal>run</goal> |
||
753 | </goals>
|
||
754 | </execution>
|
||
755 | </executions>
|
||
756 | <dependencies>
|
||
757 | <dependency>
|
||
758 | <groupId>com.sun.xml.ws</groupId> |
||
759 | <artifactId>jaxws-tools</artifactId> |
||
760 | <version>2.2.6</version> |
||
761 | </dependency>
|
||
762 | </dependencies>
|
||
763 | </plugin>
|
||
764 | </plugins>
|
||
765 | </build>
|
||
766 | </profile>
|
||
767 | 0:53910be9bd5d | hadi | </profiles>
|
768 | 104:1ae0392e1378 | hadi | |
769 | |||
770 | |||
771 | 0:53910be9bd5d | hadi | <dependencies>
|
772 | <dependency>
|
||
773 | <groupId>junit</groupId> |
||
774 | <artifactId>junit</artifactId> |
||
775 | <version>3.8.1</version> |
||
776 | <scope>test</scope> |
||
777 | </dependency>
|
||
778 | <dependency>
|
||
779 | <groupId>net.penril</groupId> |
||
780 | 4:6929b881e172 | hadi | <artifactId>m2u-upass-core</artifactId> |
781 | 0:53910be9bd5d | hadi | <version>2.0-SNAPSHOT</version> |
782 | 41:82f9226695ca | hadi | <classifier>${m2u-upass-classifier}</classifier> |
783 | <exclusions>
|
||
784 | <exclusion>
|
||
785 | <groupId>net.penril</groupId> |
||
786 | <artifactId>m2u-upass-min</artifactId> |
||
787 | </exclusion>
|
||
788 | </exclusions>
|
||
789 | </dependency>
|
||
790 | <dependency>
|
||
791 | <groupId>net.penril</groupId> |
||
792 | <artifactId>m2u-upass-min</artifactId> |
||
793 | <version>2.0-SNAPSHOT</version> |
||
794 | <classifier>${m2u-upass-classifier}</classifier> |
||
795 | 89:93929e2a5d85 | mohd | <exclusions>
|
796 | <exclusion>
|
||
797 | <artifactId>xml-apis</artifactId> |
||
798 | <groupId>xml-apis</groupId> |
||
799 | </exclusion>
|
||
800 | </exclusions>
|
||
801 | 0:53910be9bd5d | hadi | </dependency>
|
802 | <dependency>
|
||
803 | <groupId>commons-discovery</groupId> |
||
804 | <artifactId>commons-discovery</artifactId> |
||
805 | <version>0.2</version> |
||
806 | <type>jar</type> |
||
807 | <scope>compile</scope> |
||
808 | </dependency>
|
||
809 | <dependency>
|
||
810 | <groupId>commons-logging</groupId> |
||
811 | <artifactId>commons-logging</artifactId> |
||
812 | <version>1.1.1</version> |
||
813 | <type>jar</type> |
||
814 | <scope>compile</scope> |
||
815 | </dependency>
|
||
816 | <dependency>
|
||
817 | <groupId>wsdl4j</groupId> |
||
818 | <artifactId>wsdl4j</artifactId> |
||
819 | <version>1.6.2</version> |
||
820 | <type>jar</type> |
||
821 | <scope>compile</scope> |
||
822 | </dependency>
|
||
823 | <dependency>
|
||
824 | <groupId>commons-io</groupId> |
||
825 | <artifactId>commons-io</artifactId> |
||
826 | <version>1.4</version> |
||
827 | </dependency>
|
||
828 | <dependency>
|
||
829 | <groupId>net.sourceforge.cobertura</groupId> |
||
830 | <artifactId>cobertura-runtime</artifactId> |
||
831 | <version>${cobertura.version}</version> |
||
832 | <!-- <scope>provided</scope> -->
|
||
833 | <scope>test</scope> |
||
834 | <type>pom</type> |
||
835 | </dependency>
|
||
836 | 86:31691154086a | mohd | <dependency>
|
837 | <groupId>com.sun.jersey</groupId> |
||
838 | 93:1809b4f5940b | mohd | <artifactId>jersey-core</artifactId> |
839 | 86:31691154086a | mohd | <version>1.8</version> |
840 | 93:1809b4f5940b | mohd | <scope>provided</scope> |
841 | 86:31691154086a | mohd | </dependency>
|
842 | <dependency>
|
||
843 | <groupId>com.sun.jersey</groupId> |
||
844 | <artifactId>jersey-json</artifactId> |
||
845 | <version>1.8</version> |
||
846 | 93:1809b4f5940b | mohd | <scope>provided</scope> |
847 | 86:31691154086a | mohd | </dependency>
|
848 | 107:63dd8c2cdfa8 | hadi | <dependency>
|
849 | <groupId>javax.servlet</groupId> |
||
850 | <artifactId>servlet-api</artifactId> |
||
851 | <version>2.4</version> |
||
852 | <scope>provided</scope> |
||
853 | </dependency>
|
||
854 | <dependency>
|
||
855 | <groupId>javax.annotation</groupId> |
||
856 | <artifactId>jsr250-api</artifactId> |
||
857 | <version>1.0</version> |
||
858 | <scope>provided</scope> |
||
859 | </dependency>
|
||
860 | 0:53910be9bd5d | hadi | </dependencies>
|
861 | </project> |