Statistics
| Branch: | Revision:

m2u-upass-min / pom.xml @ 111:1dd9da3fead3

History | View | Annotate | Download (13.1 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
        <modelVersion>4.0.0</modelVersion>
4

    
5
        <groupId>net.penril</groupId>
6
        <artifactId>m2u-upass-min</artifactId>
7
        <version>2.0-SNAPSHOT</version>
8
        <name>M2U UPass Minimal</name>
9
        <packaging>jar</packaging>
10
        <properties>
11
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12
                <cobertura.version>1.9.4.1</cobertura.version>
13
                <config.postfix />
14
        </properties>
15
        <distributionManagement>
16
                <snapshotRepository>
17
                        <id>penril.nexus.repo</id>
18
                        <name>Penril Nexus Repo</name>
19
                        <url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots</url>
20
                        <uniqueVersion>false</uniqueVersion>
21
                </snapshotRepository>
22
        </distributionManagement>
23
        <build>
24
                <pluginManagement>
25
                        <plugins>
26
                                <plugin>
27
                                        <groupId>org.codehaus.mojo</groupId>
28
                                        <artifactId>cobertura-maven-plugin</artifactId>
29
                                        <version>2.5.1</version>
30
                                </plugin>
31
                                <plugin>
32
                                        <groupId>org.apache.maven.plugins</groupId>
33
                                        <artifactId>maven-antrun-plugin</artifactId>
34
                                        <version>1.6</version>
35
                                </plugin>
36
                        </plugins>
37
                </pluginManagement>
38
                <plugins>
39
                        <plugin>
40
                                <groupId>org.apache.maven.plugins</groupId>
41
                                <artifactId>maven-compiler-plugin</artifactId>
42
                                <version>2.3.2</version>
43
                                <configuration>
44
                                        <source>1.4</source>
45
                                        <target>1.4</target>
46
                                </configuration>
47
                        </plugin>
48
                </plugins>
49
        </build>
50
        <profiles>
51
                <profile>
52
                        <id>env-ant</id>
53
                        <activation>
54
                                <property>
55
                                        <name>env</name>
56
                                </property>
57
                        </activation>
58
                        <build>
59
                                <plugins>
60
                                        <plugin>
61
                                                <artifactId>maven-antrun-plugin</artifactId>
62
                                                <executions>
63
                                                        <execution>
64
                                                                <id>env-config</id>
65
                                                                <phase>process-resources</phase>
66
                                                                <configuration>
67
                                                                        <target>
68
                                                                                <delete file="${project.build.outputDirectory}/upassMin.properties" />
69
                                                                                <copy file="src/main/resources/upassMin${config.postfix}.properties" tofile="${project.build.outputDirectory}/upassMin.properties" />
70

    
71
                                                                                <delete>
72
                                                                                        <fileset dir="${project.build.outputDirectory}" includes="upassMin.*.properties" />
73
                                                                                </delete>
74
                                                                                <delete file="${project.build.outputDirectory}/com/ib/hibernate/configuration/hibernate.cfg.xml" />
75
                                                                                <copy file="src/main/resources/com/ib/hibernate/configuration/hibernate${config.postfix}.cfg.xml" tofile="${project.build.outputDirectory}/com/ib/hibernate/configuration/hibernate.cfg.xml" />
76

    
77
                                                                                <delete>
78
                                                                                        <fileset dir="${project.build.outputDirectory}/com/ib/hibernate/configuration" includes="hibernate.*.cfg.xml" />
79
                                                                                </delete>
80

    
81
                                                                                <delete file="${project.build.outputDirectory}/spring-ldap.xml" />
82
                                                                                <copy file="src/main/resources/spring-ldap.xml" tofile="${project.build.outputDirectory}/spring-ldap.xml" />
83
                                                                                <delete>
84
                                                                                        <fileset dir="${project.build.outputDirectory}" includes="spring-ldap.*.xml" />
85
                                                                                </delete>
86
                                                                        </target>
87
                                                                </configuration>
88
                                                                <goals>
89
                                                                        <goal>run</goal>
90
                                                                </goals>
91
                                                        </execution>
92
                                                </executions>
93
                                        </plugin>
94
                                </plugins>
95
                        </build>
96
                </profile>
97
                <profile>
98
                        <id>env-dev-penril</id>
99
                        <activation>
100
                                <property>
101
                                        <name>env</name>
102
                                        <value>dev-penril</value>
103
                                </property>
104
                        </activation>
105
                        <properties>
106
                                <config.postfix>.dev-penril</config.postfix>
107
                        </properties>
108
                        <dependencies>
109
                                <dependency>
110
                                        <groupId>org.hibernate</groupId>
111
                                        <artifactId>hibernate-core</artifactId>
112
                                        <version>3.3.1.GA</version>
113
                                        <type>jar</type>
114
                                        <scope>compile</scope>
115
                                </dependency>
116
                        </dependencies>
117
                </profile>
118
                <profile>
119
                        <id>env-staging-ci</id>
120
                        <activation>
121
                                <property>
122
                                        <name>env</name>
123
                                        <value>staging-ci</value>
124
                                </property>
125
                        </activation>
126
                        <properties>
127
                                <config.postfix>.staging-ci</config.postfix>
128
                        </properties>
129
                        <dependencies>
130
                                <dependency>
131
                                        <groupId>org.hibernate</groupId>
132
                                        <artifactId>hibernate-core</artifactId>
133
                                        <version>3.3.1.GA</version>
134
                                        <type>jar</type>
135
                                        <scope>compile</scope>
136
                                </dependency>
137
                                <dependency>
138
                                        <groupId>org.hibernate</groupId>
139
                                        <artifactId>hibernate-c3p0</artifactId>
140
                                        <version>3.3.1.GA</version>
141
                                </dependency>
142
                        </dependencies>
143
                </profile>
144
                <profile>
145
                        <id>env-maybank-dev</id>
146
                        <activation>
147
                                <property>
148
                                        <name>env</name>
149
                                        <value>maybank-dev</value>
150
                                </property>
151
                        </activation>
152
                        <properties>
153
                                <config.postfix>.maybank-dev</config.postfix>
154
                        </properties>
155
                        <dependencies>
156
                                <dependency>
157
                                        <groupId>org.hibernate</groupId>
158
                                        <artifactId>hibernate-core</artifactId>
159
                                        <version>3.3.1.GA</version>
160
                                        <type>jar</type>
161
                                        <scope>compile</scope>
162
                                        <exclusions>
163
                                                <exclusion>
164
                                                        <groupId>xml-apis</groupId>
165
                                                        <artifactId>xml-apis</artifactId>
166
                                                </exclusion>
167
                                        </exclusions>
168
                                </dependency>
169
                                <dependency>
170
                                        <groupId>org.hibernate</groupId>
171
                                        <artifactId>hibernate-c3p0</artifactId>
172
                                        <version>3.3.1.GA</version>
173
                                </dependency>
174
                        </dependencies>
175
                </profile>
176
                <profile>
177
                        <id>env-maybank-dev-jndi</id>
178
                        <activation>
179
                                <property>
180
                                        <name>env</name>
181
                                        <value>maybank-dev-jndi</value>
182
                                </property>
183
                        </activation>
184
                        <properties>
185
                                <config.postfix>.maybank-dev-jndi</config.postfix>
186
                        </properties>
187
                        <dependencies>
188
                                <dependency>
189
                                        <groupId>org.hibernate</groupId>
190
                                        <artifactId>hibernate-core</artifactId>
191
                                        <version>3.3.1.GA</version>
192
                                        <type>jar</type>
193
                                        <scope>compile</scope>
194
                                        <exclusions>
195
                                                <exclusion>
196
                                                        <groupId>xml-apis</groupId>
197
                                                        <artifactId>xml-apis</artifactId>
198
                                                </exclusion>
199
                                        </exclusions>
200
                                </dependency>
201
                        </dependencies>
202
                </profile>
203
                <profile>
204
                        <id>env-maybank-prod</id>
205
                        <activation>
206
                                <property>
207
                                        <name>env</name>
208
                                        <value>maybank-prod</value>
209
                                </property>
210
                        </activation>
211
                        <properties>
212
                                <config.postfix>.maybank-prod</config.postfix>
213
                        </properties>
214
                        <dependencies>
215
                                <dependency>
216
                                        <groupId>org.hibernate</groupId>
217
                                        <artifactId>hibernate-core</artifactId>
218
                                        <version>3.3.1.GA</version>
219
                                        <type>jar</type>
220
                                        <scope>compile</scope>
221
                                        <exclusions>
222
                                                <exclusion>
223
                                                        <groupId>xml-apis</groupId>
224
                                                        <artifactId>xml-apis</artifactId>
225
                                                </exclusion>
226
                                        </exclusions>
227
                                </dependency>
228
                                <dependency>
229
                                        <groupId>org.hibernate</groupId>
230
                                        <artifactId>hibernate-c3p0</artifactId>
231
                                        <version>3.3.1.GA</version>
232
                                </dependency>
233
                        </dependencies>
234
                </profile>
235
                <profile>
236
                        <id>env-maybank-prod-jndi</id>
237
                        <activation>
238
                                <property>
239
                                        <name>env</name>
240
                                        <value>maybank-prod-jndi</value>
241
                                </property>
242
                        </activation>
243
                        <properties>
244
                                <config.postfix>.maybank-prod-jndi</config.postfix>
245
                        </properties>
246
                        <dependencies>
247
                                <dependency>
248
                                        <groupId>org.hibernate</groupId>
249
                                        <artifactId>hibernate-core</artifactId>
250
                                        <version>3.3.1.GA</version>
251
                                        <type>jar</type>
252
                                        <scope>compile</scope>
253
                                        <exclusions>
254
                                                <exclusion>
255
                                                        <groupId>xml-apis</groupId>
256
                                                        <artifactId>xml-apis</artifactId>
257
                                                </exclusion>
258
                                        </exclusions>
259
                                </dependency>
260
                        </dependencies>
261
                </profile>
262
                <profile>
263
                        <id>cobertura-instrument</id>
264
                        <activation>
265
                                <property>
266
                                        <name>cobertura-build</name>
267
                                </property>
268
                        </activation>
269
                        <build>
270
                                <plugins>
271
                                        <plugin>
272
                                                <artifactId>maven-jar-plugin</artifactId>
273
                                                <configuration>
274
                                                        <classifier>instrumented</classifier>
275
                                                </configuration>
276
                                        </plugin>
277
                                        <plugin>
278
                                                <groupId>org.codehaus.mojo</groupId>
279
                                                <artifactId>cobertura-maven-plugin</artifactId>
280
                                                <configuration>
281
                                                        <formats>
282
                                                                <format>html</format>
283
                                                                <format>xml</format>
284
                                                        </formats>
285

    
286
                                                        <instrumentation>
287
                                                                <ignores>
288
                                                                        <!-- <ignore>com.example.boringcode.*</ignore> -->
289

    
290
                                                                        <!-- <ignore>my.com.upass.SelfTest</ignore> -->
291
                                                                </ignores>
292
                                                                <excludes>
293
                                                                        <!-- <exclude>com/example/dullcode/**/*.class</exclude> <exclude>com/example/**/*Test.class</exclude> -->
294
                                                                        <!-- <exclude>my/com/upass/UPassController.class</exclude> -->
295
                                                                        <exclude>my/com/upass/GemaltoTest*.class</exclude>
296
                                                                        <exclude>my/com/upass/GemaltoTokenBean*.class</exclude>
297
                                                                        <exclude>my/com/upass/MinimalUPassController.class</exclude>
298
                                                                        <exclude>my/com/upass/UPassControllerExt*.class</exclude>
299
                                                                        <exclude>my/com/upass/db/MinimalDbOperations.class</exclude>
300
                                                                        <exclude>my/com/upass/dao/hibernate/UserGemaltoDAOHibernate*.class</exclude>
301
                                                                        <exclude>my/com/upass/dao/hibernate/UserSecureMetricDAOHibernate*.class</exclude>
302
                                                                        <exclude>my/com/upass/dao/hibernate/UserVascoDAOHibernate*.class</exclude>
303
                                                                        <exclude>my/com/upass/SelfTest*.class</exclude>
304
                                                                        <exclude>my/com/upass/gemalto/**/*.class</exclude>
305
                                                                        <exclude>my/com/upass/secure/**/*.class</exclude>
306
                                                                        <exclude>my/com/upass/security/**/*.class</exclude>
307
                                                                        <exclude>my/com/upass/vasco/**/*.class</exclude>
308
                                                                        <exclude>my/com/upass/services/*Token*.class</exclude>
309
                                                                        <exclude>my/com/upass/services/*SecurityCode*.class</exclude>
310
                                                                        <exclude>my/com/upass/dao/*Tac*.class</exclude>
311
                                                                        <exclude>my/com/upass/dao/*Token*.class</exclude>
312
                                                                        <exclude>my/com/upass/dao/*SecurityCode*.class</exclude>
313
                                                                        <exclude>my/com/upass/dao/**/*Token*.class</exclude>
314
                                                                        <exclude>my/com/upass/dao/**/*SecurityCode*.class</exclude>
315
                                                                        <exclude>my/com/upass/pojo/*Token*.class</exclude>
316
                                                                        <exclude>my/com/upass/pojo/SecurityCode*.class</exclude>
317
                                                                </excludes>
318
                                                        </instrumentation>
319

    
320
                                                        <!-- TODO: To be configured... -->
321
                                                        <check>
322
                                                                <branchRate>85</branchRate>
323
                                                                <lineRate>85</lineRate>
324
                                                                <haltOnFailure>true</haltOnFailure>
325
                                                                <totalBranchRate>85</totalBranchRate>
326
                                                                <totalLineRate>85</totalLineRate>
327
                                                                <packageLineRate>85</packageLineRate>
328
                                                                <packageBranchRate>85</packageBranchRate>
329
                                                                <regexes>
330
                                                                        <regex>
331
                                                                                <pattern>com.example.reallyimportant.*</pattern>
332
                                                                                <branchRate>90</branchRate>
333
                                                                                <lineRate>80</lineRate>
334
                                                                        </regex>
335
                                                                        <regex>
336
                                                                                <pattern>com.example.boringcode.*</pattern>
337
                                                                                <branchRate>40</branchRate>
338
                                                                                <lineRate>30</lineRate>
339
                                                                        </regex>
340
                                                                </regexes>
341
                                                        </check>
342
                                                </configuration>
343
                                                <executions>
344
                                                        <execution>
345
                                                                <id>instrument-code</id>
346
                                                                <phase>process-classes</phase>
347
                                                                <goals>
348
                                                                        <goal>instrument</goal>
349
                                                                </goals>
350
                                                                <configuration>
351
                                                                        <attach>true</attach>
352
                                                                </configuration>
353
                                                        </execution>
354
                                                </executions>
355
                                        </plugin>
356
                                        <plugin>
357
                                                <artifactId>maven-source-plugin</artifactId>
358
                                                <executions>
359
                                                        <execution>
360
                                                                <id>attach-sources</id>
361
                                                                <goals>
362
                                                                        <goal>jar</goal>
363
                                                                </goals>
364
                                                        </execution>
365
                                                </executions>
366
                                                <inherited>true</inherited>
367
                                        </plugin>
368
                                </plugins>
369
                        </build>
370
                        <dependencies>
371
                                <dependency>
372
                                        <groupId>net.sourceforge.cobertura</groupId>
373
                                        <artifactId>cobertura-runtime</artifactId>
374
                                        <version>${cobertura.version}</version>
375
                                        <!-- <scope>provided</scope> -->
376
                                        <scope>compile</scope>
377
                                        <type>pom</type>
378
                                </dependency>
379
                                <dependency>
380
                                        <groupId>org.hibernate</groupId>
381
                                        <artifactId>hibernate-core</artifactId>
382
                                        <version>3.3.1.GA</version>
383
                                        <type>jar</type>
384
                                        <scope>compile</scope>
385
                                </dependency>
386
                        </dependencies>
387
                </profile>
388
        </profiles>
389

    
390
        <dependencies>
391
                <dependency>
392
                        <groupId>org.hibernate</groupId>
393
                        <artifactId>hibernate-core</artifactId>
394
                        <version>3.3.1.GA</version>
395
                        <type>jar</type>
396
                        <scope>compile</scope>
397
                </dependency>
398
                <dependency>
399
                        <groupId>junit</groupId>
400
                        <artifactId>junit</artifactId>
401
                        <version>3.8.1</version>
402
                        <scope>test</scope>
403
                </dependency>
404
                <dependency>
405
                        <groupId>log4j</groupId>
406
                        <artifactId>log4j</artifactId>
407
                        <version>1.2.14</version>
408
                        <scope>compile</scope>
409
                </dependency>
410
                <!-- ORACLE database driver -->
411
                <dependency>
412
                        <groupId>com.oracle.jdbc</groupId>
413
                        <artifactId>com.springsource.oracle.jdbc</artifactId>
414
                        <version>10.2.0.2</version>
415
                </dependency>
416
                <dependency>
417
                        <groupId>commons-lang</groupId>
418
                        <artifactId>commons-lang</artifactId>
419
                        <version>2.5</version>
420
                </dependency>
421
                <dependency>
422
                        <groupId>org.springframework.ldap</groupId>
423
                        <artifactId>spring-ldap-core</artifactId>
424
                        <version>1.3.0.RELEASE</version>
425
                </dependency>
426
                <dependency>
427
                        <groupId>org.slf4j</groupId>
428
                        <artifactId>slf4j-simple</artifactId>
429
                        <version>1.5.6</version>
430
                        <type>jar</type>
431
                        <scope>compile</scope>
432
                </dependency>
433
                <dependency>
434
                        <groupId>org.slf4j</groupId>
435
                        <artifactId>slf4j-api</artifactId>
436
                        <version>1.5.6</version>
437
                        <type>jar</type>
438
                        <scope>compile</scope>
439
                </dependency>
440
                <dependency>
441
                        <groupId>org.slf4j</groupId>
442
                        <artifactId>slf4j-log4j12</artifactId>
443
                        <version>1.5.6</version>
444
                        <type>jar</type>
445
                        <scope>compile</scope>
446
                </dependency>
447
                <dependency>
448
                        <groupId>javassist</groupId>
449
                        <artifactId>javassist</artifactId>
450
                        <version>3.4.GA</version>
451
                        <type>jar</type>
452
                        <scope>compile</scope>
453
                </dependency>
454
        </dependencies>
455
</project>