Statistics
| Branch: | Revision:

m2u-upass-ws / pom.xml @ 42:bc281010aa2b

History | View | Annotate | Download (15.6 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
        <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
                <m2u-upass-classifier></m2u-upass-classifier>
17
        </properties>
18
        <pluginRepositories>
19
                <pluginRepository>
20
                        <id>eviwarePluginRepository</id>
21
                        <url>http://www.eviware.com/repository/maven2/</url>
22
                </pluginRepository>
23
        </pluginRepositories>
24
        <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
                </snapshotRepository>
30
        </distributionManagement>
31
        <build>
32
                <pluginManagement>
33
                        <plugins>
34
                                <plugin>
35
                                        <groupId>org.codehaus.mojo</groupId>
36
                                        <artifactId>cobertura-maven-plugin</artifactId>
37
                                        <version>2.5.1</version>
38
                                </plugin>
39
                                <plugin>
40
                                        <groupId>org.apache.maven.plugins</groupId>
41
                                        <artifactId>maven-antrun-plugin</artifactId>
42
                                        <version>1.6</version>
43
                                </plugin>
44
                                <plugin>
45
                                        <groupId>org.mortbay.jetty</groupId>
46
                                        <artifactId>maven-jetty-plugin</artifactId>
47
                                        <version>6.1.16</version>
48
                                        <configuration>
49
                                                <!-- <stopPort>8005</stopPort> -->
50
                                                <connectors>
51
                                                        <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
52
                                                                <port>9090</port>
53
                                                                <maxIdleTime>60000</maxIdleTime>
54
                                                        </connector>
55
                                                </connectors>
56
                                                <stopPort>9005</stopPort>
57
                                                <stopKey>STOP</stopKey>
58
                                                <contextPath>${project.artifactId}</contextPath>
59
                                                <jettyConfig>target/classes/jetty.xml</jettyConfig>
60
                                        </configuration>
61
                                </plugin>
62
                        </plugins>
63
                </pluginManagement>
64
                <sourceDirectory>src</sourceDirectory>
65
                <resources>
66
                        <resource>
67
                                <directory>src</directory>
68
                                <excludes>
69
                                        <exclude>**/*.java</exclude>
70
                                </excludes>
71
                        </resource>
72
                        <resource>
73
                                <directory>resources</directory>
74
                        </resource>
75
                </resources>
76
                <testSourceDirectory>test/java</testSourceDirectory>
77
                <testResources>
78
                        <testResource>
79
                                <directory>test/resources</directory>
80
                        </testResource>
81
                </testResources>
82
                <plugins>
83
                        <plugin>
84
                                <groupId>org.apache.maven.plugins</groupId>
85
                                <artifactId>maven-war-plugin</artifactId>
86
                                <version>2.1.1</version>
87
                                <configuration>
88
                                        <warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
89
                                </configuration>
90
                        </plugin>
91
                        <plugin>
92
                                <groupId>org.apache.maven.plugins</groupId>
93
                                <artifactId>maven-compiler-plugin</artifactId>
94
                                <version>2.3.2</version>
95
                                <configuration>
96
                                        <source>1.5</source>
97
                                        <target>1.5</target>
98
                                </configuration>
99
                        </plugin>
100
                        <plugin>
101
                                <artifactId>maven-antrun-plugin</artifactId>
102
                                <executions>
103
                                        <execution>
104
                                                <id>env-config</id>
105
                                                <phase>process-resources</phase>
106
                                                <configuration>
107
                                                        <target>
108
                                                                <delete file="${project.build.outputDirectory}/log4j.xml" />
109
                                                                <copy file="resources/log4j${config.postfix}.xml" tofile="${project.build.outputDirectory}/log4j.xml" />
110

    
111
                                                                <delete>
112
                                                                        <fileset dir="${project.build.outputDirectory}"
113
                                                                                includes="log4j.*.xml" />
114
                                                                </delete>
115
                                                        </target>
116
                                                </configuration>
117
                                                <goals>
118
                                                        <goal>run</goal>
119
                                                </goals>
120
                                        </execution>
121
                                </executions>
122
                        </plugin>
123
                        <plugin>
124
                                <artifactId>maven-failsafe-plugin</artifactId>
125
                                <version>2.6</version>
126
                                <executions>
127
                                        <execution>
128
                                                <goals>
129
                                                        <goal>integration-test</goal>
130
                                                        <goal>verify</goal>
131
                                                </goals>
132
                                        </execution>
133
                                </executions>
134
                                <dependencies>
135
                                        <dependency>
136
                                                <groupId>net.sourceforge.cobertura</groupId>
137
                                                <artifactId>cobertura-runtime</artifactId>
138
                                                <version>${cobertura.version}</version>
139
                                                <!-- <scope>provided</scope> -->
140
                                                <scope>compile</scope>
141
                                                <type>pom</type>
142
                                        </dependency>
143
                                </dependencies>
144
                        </plugin>
145
                </plugins>
146
        </build>
147
        <profiles>
148
                <profile>
149
                        <id>env-dev-penril</id>
150
                        <activation>
151
                                <property>
152
                                        <name>env</name>
153
                                        <value>dev-penril</value>
154
                                </property>
155
                        </activation>
156
                        <properties>
157
                                <config.postfix>.dev-penril</config.postfix>
158
                        </properties>
159
                </profile>
160
                <profile>
161
                        <id>env-staging-ci</id>
162
                        <activation>
163
                                <property>
164
                                        <name>env</name>
165
                                        <value>staging-ci</value>
166
                                </property>
167
                        </activation>
168
                        <properties>
169
                                <config.postfix>.staging-ci</config.postfix>
170
                        </properties>
171
                        <build>
172
                                <plugins>
173
                                        <plugin>
174
                                                <groupId>org.mortbay.jetty</groupId>
175
                                                <artifactId>maven-jetty-plugin</artifactId>
176
                                                <configuration>
177
                                                        <webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory>
178
                                                        <classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
179
                                                        <!-- <webApp>${project.build.directory}/${project.artifactId}-instrument.${project.packaging}</webApp> -->
180
                                                </configuration>
181
                                                <executions>
182
                                                        <execution>
183
                                                                <id>start-jetty</id>
184
                                                                <phase>pre-integration-test</phase>
185
                                                                <goals>
186
                                                                        <goal>run</goal>
187
                                                                </goals>
188
                                                                <configuration>
189
                                                                        <scanIntervalSeconds>0</scanIntervalSeconds>
190
                                                                        <daemon>true</daemon>
191
                                                                </configuration>
192
                                                        </execution>
193
                                                        <execution>
194
                                                                <id>stop-jetty</id>
195
                                                                <phase>post-integration-test</phase>
196
                                                                <goals>
197
                                                                        <goal>stop</goal>
198
                                                                </goals>
199
                                                        </execution>
200
                                                </executions>
201
                                                <dependencies>
202
                                                        <dependency>
203
                                                                <groupId>net.sourceforge.cobertura</groupId>
204
                                                                <artifactId>cobertura-runtime</artifactId>
205
                                                                <version>${cobertura.version}</version>
206
                                                                <!-- <scope>provided</scope> -->
207
                                                                <scope>compile</scope>
208
                                                                <type>pom</type>
209
                                                        </dependency>
210
                                                </dependencies>
211
                                        </plugin>
212
                                        <plugin>
213
                                                <artifactId>maven-surefire-plugin</artifactId>
214
                                                <configuration>
215
                                                        <classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
216
                                                        <forkMode>none</forkMode>
217
                                                </configuration>
218
                                        </plugin>
219
                                        <plugin>
220
                                                <groupId>eviware</groupId>
221
                                                <artifactId>maven-soapui-plugin</artifactId>
222
                                                <version>4.5.1</version>
223
                                                <executions>
224
                                                        <execution>
225
                                                                <id>UPassWsTests</id>
226
                                                                <goals>
227
                                                                        <goal>test</goal>
228
                                                                </goals>
229
                                                                <phase>integration-test</phase>
230
                                                        </execution>
231
                                                </executions>
232
                                                <configuration>
233
                                                        <projectFile>${basedir}/test/soap-ui/UPass-soapui-project.xml</projectFile>
234
                                                        <host>localhost</host>
235
                                                        <!-- <port>8080</port> -->
236
                                                        <port>9090</port>
237
                                                        <outputFolder>${project.build.directory}/surefire-reports</outputFolder>
238
                                                        <junitReport>true</junitReport>
239
                                                        <printReport>false</printReport>
240
                                                        <projectProperties>
241
                                                                <projectProperty>invokerUsername=UpassAdmin</projectProperty>
242
                                                                <projectProperty>invokerPassword=password</projectProperty>
243
                                                        </projectProperties>
244
                                                </configuration>
245
                                        </plugin>
246
                                </plugins>
247
                        </build>
248
                </profile>
249
                <profile>
250
                        <id>cobertura-instrument</id>
251
                        <activation>
252
                                <property>
253
                                        <name>cobertura-build</name>
254
                                </property>
255
                        </activation>
256
                        <properties>
257
                                <m2u-upass-classifier>instrumented</m2u-upass-classifier>
258
                        </properties>
259
                        <distributionManagement>
260
                                <snapshotRepository>
261
                                        <id>penril.nexus.repo.coverage</id>
262
                                        <name>Penril Nexus Repo Coverage</name>
263
                                        <url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots-coverage</url>
264
                                </snapshotRepository>
265
                        </distributionManagement>
266
                        <build>
267
                                <plugins>
268
                                        <plugin>
269
                                                <artifactId>maven-war-plugin</artifactId>
270
                                                <configuration>
271
                                                        <classifier>${m2u-upass-classifier}</classifier>
272
                                                        <packagingExcludes>WEB-INF/lib/m2u-upass-*SNAPSHOT.jar</packagingExcludes>
273
                                                </configuration>
274
                                        </plugin>
275
                                        <plugin>
276
                                                <groupId>org.codehaus.mojo</groupId>
277
                                                <artifactId>cobertura-maven-plugin</artifactId>
278
                                                <configuration>
279
                                                        <formats>
280
                                                                <format>html</format>
281
                                                                <format>xml</format>
282
                                                        </formats>
283

    
284
                                                        <!-- TODO: To be configured... -->
285
                                                        <instrumentation>
286
                                                                <ignores>
287
                                                                        <ignore>com.example.boringcode.*</ignore>
288
                                                                </ignores>
289
                                                                <excludes>
290
                                                                        <exclude>com/example/dullcode/**/*.class</exclude>
291
                                                                        <exclude>com/example/**/*Test.class</exclude>
292
                                                                </excludes>
293
                                                        </instrumentation>
294

    
295
                                                        <!-- TODO: To be configured... -->
296
                                                        <check>
297
                                                                <branchRate>85</branchRate>
298
                                                                <lineRate>85</lineRate>
299
                                                                <haltOnFailure>true</haltOnFailure>
300
                                                                <totalBranchRate>85</totalBranchRate>
301
                                                                <totalLineRate>85</totalLineRate>
302
                                                                <packageLineRate>85</packageLineRate>
303
                                                                <packageBranchRate>85</packageBranchRate>
304
                                                                <regexes>
305
                                                                        <regex>
306
                                                                                <pattern>com.example.reallyimportant.*</pattern>
307
                                                                                <branchRate>90</branchRate>
308
                                                                                <lineRate>80</lineRate>
309
                                                                        </regex>
310
                                                                        <regex>
311
                                                                                <pattern>com.example.boringcode.*</pattern>
312
                                                                                <branchRate>40</branchRate>
313
                                                                                <lineRate>30</lineRate>
314
                                                                        </regex>
315
                                                                </regexes>
316
                                                        </check>
317
                                                </configuration>
318
                                                <executions>
319
                                                        <execution>
320
                                                                <id>instrument-code</id>
321
                                                                <phase>process-classes</phase>
322
                                                                <goals>
323
                                                                        <goal>instrument</goal>
324
                                                                </goals>
325
                                                                <configuration>
326
                                                                        <attach>true</attach>
327
                                                                </configuration>
328
                                                        </execution>
329
                                                </executions>
330
                                        </plugin>
331
                                        <plugin>
332
                                                <artifactId>maven-source-plugin</artifactId>
333
                                                <executions>
334
                                                        <execution>
335
                                                                <id>attach-sources</id>
336
                                                                <goals>
337
                                                                        <goal>jar</goal>
338
                                                                </goals>
339
                                                        </execution>
340
                                                </executions>
341
                                                <inherited>true</inherited>
342
                                        </plugin>
343
                                </plugins>
344
                        </build>
345
                        <dependencies>
346
                                <dependency>
347
                                        <groupId>net.sourceforge.cobertura</groupId>
348
                                        <artifactId>cobertura-runtime</artifactId>
349
                                        <version>${cobertura.version}</version>
350
                                        <!-- <scope>provided</scope> -->
351
                                        <scope>compile</scope>
352
                                        <type>pom</type>
353
                                </dependency>
354
                                <!-- <dependency> <groupId>net.penril</groupId> <artifactId>m2u-upass-min</artifactId> 
355
                                        <classifier>${m2u-upass-classifier}</classifier> <version>2.0-SNAPSHOT</version> 
356
                                        <type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupId>net.penril</groupId> 
357
                                        <artifactId>m2u-upass-core</artifactId> <classifier>${m2u-upass-classifier}</classifier> 
358
                                        <version>2.0-SNAPSHOT</version> <type>jar</type> <scope>compile</scope> </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/add" />
419
                                                                                <mkdir dir="${basedir}/target/jmeter/responses/auth" />
420
                                                                        </target>
421
                                                                </configuration>
422
                                                                <goals>
423
                                                                        <goal>run</goal>
424
                                                                </goals>
425
                                                        </execution>
426
                                                </executions>
427
                                        </plugin>
428
                                        <plugin>
429
                                                <groupId>org.codehaus.mojo</groupId>
430
                                                <artifactId>exec-maven-plugin</artifactId>
431
                                                <configuration>
432
                                                        <executable>${JMETER_HOME}/bin/jmeter.sh</executable>
433
                                                        <arguments>
434
                                                                <argument>-n</argument>
435
                                                                <argument>-t</argument>
436
                                                                <argument>${basedir}/test/jmeter/UPass-test-plan.jmx</argument>
437
                                                                <argument>-l</argument>
438
                                                                <argument>${project.build.directory}/jmeter/result.jtl</argument>
439
                                                                <argument>-J</argument>
440
                                                                <argument>jmeter.save.saveservice.output_format=xml</argument>
441
                                                                <argument>-J</argument>
442
                                                                <argument>jmeter.save.saveservice.thread_counts=true</argument>
443
                                                                <argument>-j</argument>
444
                                                                <argument>${project.build.directory}/jmeter/jmeter.log</argument>
445
                                                        </arguments>
446
                                                </configuration>
447
                                        </plugin>
448
                                </plugins>
449
                        </build>
450
                </profile>
451
        </profiles>
452
        <dependencies>
453
                <dependency>
454
                        <groupId>junit</groupId>
455
                        <artifactId>junit</artifactId>
456
                        <version>3.8.1</version>
457
                        <scope>test</scope>
458
                </dependency>
459
                <dependency>
460
                        <groupId>net.penril</groupId>
461
                        <artifactId>m2u-upass-core</artifactId>
462
                        <version>2.0-SNAPSHOT</version>
463
                        <classifier>${m2u-upass-classifier}</classifier>
464
                        <exclusions>
465
                                <exclusion>
466
                                        <groupId>net.penril</groupId>
467
                                        <artifactId>m2u-upass-min</artifactId>
468
                                </exclusion>
469
                        </exclusions>
470
                </dependency>
471
                <dependency>
472
                        <groupId>net.penril</groupId>
473
                        <artifactId>m2u-upass-min</artifactId>
474
                        <version>2.0-SNAPSHOT</version>
475
                        <classifier>${m2u-upass-classifier}</classifier>
476
                </dependency>
477
                <dependency>
478
                        <groupId>axis</groupId>
479
                        <artifactId>axis</artifactId>
480
                        <version>1.4</version>
481
                        <type>jar</type>
482
                        <scope>compile</scope>
483
                </dependency>
484
                <dependency>
485
                        <groupId>commons-discovery</groupId>
486
                        <artifactId>commons-discovery</artifactId>
487
                        <version>0.2</version>
488
                        <type>jar</type>
489
                        <scope>compile</scope>
490
                </dependency>
491
                <dependency>
492
                        <groupId>commons-logging</groupId>
493
                        <artifactId>commons-logging</artifactId>
494
                        <version>1.1.1</version>
495
                        <type>jar</type>
496
                        <scope>compile</scope>
497
                </dependency>
498
                <dependency>
499
                        <groupId>wsdl4j</groupId>
500
                        <artifactId>wsdl4j</artifactId>
501
                        <version>1.6.2</version>
502
                        <type>jar</type>
503
                        <scope>compile</scope>
504
                </dependency>
505
                <dependency>
506
                        <groupId>axis</groupId>
507
                        <artifactId>axis-jaxrpc</artifactId>
508
                        <version>1.4</version>
509
                        <scope>compile</scope>
510
                </dependency>
511
                <dependency>
512
                        <groupId>axis</groupId>
513
                        <artifactId>axis-saaj</artifactId>
514
                        <version>1.4</version>
515
                        <scope>compile</scope>
516
                </dependency>
517
                <dependency>
518
                        <groupId>commons-io</groupId>
519
                        <artifactId>commons-io</artifactId>
520
                        <version>1.4</version>
521
                </dependency>
522
                <dependency>
523
                        <groupId>net.sourceforge.cobertura</groupId>
524
                        <artifactId>cobertura-runtime</artifactId>
525
                        <version>${cobertura.version}</version>
526
                        <!-- <scope>provided</scope> -->
527
                        <scope>test</scope>
528
                        <type>pom</type>
529
                </dependency>
530
        </dependencies>
531
</project>