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