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