m2u-upass-ws / pom.xml @ 59:aec66d83d091
History | View | Annotate | Download (19.8 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 | <port>9090</port> |
||
70 | 54:3bb2b0f70a0c | hadi | <contextRoot>${project.artifactId}</contextRoot> |
71 | 55:4d457cd85dc2 | hadi | <autoDelete>yes</autoDelete> |
72 | 53:ea0221651efe | hadi | </configuration>
|
73 | </plugin>
|
||
74 | 0:53910be9bd5d | hadi | </plugins>
|
75 | </pluginManagement>
|
||
76 | <sourceDirectory>src</sourceDirectory> |
||
77 | <resources>
|
||
78 | <resource>
|
||
79 | <directory>src</directory> |
||
80 | <excludes>
|
||
81 | <exclude>**/*.java</exclude> |
||
82 | </excludes>
|
||
83 | </resource>
|
||
84 | <resource>
|
||
85 | <directory>resources</directory> |
||
86 | </resource>
|
||
87 | </resources>
|
||
88 | <testSourceDirectory>test/java</testSourceDirectory> |
||
89 | <testResources>
|
||
90 | <testResource>
|
||
91 | <directory>test/resources</directory> |
||
92 | </testResource>
|
||
93 | </testResources>
|
||
94 | <plugins>
|
||
95 | <plugin>
|
||
96 | <groupId>org.apache.maven.plugins</groupId> |
||
97 | <artifactId>maven-war-plugin</artifactId> |
||
98 | <version>2.1.1</version> |
||
99 | <configuration>
|
||
100 | <warSourceDirectory>${basedir}/WebContent</warSourceDirectory> |
||
101 | </configuration>
|
||
102 | </plugin>
|
||
103 | <plugin>
|
||
104 | <groupId>org.apache.maven.plugins</groupId> |
||
105 | <artifactId>maven-compiler-plugin</artifactId> |
||
106 | <version>2.3.2</version> |
||
107 | <configuration>
|
||
108 | 50:0a34b4a7fa41 | hadi | <source>1.6</source> |
109 | <target>1.6</target> |
||
110 | 0:53910be9bd5d | hadi | </configuration>
|
111 | </plugin>
|
||
112 | <plugin>
|
||
113 | <artifactId>maven-antrun-plugin</artifactId> |
||
114 | <executions>
|
||
115 | <execution>
|
||
116 | <id>env-config</id> |
||
117 | <phase>process-resources</phase> |
||
118 | <configuration>
|
||
119 | <target>
|
||
120 | <delete file="${project.build.outputDirectory}/log4j.xml" /> |
||
121 | <copy file="resources/log4j${config.postfix}.xml" tofile="${project.build.outputDirectory}/log4j.xml" /> |
||
122 | |||
123 | <delete>
|
||
124 | 53:ea0221651efe | hadi | <fileset dir="${project.build.outputDirectory}" includes="log4j.*.xml" /> |
125 | 0:53910be9bd5d | hadi | </delete>
|
126 | </target>
|
||
127 | </configuration>
|
||
128 | <goals>
|
||
129 | <goal>run</goal> |
||
130 | </goals>
|
||
131 | </execution>
|
||
132 | </executions>
|
||
133 | </plugin>
|
||
134 | <plugin>
|
||
135 | <artifactId>maven-failsafe-plugin</artifactId> |
||
136 | <version>2.6</version> |
||
137 | <executions>
|
||
138 | <execution>
|
||
139 | <goals>
|
||
140 | <goal>integration-test</goal> |
||
141 | <goal>verify</goal> |
||
142 | </goals>
|
||
143 | </execution>
|
||
144 | </executions>
|
||
145 | <dependencies>
|
||
146 | <dependency>
|
||
147 | <groupId>net.sourceforge.cobertura</groupId> |
||
148 | <artifactId>cobertura-runtime</artifactId> |
||
149 | <version>${cobertura.version}</version> |
||
150 | <!-- <scope>provided</scope> -->
|
||
151 | <scope>compile</scope> |
||
152 | <type>pom</type> |
||
153 | </dependency>
|
||
154 | </dependencies>
|
||
155 | </plugin>
|
||
156 | </plugins>
|
||
157 | </build>
|
||
158 | <profiles>
|
||
159 | <profile>
|
||
160 | <id>env-dev-penril</id> |
||
161 | <activation>
|
||
162 | <property>
|
||
163 | <name>env</name> |
||
164 | <value>dev-penril</value> |
||
165 | </property>
|
||
166 | </activation>
|
||
167 | <properties>
|
||
168 | <config.postfix>.dev-penril</config.postfix> |
||
169 | </properties>
|
||
170 | </profile>
|
||
171 | <profile>
|
||
172 | <id>env-staging-ci</id> |
||
173 | <activation>
|
||
174 | <property>
|
||
175 | <name>env</name> |
||
176 | <value>staging-ci</value> |
||
177 | </property>
|
||
178 | </activation>
|
||
179 | <properties>
|
||
180 | <config.postfix>.staging-ci</config.postfix> |
||
181 | </properties>
|
||
182 | <build>
|
||
183 | <plugins>
|
||
184 | 53:ea0221651efe | hadi | <!--
|
185 | <plugin>
|
||
186 | 0:53910be9bd5d | hadi | <groupId>org.mortbay.jetty</groupId>
|
187 | <artifactId>maven-jetty-plugin</artifactId>
|
||
188 | <configuration>
|
||
189 | <webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory>
|
||
190 | <classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
|
||
191 | </configuration>
|
||
192 | <executions>
|
||
193 | <execution>
|
||
194 | <id>start-jetty</id>
|
||
195 | <phase>pre-integration-test</phase>
|
||
196 | <goals>
|
||
197 | <goal>run</goal>
|
||
198 | </goals>
|
||
199 | <configuration>
|
||
200 | <scanIntervalSeconds>0</scanIntervalSeconds>
|
||
201 | <daemon>true</daemon>
|
||
202 | </configuration>
|
||
203 | </execution>
|
||
204 | <execution>
|
||
205 | <id>stop-jetty</id>
|
||
206 | <phase>post-integration-test</phase>
|
||
207 | <goals>
|
||
208 | <goal>stop</goal>
|
||
209 | </goals>
|
||
210 | </execution>
|
||
211 | </executions>
|
||
212 | <dependencies>
|
||
213 | <dependency>
|
||
214 | <groupId>net.sourceforge.cobertura</groupId>
|
||
215 | <artifactId>cobertura-runtime</artifactId>
|
||
216 | <version>${cobertura.version}</version>
|
||
217 | 53:ea0221651efe | hadi | <scope>compile</scope>
|
218 | <type>pom</type>
|
||
219 | </dependency>
|
||
220 | </dependencies>
|
||
221 | </plugin>
|
||
222 | -->
|
||
223 | <plugin>
|
||
224 | <groupId>org.glassfish</groupId> |
||
225 | <artifactId>maven-embedded-glassfish-plugin</artifactId> |
||
226 | <configuration>
|
||
227 | <app>${project.build.directory}/${project.artifactId}-${project.version}-${m2u-upass-classifier}.war</app> |
||
228 | </configuration>
|
||
229 | <executions>
|
||
230 | <execution>
|
||
231 | <id>start-glassfish</id> |
||
232 | <phase>pre-integration-test</phase> |
||
233 | <goals>
|
||
234 | <goal>start</goal> |
||
235 | </goals>
|
||
236 | </execution>
|
||
237 | <execution>
|
||
238 | <id>glassfish-deploy</id> |
||
239 | <phase>pre-integration-test</phase> |
||
240 | <goals>
|
||
241 | <goal>deploy</goal> |
||
242 | </goals>
|
||
243 | </execution>
|
||
244 | <execution>
|
||
245 | <id>glassfish-undeploy</id> |
||
246 | <phase>post-integration-test</phase> |
||
247 | <goals>
|
||
248 | <goal>undeploy</goal> |
||
249 | </goals>
|
||
250 | </execution>
|
||
251 | <execution>
|
||
252 | <id>stop-glassfish</id> |
||
253 | <phase>post-integration-test</phase> |
||
254 | <goals>
|
||
255 | <goal>stop</goal> |
||
256 | </goals>
|
||
257 | </execution>
|
||
258 | </executions>
|
||
259 | <dependencies>
|
||
260 | <dependency>
|
||
261 | <groupId>net.sourceforge.cobertura</groupId> |
||
262 | <artifactId>cobertura-runtime</artifactId> |
||
263 | <version>${cobertura.version}</version> |
||
264 | 0:53910be9bd5d | hadi | <!-- <scope>provided</scope> -->
|
265 | <scope>compile</scope> |
||
266 | <type>pom</type> |
||
267 | </dependency>
|
||
268 | </dependencies>
|
||
269 | </plugin>
|
||
270 | <plugin>
|
||
271 | <artifactId>maven-surefire-plugin</artifactId> |
||
272 | <configuration>
|
||
273 | <classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory> |
||
274 | <forkMode>none</forkMode> |
||
275 | </configuration>
|
||
276 | </plugin>
|
||
277 | <plugin>
|
||
278 | <groupId>eviware</groupId> |
||
279 | <artifactId>maven-soapui-plugin</artifactId> |
||
280 | <version>4.5.1</version> |
||
281 | <executions>
|
||
282 | <execution>
|
||
283 | <id>UPassWsTests</id> |
||
284 | <goals>
|
||
285 | <goal>test</goal> |
||
286 | </goals>
|
||
287 | <phase>integration-test</phase> |
||
288 | 59:aec66d83d091 | hadi | <configuration>
|
289 | <projectFile>${basedir}/test/soap-ui/UPass-soapui-project.xml</projectFile> |
||
290 | <projectProperties>
|
||
291 | <projectProperty>invokerUsername=UpassAdmin</projectProperty> |
||
292 | <projectProperty>invokerPassword=password</projectProperty> |
||
293 | </projectProperties>
|
||
294 | </configuration>
|
||
295 | </execution>
|
||
296 | <execution>
|
||
297 | <id>MaybankFacadeTests</id> |
||
298 | <goals>
|
||
299 | <goal>test</goal> |
||
300 | </goals>
|
||
301 | <phase>integration-test</phase> |
||
302 | <configuration>
|
||
303 | <projectFile>${basedir}/test/soap-ui/MaybankFacade-soapui-project.xml</projectFile> |
||
304 | </configuration>
|
||
305 | 0:53910be9bd5d | hadi | </execution>
|
306 | </executions>
|
||
307 | <configuration>
|
||
308 | <host>localhost</host> |
||
309 | <!-- <port>8080</port> -->
|
||
310 | <port>9090</port> |
||
311 | <outputFolder>${project.build.directory}/surefire-reports</outputFolder> |
||
312 | <junitReport>true</junitReport> |
||
313 | <printReport>false</printReport> |
||
314 | </configuration>
|
||
315 | </plugin>
|
||
316 | </plugins>
|
||
317 | </build>
|
||
318 | </profile>
|
||
319 | <profile>
|
||
320 | 49:4b668c7b5357 | mohd | <id>env-maybank-dev</id> |
321 | <activation>
|
||
322 | <property>
|
||
323 | <name>env</name> |
||
324 | <value>maybank-dev</value> |
||
325 | </property>
|
||
326 | </activation>
|
||
327 | <properties>
|
||
328 | <config.postfix>.maybank-dev</config.postfix> |
||
329 | </properties>
|
||
330 | <build>
|
||
331 | <plugins>
|
||
332 | <plugin>
|
||
333 | <groupId>org.mortbay.jetty</groupId> |
||
334 | <artifactId>maven-jetty-plugin</artifactId> |
||
335 | <configuration>
|
||
336 | <webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory> |
||
337 | <classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory> |
||
338 | <!-- <webApp>${project.build.directory}/${project.artifactId}-instrument.${project.packaging}</webApp> -->
|
||
339 | </configuration>
|
||
340 | <executions>
|
||
341 | <execution>
|
||
342 | <id>start-jetty</id> |
||
343 | <phase>pre-integration-test</phase> |
||
344 | <goals>
|
||
345 | <goal>run</goal> |
||
346 | </goals>
|
||
347 | <configuration>
|
||
348 | <scanIntervalSeconds>0</scanIntervalSeconds> |
||
349 | <daemon>true</daemon> |
||
350 | </configuration>
|
||
351 | </execution>
|
||
352 | <execution>
|
||
353 | <id>stop-jetty</id> |
||
354 | <phase>post-integration-test</phase> |
||
355 | <goals>
|
||
356 | <goal>stop</goal> |
||
357 | </goals>
|
||
358 | </execution>
|
||
359 | </executions>
|
||
360 | <dependencies>
|
||
361 | <dependency>
|
||
362 | <groupId>net.sourceforge.cobertura</groupId> |
||
363 | <artifactId>cobertura-runtime</artifactId> |
||
364 | <version>${cobertura.version}</version> |
||
365 | <!-- <scope>provided</scope> -->
|
||
366 | <scope>compile</scope> |
||
367 | <type>pom</type> |
||
368 | </dependency>
|
||
369 | </dependencies>
|
||
370 | </plugin>
|
||
371 | <plugin>
|
||
372 | <artifactId>maven-surefire-plugin</artifactId> |
||
373 | <configuration>
|
||
374 | <classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory> |
||
375 | <forkMode>none</forkMode> |
||
376 | </configuration>
|
||
377 | </plugin>
|
||
378 | <plugin>
|
||
379 | <groupId>eviware</groupId> |
||
380 | <artifactId>maven-soapui-plugin</artifactId> |
||
381 | <version>4.5.1</version> |
||
382 | <executions>
|
||
383 | <execution>
|
||
384 | <id>UPassWsTests</id> |
||
385 | <goals>
|
||
386 | <goal>test</goal> |
||
387 | </goals>
|
||
388 | <phase>integration-test</phase> |
||
389 | </execution>
|
||
390 | </executions>
|
||
391 | <configuration>
|
||
392 | <projectFile>${basedir}/test/soap-ui/UPass-soapui-project.xml</projectFile> |
||
393 | <host>localhost</host> |
||
394 | <!-- <port>8080</port> -->
|
||
395 | <port>9090</port> |
||
396 | <outputFolder>${project.build.directory}/surefire-reports</outputFolder> |
||
397 | <junitReport>true</junitReport> |
||
398 | <printReport>false</printReport> |
||
399 | <projectProperties>
|
||
400 | <projectProperty>invokerUsername=UpassAdmin</projectProperty> |
||
401 | <projectProperty>invokerPassword=password</projectProperty> |
||
402 | </projectProperties>
|
||
403 | </configuration>
|
||
404 | </plugin>
|
||
405 | </plugins>
|
||
406 | </build>
|
||
407 | </profile>
|
||
408 | <profile>
|
||
409 | 0:53910be9bd5d | hadi | <id>cobertura-instrument</id> |
410 | <activation>
|
||
411 | <property>
|
||
412 | <name>cobertura-build</name> |
||
413 | </property>
|
||
414 | </activation>
|
||
415 | 41:82f9226695ca | hadi | <properties>
|
416 | <m2u-upass-classifier>instrumented</m2u-upass-classifier> |
||
417 | </properties>
|
||
418 | 0:53910be9bd5d | hadi | <distributionManagement>
|
419 | <snapshotRepository>
|
||
420 | <id>penril.nexus.repo.coverage</id> |
||
421 | <name>Penril Nexus Repo Coverage</name> |
||
422 | <url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots-coverage</url> |
||
423 | </snapshotRepository>
|
||
424 | </distributionManagement>
|
||
425 | <build>
|
||
426 | <plugins>
|
||
427 | <plugin>
|
||
428 | 41:82f9226695ca | hadi | <artifactId>maven-war-plugin</artifactId> |
429 | <configuration>
|
||
430 | <classifier>${m2u-upass-classifier}</classifier> |
||
431 | <packagingExcludes>WEB-INF/lib/m2u-upass-*SNAPSHOT.jar</packagingExcludes> |
||
432 | </configuration>
|
||
433 | </plugin>
|
||
434 | <plugin>
|
||
435 | 0:53910be9bd5d | hadi | <groupId>org.codehaus.mojo</groupId> |
436 | <artifactId>cobertura-maven-plugin</artifactId> |
||
437 | <configuration>
|
||
438 | <formats>
|
||
439 | <format>html</format> |
||
440 | <format>xml</format> |
||
441 | </formats>
|
||
442 | |||
443 | <!-- TODO: To be configured... -->
|
||
444 | <instrumentation>
|
||
445 | <ignores>
|
||
446 | <ignore>com.example.boringcode.*</ignore> |
||
447 | </ignores>
|
||
448 | <excludes>
|
||
449 | <exclude>com/example/dullcode/**/*.class</exclude> |
||
450 | <exclude>com/example/**/*Test.class</exclude> |
||
451 | </excludes>
|
||
452 | </instrumentation>
|
||
453 | |||
454 | <!-- TODO: To be configured... -->
|
||
455 | <check>
|
||
456 | <branchRate>85</branchRate> |
||
457 | <lineRate>85</lineRate> |
||
458 | <haltOnFailure>true</haltOnFailure> |
||
459 | <totalBranchRate>85</totalBranchRate> |
||
460 | <totalLineRate>85</totalLineRate> |
||
461 | <packageLineRate>85</packageLineRate> |
||
462 | <packageBranchRate>85</packageBranchRate> |
||
463 | <regexes>
|
||
464 | <regex>
|
||
465 | <pattern>com.example.reallyimportant.*</pattern> |
||
466 | <branchRate>90</branchRate> |
||
467 | <lineRate>80</lineRate> |
||
468 | </regex>
|
||
469 | <regex>
|
||
470 | <pattern>com.example.boringcode.*</pattern> |
||
471 | <branchRate>40</branchRate> |
||
472 | <lineRate>30</lineRate> |
||
473 | </regex>
|
||
474 | </regexes>
|
||
475 | </check>
|
||
476 | </configuration>
|
||
477 | <executions>
|
||
478 | <execution>
|
||
479 | <id>instrument-code</id> |
||
480 | <phase>process-classes</phase> |
||
481 | <goals>
|
||
482 | <goal>instrument</goal> |
||
483 | </goals>
|
||
484 | <configuration>
|
||
485 | <attach>true</attach> |
||
486 | </configuration>
|
||
487 | </execution>
|
||
488 | </executions>
|
||
489 | </plugin>
|
||
490 | <plugin>
|
||
491 | <artifactId>maven-source-plugin</artifactId> |
||
492 | <executions>
|
||
493 | <execution>
|
||
494 | <id>attach-sources</id> |
||
495 | <goals>
|
||
496 | <goal>jar</goal> |
||
497 | </goals>
|
||
498 | </execution>
|
||
499 | </executions>
|
||
500 | <inherited>true</inherited> |
||
501 | </plugin>
|
||
502 | </plugins>
|
||
503 | </build>
|
||
504 | <dependencies>
|
||
505 | <dependency>
|
||
506 | <groupId>net.sourceforge.cobertura</groupId> |
||
507 | <artifactId>cobertura-runtime</artifactId> |
||
508 | <version>${cobertura.version}</version> |
||
509 | <!-- <scope>provided</scope> -->
|
||
510 | <scope>compile</scope> |
||
511 | <type>pom</type> |
||
512 | </dependency>
|
||
513 | </dependencies>
|
||
514 | </profile>
|
||
515 | <profile>
|
||
516 | <id>custom-war-deploy</id> |
||
517 | <activation>
|
||
518 | <property>
|
||
519 | <name>custom-war-deploy</name> |
||
520 | </property>
|
||
521 | </activation>
|
||
522 | <build>
|
||
523 | <plugins>
|
||
524 | <plugin>
|
||
525 | <artifactId>maven-antrun-plugin</artifactId> |
||
526 | <executions>
|
||
527 | <execution>
|
||
528 | <id>tomcat-deployment</id> |
||
529 | <phase>install</phase> |
||
530 | <configuration>
|
||
531 | <target>
|
||
532 | <!-- <echo>Shutting down the Tomcat</echo> <exec dir="${tomcat.home}/bin"
|
||
533 | executable="${tomcat.home}/bin/shutdown.sh" /> -->
|
||
534 | 53:ea0221651efe | hadi | <copy file="${basedir}/target/${project.artifactId}-${project.version}.war" tofile="${tomcat.home}/webapps/${project.artifactId}.war" |
535 | 0:53910be9bd5d | hadi | overwrite="true" /> |
536 | <!-- <echo>Starting up the Tomcat</echo> <exec dir="${tomcat.home}/bin"
|
||
537 | executable="${tomcat.home}/bin/startup.sh" /> -->
|
||
538 | </target>
|
||
539 | </configuration>
|
||
540 | <goals>
|
||
541 | <goal>run</goal> |
||
542 | </goals>
|
||
543 | </execution>
|
||
544 | </executions>
|
||
545 | </plugin>
|
||
546 | </plugins>
|
||
547 | </build>
|
||
548 | </profile>
|
||
549 | <profile>
|
||
550 | <id>load-test</id> |
||
551 | <build>
|
||
552 | <plugins>
|
||
553 | <plugin>
|
||
554 | <groupId>org.mortbay.jetty</groupId> |
||
555 | <artifactId>maven-jetty-plugin</artifactId> |
||
556 | <configuration>
|
||
557 | <webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory> |
||
558 | <classesDirectory>${project.build.directory}/classes</classesDirectory> |
||
559 | <daemon>true</daemon> |
||
560 | </configuration>
|
||
561 | </plugin>
|
||
562 | <plugin>
|
||
563 | <artifactId>maven-antrun-plugin</artifactId> |
||
564 | <executions>
|
||
565 | <execution>
|
||
566 | <phase>process-resources</phase> |
||
567 | <configuration>
|
||
568 | <target>
|
||
569 | <echo message="Creating a directory required by our JMeter test plan." /> |
||
570 | 26:d47f87ecfdb6 | hadi | <mkdir dir="${basedir}/target/jmeter/responses/add" /> |
571 | <mkdir dir="${basedir}/target/jmeter/responses/auth" /> |
||
572 | 0:53910be9bd5d | hadi | </target>
|
573 | </configuration>
|
||
574 | <goals>
|
||
575 | <goal>run</goal> |
||
576 | </goals>
|
||
577 | </execution>
|
||
578 | </executions>
|
||
579 | 38:346f2a2fb939 | hadi | </plugin>
|
580 | 0:53910be9bd5d | hadi | <plugin>
|
581 | <groupId>org.codehaus.mojo</groupId> |
||
582 | <artifactId>exec-maven-plugin</artifactId> |
||
583 | <configuration>
|
||
584 | <executable>${JMETER_HOME}/bin/jmeter.sh</executable> |
||
585 | <arguments>
|
||
586 | <argument>-n</argument> |
||
587 | <argument>-t</argument> |
||
588 | <argument>${basedir}/test/jmeter/UPass-test-plan.jmx</argument> |
||
589 | <argument>-l</argument> |
||
590 | <argument>${project.build.directory}/jmeter/result.jtl</argument> |
||
591 | <argument>-J</argument> |
||
592 | <argument>jmeter.save.saveservice.output_format=xml</argument> |
||
593 | 18:4ebe1871686b | hadi | <argument>-J</argument> |
594 | <argument>jmeter.save.saveservice.thread_counts=true</argument> |
||
595 | 0:53910be9bd5d | hadi | <argument>-j</argument> |
596 | <argument>${project.build.directory}/jmeter/jmeter.log</argument> |
||
597 | </arguments>
|
||
598 | </configuration>
|
||
599 | </plugin>
|
||
600 | </plugins>
|
||
601 | </build>
|
||
602 | </profile>
|
||
603 | </profiles>
|
||
604 | <dependencies>
|
||
605 | <dependency>
|
||
606 | <groupId>junit</groupId> |
||
607 | <artifactId>junit</artifactId> |
||
608 | <version>3.8.1</version> |
||
609 | <scope>test</scope> |
||
610 | </dependency>
|
||
611 | <dependency>
|
||
612 | <groupId>net.penril</groupId> |
||
613 | 4:6929b881e172 | hadi | <artifactId>m2u-upass-core</artifactId> |
614 | 0:53910be9bd5d | hadi | <version>2.0-SNAPSHOT</version> |
615 | 41:82f9226695ca | hadi | <classifier>${m2u-upass-classifier}</classifier> |
616 | <exclusions>
|
||
617 | <exclusion>
|
||
618 | <groupId>net.penril</groupId> |
||
619 | <artifactId>m2u-upass-min</artifactId> |
||
620 | </exclusion>
|
||
621 | </exclusions>
|
||
622 | </dependency>
|
||
623 | <dependency>
|
||
624 | <groupId>net.penril</groupId> |
||
625 | <artifactId>m2u-upass-min</artifactId> |
||
626 | <version>2.0-SNAPSHOT</version> |
||
627 | <classifier>${m2u-upass-classifier}</classifier> |
||
628 | 0:53910be9bd5d | hadi | </dependency>
|
629 | <dependency>
|
||
630 | <groupId>axis</groupId> |
||
631 | <artifactId>axis</artifactId> |
||
632 | <version>1.4</version> |
||
633 | <type>jar</type> |
||
634 | <scope>compile</scope> |
||
635 | </dependency>
|
||
636 | <dependency>
|
||
637 | <groupId>commons-discovery</groupId> |
||
638 | <artifactId>commons-discovery</artifactId> |
||
639 | <version>0.2</version> |
||
640 | <type>jar</type> |
||
641 | <scope>compile</scope> |
||
642 | </dependency>
|
||
643 | <dependency>
|
||
644 | <groupId>commons-logging</groupId> |
||
645 | <artifactId>commons-logging</artifactId> |
||
646 | <version>1.1.1</version> |
||
647 | <type>jar</type> |
||
648 | <scope>compile</scope> |
||
649 | </dependency>
|
||
650 | <dependency>
|
||
651 | <groupId>wsdl4j</groupId> |
||
652 | <artifactId>wsdl4j</artifactId> |
||
653 | <version>1.6.2</version> |
||
654 | <type>jar</type> |
||
655 | <scope>compile</scope> |
||
656 | </dependency>
|
||
657 | <dependency>
|
||
658 | <groupId>axis</groupId> |
||
659 | <artifactId>axis-jaxrpc</artifactId> |
||
660 | <version>1.4</version> |
||
661 | <scope>compile</scope> |
||
662 | </dependency>
|
||
663 | <dependency>
|
||
664 | <groupId>axis</groupId> |
||
665 | <artifactId>axis-saaj</artifactId> |
||
666 | <version>1.4</version> |
||
667 | <scope>compile</scope> |
||
668 | </dependency>
|
||
669 | <dependency>
|
||
670 | <groupId>commons-io</groupId> |
||
671 | <artifactId>commons-io</artifactId> |
||
672 | <version>1.4</version> |
||
673 | </dependency>
|
||
674 | <dependency>
|
||
675 | <groupId>net.sourceforge.cobertura</groupId> |
||
676 | <artifactId>cobertura-runtime</artifactId> |
||
677 | <version>${cobertura.version}</version> |
||
678 | <!-- <scope>provided</scope> -->
|
||
679 | <scope>test</scope> |
||
680 | <type>pom</type> |
||
681 | </dependency>
|
||
682 | </dependencies>
|
||
683 | </project> |