Statistics
| Branch: | Revision:

m2u-upass-admin / pom.xml @ 42:ddb257ed1d03

History | View | Annotate | Download (13.6 KB)

1
<?xml version="1.0"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
                xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4

    
5
        <modelVersion>4.0.0</modelVersion>
6

    
7
        <name>M2U UPass Admin</name>
8
        <groupId>net.penril</groupId>
9
        <artifactId>m2u-upass-admin</artifactId>
10
        <version>2.0-SNAPSHOT</version>
11
        <packaging>war</packaging>
12

    
13
        <properties>
14
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15
                <cobertura.version>1.9.4.1</cobertura.version>
16
                <config.postfix></config.postfix>
17
        </properties>
18
        <reporting>
19
                <plugins>
20
                        <plugin>
21
                                <groupId>org.codehaus.mojo</groupId>
22
                                <artifactId>cobertura-maven-plugin</artifactId>
23
                                <version>2.5.1</version>
24
                        </plugin>
25
                </plugins>
26
        </reporting>
27

    
28
        <build>
29
                <sourceDirectory>src</sourceDirectory>
30
                <resources>
31
                        <resource>
32
                                <directory>resource</directory>
33
                        </resource>
34
                </resources>
35
                <testSourceDirectory>test</testSourceDirectory>
36
                <!-- <outputDirectory>${basedir}/WebContent/WEB-INF/classes</outputDirectory> -->
37
                <pluginManagement>
38
                        <plugins>
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.apache.maven.plugins</groupId>
46
                                        <artifactId>maven-compiler-plugin</artifactId>
47
                                        <version>2.3.2</version>
48
                                        <configuration>
49
                                                <source>1.6</source>
50
                                                <target>1.6</target>
51
                                        </configuration>
52
                                </plugin>
53
                                <plugin>
54
                                        <groupId>org.codehaus.mojo</groupId>
55
                                        <artifactId>cobertura-maven-plugin</artifactId>
56
                                        <version>2.5.1</version>
57
                                </plugin>
58
                        </plugins> 
59
                </pluginManagement>
60
                <plugins>
61
                        <plugin>
62
                                <groupId>org.apache.maven.plugins</groupId>
63
                                <artifactId>maven-war-plugin</artifactId>
64
                                <version>2.1.1</version>
65
                                <configuration>
66
                                        <warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
67
                                </configuration>
68
                        </plugin>
69
                        <plugin>
70
                                <groupId>org.mortbay.jetty</groupId>
71
                                <artifactId>maven-jetty-plugin</artifactId>
72
                                <version>6.1.16</version>
73
                                <configuration>
74
                                        <webAppSourceDirectory>${basedir}/WebContent</webAppSourceDirectory>
75
                                </configuration>
76
                        </plugin>
77
                </plugins>
78
        </build>
79
        <profiles>
80
                <profile>
81
                        <id>env-dev-penril</id>
82
                        <activation>
83
                                <property>
84
                                        <name>env</name>
85
                                        <value>dev-penril</value>
86
                                </property>
87
                        </activation>
88
                        <distributionManagement>
89
                                  <snapshotRepository>
90
                                        <id>penril.nexus.repo</id>
91
                                        <name>Penril Nexus Repo</name>
92
                                        <url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots</url>
93
                                  </snapshotRepository>
94
                        </distributionManagement>
95
                        <properties>
96
                                <config.postfix>.dev-penril</config.postfix>
97
                        </properties>
98
            </profile>
99
                <profile>
100
                      <id>env-dev-m2u</id>
101
                      <activation>
102
                                <property>
103
                                          <name>env</name>
104
                                          <value>dev-m2u</value>
105
                                </property>
106
                      </activation>
107
                      <properties>
108
                                <config.postfix>.dev-m2u</config.postfix>
109
                      </properties>
110
            </profile>
111
                <profile>
112
                        <id>env-ant</id>
113
                        <activation>
114
                                <property>
115
                                        <name>env</name>
116
                                </property>
117
                        </activation>
118
                        <build>
119
                                <plugins>
120
                                        <plugin>
121
                                                <artifactId>maven-antrun-plugin</artifactId>
122
                                                <executions>
123
                                                        <execution>
124
                                                                <id>env-config</id>
125
                                                                <phase>process-resources</phase>
126
                                                                <configuration>
127
                                                                         <target>
128
                                                                                <delete file="${project.build.outputDirectory}/com/ib/hibernate/configuration/hibernate.cfg.xml" />
129
                                                                                <copy file="resource/com/ib/hibernate/configuration/hibernate${config.postfix}.cfg.xml"
130
                                                                                        tofile="${project.build.outputDirectory}/com/ib/hibernate/configuration/hibernate.cfg.xml" />
131
                
132
                                                                                  <delete>
133
                                                                                    <fileset dir="${project.build.outputDirectory}/com/ib/hibernate/configuration" includes="hibernate.*.cfg.xml"/>
134
                                                                                   </delete>
135
                
136
                                                                                <delete file="${project.build.outputDirectory}/UPassClient.cfg" />
137
                                                                                <copy file="resource/UPassClient${config.postfix}.cfg"
138
                                                                                        tofile="${project.build.outputDirectory}/UPassClient.cfg" />
139
                
140
                                                                                <delete>
141
                                                                                        <fileset dir="${project.build.outputDirectory}" includes="UPassClient.*.cfg" />
142
                                                                                </delete>
143
                
144
                                                                                <delete file="${project.build.outputDirectory}/AppConfig.properties" />
145
                                                                                <copy file="resource/AppConfig${config.postfix}.properties"
146
                                                                                        tofile="${project.build.outputDirectory}/AppConfig.properties" />
147
                
148
                                                                                <delete>
149
                                                                                        <fileset dir="${project.build.outputDirectory}" includes="AppConfig.*.properties" />
150
                                                                                </delete>                                                                
151
                
152
                                                                                <delete file="${project.build.outputDirectory}/log4j.xml" />
153
                                                                                <copy file="resource/log4j${config.postfix}.xml"
154
                                                                                        tofile="${project.build.outputDirectory}/log4j.xml" />
155
                
156
                                                                                <delete>
157
                                                                                        <fileset dir="${project.build.outputDirectory}" includes="log4j.*.xml" />
158
                                                                                </delete>        
159
                                                                                
160
                                                                        </target>
161
                                                                </configuration>
162
                                                                <goals>
163
                                                                        <goal>run</goal>
164
                                                                </goals>
165
                                                        </execution>
166
                                                </executions>
167
                                        </plugin>
168
                                </plugins>
169
                        </build>
170
                </profile>
171
                <profile>
172
                        <id>env-staging-penril</id>
173
                        <activation>
174
                                <property>
175
                                          <name>env</name>
176
                                          <value>staging-penril</value>
177
                                </property>
178
                        </activation>
179
                        <distributionManagement>
180
                                  <snapshotRepository>
181
                                        <id>penril.nexus.repo</id>
182
                                        <name>Penril Nexus Repo</name>
183
                                        <url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots</url>
184
                                  </snapshotRepository>
185
                        </distributionManagement>
186
                        <properties>
187
                                <config.postfix>.staging-penril</config.postfix>
188
                        </properties>
189
                        <build>
190
                                <plugins>
191
                                        <plugin>
192
                                                <artifactId>maven-antrun-plugin</artifactId>
193
                                                <configuration>
194
                                                        <target>
195
                                                        <copy file="${basedir}/target/${artifactId}-${version}.war" 
196
                                                                tofile="/var/lib/jenkins/was-workspace/{artifactId}/${artifactId}-${version}.war"/>
197
                                                        </target>
198
                                                </configuration>
199
                                                <executions>
200
                                                        <execution>
201
                                                                <id>was-deployer</id>
202
                                                                <phase>install</phase>
203
                                                                <goals>
204
                                                                        <goal>run</goal>
205
                                                                </goals>
206
                                                        </execution>
207
                                                </executions>
208
                                        </plugin>                        
209

    
210
                                </plugins>
211
                        </build>                        
212
                </profile>
213
                <profile>
214
                        <id>env-maybank-dev</id>
215
                        <activation>
216
                                <property>
217
                                        <name>env</name>
218
                                        <value>maybank-dev</value>
219
                                </property>
220
                        </activation>
221
                        <properties>
222
                                <config.postfix>.maybank-dev</config.postfix>
223
                        </properties>
224
                </profile>
225
        </profiles>        
226
        <dependencies>
227
                <dependency>
228
                        <groupId>net.penril.onlineapps</groupId>
229
                        <artifactId>oa-mailbox</artifactId>
230
                        <version>0.9-SNAPSHOT</version>
231
                        <type>jar</type>
232
                </dependency>
233
                <dependency>
234
                        <groupId>com.vasco.vacman</groupId>
235
                        <artifactId>aal2wrap</artifactId>
236
                        <version>3.7.10</version>
237
                        <type>jar</type>
238
                        <scope>system</scope>
239
                        <systemPath>${basedir}/WebContent/WEB-INF/lib/aal2wrap.jar</systemPath>
240
                </dependency>                
241
                <dependency>
242
                        <groupId>com.microsoft</groupId>
243
                        <artifactId>mssql-jdbc</artifactId>
244
                        <version>3.0</version>
245
                        <type>jar</type>
246
                </dependency>
247
                <dependency>
248
                        <groupId>antlr</groupId>
249
                        <artifactId>antlr</artifactId>
250
                        <version>2.7.6</version>
251
                        <type>jar</type>
252
                        <scope>compile</scope>
253
                </dependency>
254
                <dependency>
255
                        <groupId>commons-collections</groupId>
256
                        <artifactId>commons-collections</artifactId>
257
                        <version>3.2.1</version>
258
                        <type>jar</type>
259
                        <scope>compile</scope>
260
                </dependency>
261
                <dependency>
262
                        <groupId>commons-logging</groupId>
263
                        <artifactId>commons-logging</artifactId>
264
                        <version>1.1.1</version>
265
                        <type>jar</type>
266
                        <scope>compile</scope>
267
                </dependency>
268
                <dependency>
269
                        <groupId>dom4j</groupId>
270
                        <artifactId>dom4j</artifactId>
271
                        <version>1.6</version>
272
                        <type>jar</type>
273
                        <scope>compile</scope>
274
                        <exclusions>
275
                                <exclusion>
276
                                        <artifactId>xml-apis</artifactId>
277
                                        <groupId>xml-apis</groupId>
278
                                </exclusion>
279
                        </exclusions>
280
                </dependency>
281
                <dependency>
282
                        <groupId>org.hibernate</groupId>
283
                        <artifactId>hibernate-core</artifactId>
284
                        <version>3.3.1.GA</version>
285
                        <type>jar</type>
286
                        <scope>compile</scope>
287
                </dependency>
288
                <dependency>
289
                        <groupId>javassist</groupId>
290
                        <artifactId>javassist</artifactId>
291
                        <version>3.4.GA</version>
292
                        <type>jar</type>
293
                        <scope>compile</scope>
294
                </dependency>
295
                <dependency>
296
                        <groupId>javax.servlet</groupId>
297
                        <artifactId>jstl</artifactId>
298
                        <version>1.1.2</version>
299
                        <type>jar</type>
300
                        <scope>compile</scope>
301
                </dependency>
302
                <dependency>
303
                        <groupId>javax.transaction</groupId>
304
                        <artifactId>jta</artifactId>
305
                        <version>1.1</version>
306
                        <type>jar</type>
307
                        <scope>compile</scope>
308
                </dependency>
309
                <dependency>
310
                        <groupId>org.slf4j</groupId>
311
                        <artifactId>slf4j-api</artifactId>
312
                        <version>1.5.6</version>
313
                        <type>jar</type>
314
                        <scope>compile</scope>
315
                </dependency>
316
                <dependency>
317
                        <groupId>org.slf4j</groupId>
318
                        <artifactId>slf4j-log4j12</artifactId>
319
                        <version>1.5.6</version>
320
                        <type>jar</type>
321
                        <scope>compile</scope>
322
                </dependency>
323
                <dependency>
324
                        <groupId>org.slf4j</groupId>
325
                        <artifactId>slf4j-simple</artifactId>
326
                        <version>1.5.6</version>
327
                        <type>jar</type>
328
                        <scope>compile</scope>
329
                </dependency>
330
                <dependency>
331
                        <groupId>struts</groupId>
332
                        <artifactId>struts</artifactId>
333
                        <version>1.1</version>
334
                        <type>jar</type>
335
                        <scope>compile</scope>
336
                </dependency>
337
                <dependency>
338
                        <groupId>struts</groupId>
339
                        <artifactId>struts-el</artifactId>
340
                        <version>1.1</version>
341
                        <type>jar</type>
342
                        <scope>compile</scope>
343
                </dependency>
344
                 <dependency>
345
                        <groupId>struts</groupId>
346
                        <artifactId>struts-legacy</artifactId>
347
                        <version>1.1</version>
348
                        <type>jar</type>
349
                        <scope>compile</scope>
350
                </dependency>
351
                <dependency>
352
                        <groupId>commons-beanutils</groupId>
353
                        <artifactId>commons-beanutils</artifactId>
354
                        <version>1.8.3</version>
355
                        <type>jar</type>
356
                        <scope>compile</scope>
357
                </dependency>
358
                <dependency>
359
                        <groupId>javax.activation</groupId>
360
                        <artifactId>activation</artifactId>
361
                        <version>1.1.1</version>
362
                        <type>jar</type>
363
                        <scope>compile</scope>
364
                </dependency>
365
                <dependency>
366
                        <groupId>commons-digester</groupId>
367
                        <artifactId>commons-digester</artifactId>
368
                        <version>1.7</version>
369
                        <type>jar</type>
370
                        <scope>compile</scope>
371
                        <exclusions>
372
                                <exclusion>
373
                                        <artifactId>xml-apis</artifactId>
374
                                        <groupId>xml-apis</groupId>
375
                                </exclusion>
376
                        </exclusions>
377
                </dependency>
378
                <dependency>
379
                        <groupId>commons-discovery</groupId>
380
                        <artifactId>commons-discovery</artifactId>
381
                        <version>0.2</version>
382
                        <type>jar</type>
383
                        <scope>compile</scope>
384
                </dependency>
385
                <dependency>
386
                        <groupId>commons-fileupload</groupId>
387
                        <artifactId>commons-fileupload</artifactId>
388
                        <version>1.2.1</version>
389
                        <type>jar</type>
390
                        <scope>compile</scope>
391
                </dependency>
392
                <dependency>
393
                    <groupId>commons-io</groupId>
394
                    <artifactId>commons-io</artifactId>
395
                    <version>1.4</version>
396
                </dependency>
397
                <dependency>
398
                        <groupId>commons-lang</groupId>
399
                        <artifactId>commons-lang</artifactId>
400
                        <version>2.6</version>
401
                        <type>jar</type>
402
                        <scope>compile</scope>
403
                </dependency>
404
                <dependency>
405
                        <groupId>taglibs</groupId>
406
                        <artifactId>standard</artifactId>
407
                        <version>1.1.2</version>
408
                        <type>jar</type>
409
                        <scope>compile</scope>
410
                </dependency>
411
                <dependency>
412
                        <groupId>wsdl4j</groupId>
413
                        <artifactId>wsdl4j</artifactId>
414
                        <version>1.6.2</version>
415
                        <type>jar</type>
416
                        <scope>compile</scope>
417
                </dependency>
418
                <dependency>
419
                        <groupId>junit</groupId>
420
                        <artifactId>junit</artifactId>
421
                        <version>4.8.2</version>
422
                        <type>jar</type>
423
                        <scope>test</scope>
424
                </dependency>
425
                <dependency>
426
                        <groupId>javax.sql</groupId>
427
                        <artifactId>jdbc-stdext</artifactId>
428
                        <version>2.0</version>
429
                        <scope>compile</scope>
430
                </dependency>
431
                <dependency>
432
                        <groupId>javax.servlet</groupId>
433
                        <artifactId>servlet-api</artifactId>
434
                        <version>2.3</version>
435
                        <type>jar</type>
436
                        <scope>provided</scope>
437
                </dependency>
438
                <dependency>
439
                        <groupId>javax.servlet.jsp</groupId>
440
                        <artifactId>jsp-api</artifactId>
441
                        <version>2.1</version>
442
                        <type>jar</type>
443
                        <scope>provided</scope>
444
                </dependency>
445
                <dependency>
446
                        <groupId>c3p0</groupId>
447
                        <artifactId>c3p0</artifactId>
448
                        <version>0.9.1.2</version>
449
                        <type>jar</type>
450
                        <scope>compile</scope>
451
                </dependency>
452
                <dependency>
453
                        <groupId>commons-dbcp</groupId>
454
                        <artifactId>commons-dbcp</artifactId>
455
                        <version>1.2.2</version>
456
                        <type>jar</type>
457
                        <scope>compile</scope>
458
                </dependency>
459
                <dependency>
460
                        <groupId>commons-pool</groupId>
461
                        <artifactId>commons-pool</artifactId>
462
                        <version>1.3</version>
463
                        <type>jar</type>
464
                        <scope>compile</scope>
465
                </dependency>
466
                <dependency>
467
                        <groupId>org.hibernate</groupId>
468
                        <artifactId>hibernate-c3p0</artifactId>
469
                        <version>3.3.1.GA</version>
470
                        <type>jar</type>
471
                        <scope>compile</scope>
472
                </dependency>
473
                <dependency>
474
                        <groupId>com.google.code.gson</groupId>
475
                        <artifactId>gson</artifactId>
476
                        <version>1.7.1</version>
477
                </dependency>
478
                <dependency>
479
                        <groupId>org.coury</groupId>
480
                        <artifactId>jfilehelpers</artifactId>
481
                        <version>0.2a-20111103</version>
482
                </dependency>
483
                <dependency>
484
                        <groupId>net.penril</groupId>
485
                        <artifactId>m2u-upass-core</artifactId>
486
                        <version>2.0-SNAPSHOT</version>
487
                </dependency>
488
                <dependency>
489
                        <groupId>net.penril</groupId>
490
                        <artifactId>m2u-upass-admin-core</artifactId>
491
                        <version>2.0-SNAPSHOT</version>
492
                        <exclusions>
493
                                <exclusion>
494
                                        <artifactId>saaj-api</artifactId>
495
                                        <groupId>javax.xml.soap</groupId>
496
                                </exclusion>
497
                                <exclusion>
498
                                        <artifactId>axis-jaxrpc</artifactId>
499
                                        <groupId>org.apache.axis</groupId>
500
                                </exclusion>
501
                                <exclusion>
502
                                        <artifactId>axis-saaj</artifactId>
503
                                        <groupId>org.apache.axis</groupId>
504
                                </exclusion>
505
                        </exclusions>
506
                </dependency>
507
        </dependencies>
508
</project>