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