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