m2u-upass-ws / pom.xml @ 41:82f9226695ca
History | View | Annotate | Download (16.2 KB)
1 |
<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 |
<artifactId>m2u-upass-ws</artifactId> |
8 |
<version>2.0-SNAPSHOT</version> |
9 |
<packaging>war</packaging> |
10 |
<name>M2U UPass Web Services</name> |
11 |
|
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 |
|
20 |
<pluginRepositories>
|
21 |
<pluginRepository>
|
22 |
<id>eviwarePluginRepository</id> |
23 |
<url>http://www.eviware.com/repository/maven2/</url> |
24 |
</pluginRepository>
|
25 |
</pluginRepositories>
|
26 |
|
27 |
<build>
|
28 |
<pluginManagement>
|
29 |
<plugins>
|
30 |
<plugin>
|
31 |
<groupId>org.codehaus.mojo</groupId> |
32 |
<artifactId>cobertura-maven-plugin</artifactId> |
33 |
<version>2.5.1</version> |
34 |
</plugin>
|
35 |
<plugin>
|
36 |
<groupId>org.apache.maven.plugins</groupId> |
37 |
<artifactId>maven-antrun-plugin</artifactId> |
38 |
<version>1.6</version> |
39 |
</plugin>
|
40 |
<plugin>
|
41 |
<groupId>org.mortbay.jetty</groupId> |
42 |
<artifactId>maven-jetty-plugin</artifactId> |
43 |
<version>6.1.16</version> |
44 |
<configuration>
|
45 |
<!-- <stopPort>8005</stopPort> -->
|
46 |
<connectors>
|
47 |
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> |
48 |
<port>9090</port> |
49 |
<maxIdleTime>60000</maxIdleTime> |
50 |
</connector>
|
51 |
</connectors>
|
52 |
<stopPort>9005</stopPort> |
53 |
<stopKey>STOP</stopKey> |
54 |
<contextPath>${project.artifactId}</contextPath> |
55 |
<jettyConfig>target/classes/jetty.xml</jettyConfig> |
56 |
</configuration>
|
57 |
</plugin>
|
58 |
</plugins>
|
59 |
</pluginManagement>
|
60 |
<sourceDirectory>src</sourceDirectory> |
61 |
<resources>
|
62 |
<resource>
|
63 |
<directory>src</directory> |
64 |
<excludes>
|
65 |
<exclude>**/*.java</exclude> |
66 |
</excludes>
|
67 |
</resource>
|
68 |
<resource>
|
69 |
<directory>resources</directory> |
70 |
</resource>
|
71 |
</resources>
|
72 |
<testSourceDirectory>test/java</testSourceDirectory> |
73 |
<testResources>
|
74 |
<testResource>
|
75 |
<directory>test/resources</directory> |
76 |
</testResource>
|
77 |
</testResources>
|
78 |
<plugins>
|
79 |
<plugin>
|
80 |
<groupId>org.apache.maven.plugins</groupId> |
81 |
<artifactId>maven-war-plugin</artifactId> |
82 |
<version>2.1.1</version> |
83 |
<configuration>
|
84 |
<warSourceDirectory>${basedir}/WebContent</warSourceDirectory> |
85 |
</configuration>
|
86 |
</plugin>
|
87 |
<plugin>
|
88 |
<groupId>org.apache.maven.plugins</groupId> |
89 |
<artifactId>maven-compiler-plugin</artifactId> |
90 |
<version>2.3.2</version> |
91 |
<configuration>
|
92 |
<source>1.5</source> |
93 |
<target>1.5</target> |
94 |
</configuration>
|
95 |
</plugin>
|
96 |
<plugin>
|
97 |
<artifactId>maven-antrun-plugin</artifactId> |
98 |
<executions>
|
99 |
<execution>
|
100 |
<id>env-config</id> |
101 |
<phase>process-resources</phase> |
102 |
<configuration>
|
103 |
<target>
|
104 |
<delete file="${project.build.outputDirectory}/log4j.xml" /> |
105 |
<copy file="resources/log4j${config.postfix}.xml" tofile="${project.build.outputDirectory}/log4j.xml" /> |
106 |
|
107 |
<delete>
|
108 |
<fileset dir="${project.build.outputDirectory}" |
109 |
includes="log4j.*.xml" /> |
110 |
</delete>
|
111 |
</target>
|
112 |
</configuration>
|
113 |
<goals>
|
114 |
<goal>run</goal> |
115 |
</goals>
|
116 |
</execution>
|
117 |
</executions>
|
118 |
</plugin>
|
119 |
<plugin>
|
120 |
<artifactId>maven-failsafe-plugin</artifactId> |
121 |
<version>2.6</version> |
122 |
<executions>
|
123 |
<execution>
|
124 |
<goals>
|
125 |
<goal>integration-test</goal> |
126 |
<goal>verify</goal> |
127 |
</goals>
|
128 |
</execution>
|
129 |
</executions>
|
130 |
<dependencies>
|
131 |
<dependency>
|
132 |
<groupId>net.sourceforge.cobertura</groupId> |
133 |
<artifactId>cobertura-runtime</artifactId> |
134 |
<version>${cobertura.version}</version> |
135 |
<!-- <scope>provided</scope> -->
|
136 |
<scope>compile</scope> |
137 |
<type>pom</type> |
138 |
</dependency>
|
139 |
</dependencies>
|
140 |
</plugin>
|
141 |
</plugins>
|
142 |
</build>
|
143 |
<profiles>
|
144 |
<profile>
|
145 |
<id>env-dev-penril</id> |
146 |
<activation>
|
147 |
<property>
|
148 |
<name>env</name> |
149 |
<value>dev-penril</value> |
150 |
</property>
|
151 |
</activation>
|
152 |
<distributionManagement>
|
153 |
<snapshotRepository>
|
154 |
<id>penril.nexus.repo</id> |
155 |
<name>Penril Nexus Repo</name> |
156 |
<url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots</url> |
157 |
</snapshotRepository>
|
158 |
</distributionManagement>
|
159 |
<properties>
|
160 |
<config.postfix>.dev-penril</config.postfix> |
161 |
</properties>
|
162 |
</profile>
|
163 |
<profile>
|
164 |
<id>env-staging-ci</id> |
165 |
<activation>
|
166 |
<property>
|
167 |
<name>env</name> |
168 |
<value>staging-ci</value> |
169 |
</property>
|
170 |
</activation>
|
171 |
<distributionManagement>
|
172 |
<snapshotRepository>
|
173 |
<id>penril.nexus.repo.coverage</id> |
174 |
<name>Penril Nexus Repo (Coverage)</name> |
175 |
<url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots-coverage</url> |
176 |
</snapshotRepository>
|
177 |
</distributionManagement>
|
178 |
<properties>
|
179 |
<config.postfix>.staging-ci</config.postfix> |
180 |
</properties>
|
181 |
<repositories>
|
182 |
<repository>
|
183 |
<id>nexus-penril-coverage</id> |
184 |
<name>Penril's Maven Repository for Code Coverage</name> |
185 |
<url>http://staging.penril.net:8080/nexus/content/repositories/snapshots-coverage</url> |
186 |
<layout>default</layout> |
187 |
</repository>
|
188 |
</repositories>
|
189 |
<build>
|
190 |
<plugins>
|
191 |
<plugin>
|
192 |
<groupId>org.mortbay.jetty</groupId> |
193 |
<artifactId>maven-jetty-plugin</artifactId> |
194 |
<configuration>
|
195 |
<webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory> |
196 |
<classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory> |
197 |
<!-- <webApp>${project.build.directory}/${project.artifactId}-instrument.${project.packaging}</webApp> -->
|
198 |
</configuration>
|
199 |
<executions>
|
200 |
<execution>
|
201 |
<id>start-jetty</id> |
202 |
<phase>pre-integration-test</phase> |
203 |
<goals>
|
204 |
<goal>run</goal> |
205 |
</goals>
|
206 |
<configuration>
|
207 |
<scanIntervalSeconds>0</scanIntervalSeconds> |
208 |
<daemon>true</daemon> |
209 |
</configuration>
|
210 |
</execution>
|
211 |
<execution>
|
212 |
<id>stop-jetty</id> |
213 |
<phase>post-integration-test</phase> |
214 |
<goals>
|
215 |
<goal>stop</goal> |
216 |
</goals>
|
217 |
</execution>
|
218 |
</executions>
|
219 |
<dependencies>
|
220 |
<dependency>
|
221 |
<groupId>net.sourceforge.cobertura</groupId> |
222 |
<artifactId>cobertura-runtime</artifactId> |
223 |
<version>${cobertura.version}</version> |
224 |
<!-- <scope>provided</scope> -->
|
225 |
<scope>compile</scope> |
226 |
<type>pom</type> |
227 |
</dependency>
|
228 |
</dependencies>
|
229 |
</plugin>
|
230 |
<plugin>
|
231 |
<artifactId>maven-surefire-plugin</artifactId> |
232 |
<configuration>
|
233 |
<classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory> |
234 |
<forkMode>none</forkMode> |
235 |
</configuration>
|
236 |
</plugin>
|
237 |
<plugin>
|
238 |
<groupId>eviware</groupId> |
239 |
<artifactId>maven-soapui-plugin</artifactId> |
240 |
<version>4.5.1</version> |
241 |
<executions>
|
242 |
<execution>
|
243 |
<id>UPassWsTests</id> |
244 |
<goals>
|
245 |
<goal>test</goal> |
246 |
</goals>
|
247 |
<phase>integration-test</phase> |
248 |
</execution>
|
249 |
</executions>
|
250 |
<configuration>
|
251 |
<projectFile>${basedir}/test/soap-ui/UPass-soapui-project.xml</projectFile> |
252 |
<host>localhost</host> |
253 |
<!-- <port>8080</port> -->
|
254 |
<port>9090</port> |
255 |
<outputFolder>${project.build.directory}/surefire-reports</outputFolder> |
256 |
<junitReport>true</junitReport> |
257 |
<printReport>false</printReport> |
258 |
<projectProperties>
|
259 |
<projectProperty>invokerUsername=UpassAdmin</projectProperty> |
260 |
<projectProperty>invokerPassword=password</projectProperty> |
261 |
</projectProperties>
|
262 |
</configuration>
|
263 |
</plugin>
|
264 |
</plugins>
|
265 |
</build>
|
266 |
</profile>
|
267 |
<profile>
|
268 |
<id>cobertura-instrument</id> |
269 |
<activation>
|
270 |
<property>
|
271 |
<name>cobertura-build</name> |
272 |
</property>
|
273 |
</activation>
|
274 |
<properties>
|
275 |
<m2u-upass-classifier>instrumented</m2u-upass-classifier> |
276 |
</properties>
|
277 |
<distributionManagement>
|
278 |
<snapshotRepository>
|
279 |
<id>penril.nexus.repo.coverage</id> |
280 |
<name>Penril Nexus Repo Coverage</name> |
281 |
<url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots-coverage</url> |
282 |
</snapshotRepository>
|
283 |
</distributionManagement>
|
284 |
<build>
|
285 |
<plugins>
|
286 |
<plugin>
|
287 |
<artifactId>maven-war-plugin</artifactId> |
288 |
<configuration>
|
289 |
<classifier>${m2u-upass-classifier}</classifier> |
290 |
<packagingExcludes>WEB-INF/lib/m2u-upass-*SNAPSHOT.jar</packagingExcludes> |
291 |
</configuration>
|
292 |
</plugin>
|
293 |
<plugin>
|
294 |
<groupId>org.codehaus.mojo</groupId> |
295 |
<artifactId>cobertura-maven-plugin</artifactId> |
296 |
<configuration>
|
297 |
<formats>
|
298 |
<format>html</format> |
299 |
<format>xml</format> |
300 |
</formats>
|
301 |
|
302 |
<!-- TODO: To be configured... -->
|
303 |
<instrumentation>
|
304 |
<ignores>
|
305 |
<ignore>com.example.boringcode.*</ignore> |
306 |
</ignores>
|
307 |
<excludes>
|
308 |
<exclude>com/example/dullcode/**/*.class</exclude> |
309 |
<exclude>com/example/**/*Test.class</exclude> |
310 |
</excludes>
|
311 |
</instrumentation>
|
312 |
|
313 |
<!-- TODO: To be configured... -->
|
314 |
<check>
|
315 |
<branchRate>85</branchRate> |
316 |
<lineRate>85</lineRate> |
317 |
<haltOnFailure>true</haltOnFailure> |
318 |
<totalBranchRate>85</totalBranchRate> |
319 |
<totalLineRate>85</totalLineRate> |
320 |
<packageLineRate>85</packageLineRate> |
321 |
<packageBranchRate>85</packageBranchRate> |
322 |
<regexes>
|
323 |
<regex>
|
324 |
<pattern>com.example.reallyimportant.*</pattern> |
325 |
<branchRate>90</branchRate> |
326 |
<lineRate>80</lineRate> |
327 |
</regex>
|
328 |
<regex>
|
329 |
<pattern>com.example.boringcode.*</pattern> |
330 |
<branchRate>40</branchRate> |
331 |
<lineRate>30</lineRate> |
332 |
</regex>
|
333 |
</regexes>
|
334 |
</check>
|
335 |
</configuration>
|
336 |
<executions>
|
337 |
<execution>
|
338 |
<id>instrument-code</id> |
339 |
<phase>process-classes</phase> |
340 |
<goals>
|
341 |
<goal>instrument</goal> |
342 |
</goals>
|
343 |
<configuration>
|
344 |
<attach>true</attach> |
345 |
</configuration>
|
346 |
</execution>
|
347 |
</executions>
|
348 |
</plugin>
|
349 |
<plugin>
|
350 |
<artifactId>maven-source-plugin</artifactId> |
351 |
<executions>
|
352 |
<execution>
|
353 |
<id>attach-sources</id> |
354 |
<goals>
|
355 |
<goal>jar</goal> |
356 |
</goals>
|
357 |
</execution>
|
358 |
</executions>
|
359 |
<inherited>true</inherited> |
360 |
</plugin>
|
361 |
</plugins>
|
362 |
</build>
|
363 |
<dependencies>
|
364 |
<dependency>
|
365 |
<groupId>net.sourceforge.cobertura</groupId> |
366 |
<artifactId>cobertura-runtime</artifactId> |
367 |
<version>${cobertura.version}</version> |
368 |
<!-- <scope>provided</scope> -->
|
369 |
<scope>compile</scope> |
370 |
<type>pom</type> |
371 |
</dependency>
|
372 |
<!-- <dependency> <groupId>net.penril</groupId> <artifactId>m2u-upass-min</artifactId>
|
373 |
<classifier>${m2u-upass-classifier}</classifier> <version>2.0-SNAPSHOT</version>
|
374 |
<type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupId>net.penril</groupId>
|
375 |
<artifactId>m2u-upass-core</artifactId> <classifier>${m2u-upass-classifier}</classifier>
|
376 |
<version>2.0-SNAPSHOT</version> <type>jar</type> <scope>compile</scope> </dependency> -->
|
377 |
</dependencies>
|
378 |
</profile>
|
379 |
<profile>
|
380 |
<id>custom-war-deploy</id> |
381 |
<activation>
|
382 |
<property>
|
383 |
<name>custom-war-deploy</name> |
384 |
</property>
|
385 |
</activation>
|
386 |
<build>
|
387 |
<plugins>
|
388 |
<plugin>
|
389 |
<artifactId>maven-antrun-plugin</artifactId> |
390 |
<executions>
|
391 |
<execution>
|
392 |
<id>tomcat-deployment</id> |
393 |
<phase>install</phase> |
394 |
<configuration>
|
395 |
<target>
|
396 |
<!-- <echo>Shutting down the Tomcat</echo> <exec dir="${tomcat.home}/bin"
|
397 |
executable="${tomcat.home}/bin/shutdown.sh" /> -->
|
398 |
<copy
|
399 |
file="${basedir}/target/${project.artifactId}-${project.version}.war" |
400 |
tofile="${tomcat.home}/webapps/${project.artifactId}.war" |
401 |
overwrite="true" /> |
402 |
<!-- <echo>Starting up the Tomcat</echo> <exec dir="${tomcat.home}/bin"
|
403 |
executable="${tomcat.home}/bin/startup.sh" /> -->
|
404 |
</target>
|
405 |
</configuration>
|
406 |
<goals>
|
407 |
<goal>run</goal> |
408 |
</goals>
|
409 |
</execution>
|
410 |
</executions>
|
411 |
</plugin>
|
412 |
</plugins>
|
413 |
</build>
|
414 |
</profile>
|
415 |
<profile>
|
416 |
<id>load-test</id> |
417 |
<build>
|
418 |
<plugins>
|
419 |
<plugin>
|
420 |
<groupId>org.mortbay.jetty</groupId> |
421 |
<artifactId>maven-jetty-plugin</artifactId> |
422 |
<configuration>
|
423 |
<webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory> |
424 |
<classesDirectory>${project.build.directory}/classes</classesDirectory> |
425 |
<daemon>true</daemon> |
426 |
</configuration>
|
427 |
</plugin>
|
428 |
<plugin>
|
429 |
<artifactId>maven-antrun-plugin</artifactId> |
430 |
<executions>
|
431 |
<execution>
|
432 |
<phase>process-resources</phase> |
433 |
<configuration>
|
434 |
<target>
|
435 |
<echo message="Creating a directory required by our JMeter test plan." /> |
436 |
<mkdir dir="${basedir}/target/jmeter/responses/add" /> |
437 |
<mkdir dir="${basedir}/target/jmeter/responses/auth" /> |
438 |
</target>
|
439 |
</configuration>
|
440 |
<goals>
|
441 |
<goal>run</goal> |
442 |
</goals>
|
443 |
</execution>
|
444 |
</executions>
|
445 |
</plugin>
|
446 |
<plugin>
|
447 |
<groupId>org.codehaus.mojo</groupId> |
448 |
<artifactId>exec-maven-plugin</artifactId> |
449 |
<configuration>
|
450 |
<executable>${JMETER_HOME}/bin/jmeter.sh</executable> |
451 |
<arguments>
|
452 |
<argument>-n</argument> |
453 |
<argument>-t</argument> |
454 |
<argument>${basedir}/test/jmeter/UPass-test-plan.jmx</argument> |
455 |
<argument>-l</argument> |
456 |
<argument>${project.build.directory}/jmeter/result.jtl</argument> |
457 |
<argument>-J</argument> |
458 |
<argument>jmeter.save.saveservice.output_format=xml</argument> |
459 |
<argument>-J</argument> |
460 |
<argument>jmeter.save.saveservice.thread_counts=true</argument> |
461 |
<argument>-j</argument> |
462 |
<argument>${project.build.directory}/jmeter/jmeter.log</argument> |
463 |
</arguments>
|
464 |
</configuration>
|
465 |
</plugin>
|
466 |
</plugins>
|
467 |
</build>
|
468 |
</profile>
|
469 |
</profiles>
|
470 |
<dependencies>
|
471 |
<dependency>
|
472 |
<groupId>junit</groupId> |
473 |
<artifactId>junit</artifactId> |
474 |
<version>3.8.1</version> |
475 |
<scope>test</scope> |
476 |
</dependency>
|
477 |
<dependency>
|
478 |
<groupId>net.penril</groupId> |
479 |
<artifactId>m2u-upass-core</artifactId> |
480 |
<version>2.0-SNAPSHOT</version> |
481 |
<classifier>${m2u-upass-classifier}</classifier> |
482 |
<exclusions>
|
483 |
<exclusion>
|
484 |
<groupId>net.penril</groupId> |
485 |
<artifactId>m2u-upass-min</artifactId> |
486 |
</exclusion>
|
487 |
</exclusions>
|
488 |
</dependency>
|
489 |
<dependency>
|
490 |
<groupId>net.penril</groupId> |
491 |
<artifactId>m2u-upass-min</artifactId> |
492 |
<version>2.0-SNAPSHOT</version> |
493 |
<classifier>${m2u-upass-classifier}</classifier> |
494 |
</dependency>
|
495 |
<dependency>
|
496 |
<groupId>axis</groupId> |
497 |
<artifactId>axis</artifactId> |
498 |
<version>1.4</version> |
499 |
<type>jar</type> |
500 |
<scope>compile</scope> |
501 |
</dependency>
|
502 |
<dependency>
|
503 |
<groupId>commons-discovery</groupId> |
504 |
<artifactId>commons-discovery</artifactId> |
505 |
<version>0.2</version> |
506 |
<type>jar</type> |
507 |
<scope>compile</scope> |
508 |
</dependency>
|
509 |
<dependency>
|
510 |
<groupId>commons-logging</groupId> |
511 |
<artifactId>commons-logging</artifactId> |
512 |
<version>1.1.1</version> |
513 |
<type>jar</type> |
514 |
<scope>compile</scope> |
515 |
</dependency>
|
516 |
<dependency>
|
517 |
<groupId>wsdl4j</groupId> |
518 |
<artifactId>wsdl4j</artifactId> |
519 |
<version>1.6.2</version> |
520 |
<type>jar</type> |
521 |
<scope>compile</scope> |
522 |
</dependency>
|
523 |
<dependency>
|
524 |
<groupId>axis</groupId> |
525 |
<artifactId>axis-jaxrpc</artifactId> |
526 |
<version>1.4</version> |
527 |
<scope>compile</scope> |
528 |
</dependency>
|
529 |
<dependency>
|
530 |
<groupId>axis</groupId> |
531 |
<artifactId>axis-saaj</artifactId> |
532 |
<version>1.4</version> |
533 |
<scope>compile</scope> |
534 |
</dependency>
|
535 |
<dependency>
|
536 |
<groupId>commons-io</groupId> |
537 |
<artifactId>commons-io</artifactId> |
538 |
<version>1.4</version> |
539 |
</dependency>
|
540 |
<dependency>
|
541 |
<groupId>net.sourceforge.cobertura</groupId> |
542 |
<artifactId>cobertura-runtime</artifactId> |
543 |
<version>${cobertura.version}</version> |
544 |
<!-- <scope>provided</scope> -->
|
545 |
<scope>test</scope> |
546 |
<type>pom</type> |
547 |
</dependency>
|
548 |
</dependencies>
|
549 |
</project>
|