Statistics
| Branch: | Revision:

m2u-upass-ws / pom.xml @ 5:beb9556af15a

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