Statistics
| Branch: | Revision:

m2u-upass-min / pom.xml @ 69:305a38ea01f0

History | View | Annotate | Download (11.5 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
70
                                                                                        file="src/main/resources/upassMin${config.postfix}.properties"
71
                                                                                        tofile="${project.build.outputDirectory}/upassMin.properties" />
72

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

    
83
                                                                                <delete>
84
                                                                                        <fileset
85
                                                                                                dir="${project.build.outputDirectory}/com/ib/hibernate/configuration"
86
                                                                                                includes="hibernate.*.cfg.xml" />
87
                                                                                </delete>
88
                                                                                
89
                                                                                <delete file="${project.build.outputDirectory}/spring-ldap.xml" />
90
                                                                                <copy
91
                                                                                        file="src/main/resources/spring-ldap.xml"
92
                                                                                        tofile="${project.build.outputDirectory}/spring-ldap.xml" />
93
                                                                                <delete>
94
                                                                                        <fileset dir="${project.build.outputDirectory}" includes="spring-ldap.*.xml" />
95
                                                                                </delete>
96
                                                                        </target>
97
                                                                </configuration>
98
                                                                <goals>
99
                                                                        <goal>run</goal>
100
                                                                </goals>
101
                                                        </execution>
102
                                                </executions>
103
                                        </plugin>
104
                                </plugins>
105
                        </build>
106
                </profile>
107
                <profile>
108
                        <id>env-dev-penril</id>
109
                        <activation>
110
                                <property>
111
                                        <name>env</name>
112
                                        <value>dev-penril</value>
113
                                </property>
114
                        </activation>
115
                        <properties>
116
                                <config.postfix>.dev-penril</config.postfix>
117
                        </properties>
118
                        <dependencies>
119
                                <dependency>
120
                                         <groupId>org.hibernate</groupId>
121
                                         <artifactId>hibernate-core</artifactId>
122
                                         <version>3.3.1.GA</version>
123
                                         <type>jar</type>
124
                                         <scope>compile</scope>
125
                                 </dependency>
126
                         </dependencies>
127
                </profile>
128
                <profile>
129
                        <id>env-staging-ci</id>
130
                        <activation>
131
                                <property>
132
                                        <name>env</name>
133
                                        <value>staging-ci</value>
134
                                </property>
135
                        </activation>
136
                        <properties>
137
                                <config.postfix>.staging-ci</config.postfix>
138
                        </properties>
139
                        <dependencies>
140
                                <dependency>
141
                                         <groupId>org.hibernate</groupId>
142
                                         <artifactId>hibernate-core</artifactId>
143
                                         <version>3.3.1.GA</version>
144
                                         <type>jar</type>
145
                                         <scope>compile</scope>
146
                                 </dependency>
147
                         </dependencies>
148
                </profile>
149
                <profile>
150
                        <id>env-maybank-dev</id>
151
                        <activation>
152
                                <property>
153
                                        <name>env</name>
154
                                        <value>maybank-dev</value>
155
                                </property>
156
                        </activation>
157
                        <properties>
158
                                <config.postfix>.maybank-dev</config.postfix>
159
                        </properties>
160
                        <dependencies>
161
                                <dependency>
162
                                         <groupId>org.hibernate</groupId>
163
                                         <artifactId>hibernate-core</artifactId>
164
                                         <version>3.3.1.GA</version>
165
                                         <type>jar</type>
166
                                         <scope>compile</scope>
167
                                         <exclusions>
168
                                                <exclusion>
169
                                                        <groupId>xml-apis</groupId>
170
                                                        <artifactId>xml-apis</artifactId>
171
                                                </exclusion>
172
                                        </exclusions>
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>cobertura-instrument</id>
205
                        <activation>
206
                                <property>
207
                                        <name>cobertura-build</name>
208
                                </property>
209
                        </activation>
210
                        <build>
211
                                <plugins>
212
                                        <plugin>
213
                                                <artifactId>maven-jar-plugin</artifactId>
214
                                                <configuration>
215
                                                        <classifier>instrumented</classifier>
216
                                                </configuration>
217
                                        </plugin>
218
                                        <plugin>
219
                                                <groupId>org.codehaus.mojo</groupId>
220
                                                <artifactId>cobertura-maven-plugin</artifactId>
221
                                                <configuration>
222
                                                        <formats>
223
                                                                <format>html</format>
224
                                                                <format>xml</format>
225
                                                        </formats>
226

    
227
                                                        <instrumentation>
228
                                                                <ignores>
229
                                                                        <!-- <ignore>com.example.boringcode.*</ignore> -->
230

    
231
                                                                        <!-- <ignore>my.com.upass.SelfTest</ignore> -->
232
                                                                </ignores>
233
                                                                <excludes>
234
                                                                        <!-- <exclude>com/example/dullcode/**/*.class</exclude> <exclude>com/example/**/*Test.class</exclude> -->
235
                                                                        <!-- <exclude>my/com/upass/UPassController.class</exclude> -->
236
                                                                        <exclude>my/com/upass/GemaltoTest*.class</exclude>
237
                                                                        <exclude>my/com/upass/GemaltoTokenBean*.class</exclude>
238
                                                                        <exclude>my/com/upass/UPassController*.class</exclude>
239
                                                                        <exclude>my/com/upass/UPassControllerExt*.class</exclude>
240
                                                                        <exclude>my/com/upass/db/DBOperations*.class</exclude>
241
                                                                        <exclude>my/com/upass/dao/hibernate/UserGemaltoDAOHibernate*.class</exclude>
242
                                                                        <exclude>my/com/upass/dao/hibernate/UserSecureMetricDAOHibernate*.class</exclude>
243
                                                                        <exclude>my/com/upass/dao/hibernate/UserVascoDAOHibernate*.class</exclude>
244
                                                                        <exclude>my/com/upass/SelfTest*.class</exclude>
245
                                                                        <exclude>my/com/upass/gemalto/**/*.class</exclude>
246
                                                                        <exclude>my/com/upass/secure/**/*.class</exclude>
247
                                                                        <exclude>my/com/upass/security/**/*.class</exclude>
248
                                                                        <exclude>my/com/upass/vasco/**/*.class</exclude>
249
                                                                        <exclude>my/com/upass/services/*Token*.class</exclude>
250
                                                                        <exclude>my/com/upass/services/*SecurityCode*.class</exclude>
251
                                                                        <exclude>my/com/upass/dao/*Token*.class</exclude>
252
                                                                        <exclude>my/com/upass/dao/*SecurityCode*.class</exclude>
253
                                                                        <exclude>my/com/upass/dao/**/*Token*.class</exclude>
254
                                                                        <exclude>my/com/upass/dao/**/*SecurityCode*.class</exclude>
255
                                                                        <exclude>my/com/upass/pojo/*Token*.class</exclude>
256
                                                                        <exclude>my/com/upass/pojo/SecurityCode*.class</exclude>
257
                                                                </excludes>
258
                                                        </instrumentation>
259

    
260
                                                        <!-- TODO: To be configured... -->
261
                                                        <check>
262
                                                                <branchRate>85</branchRate>
263
                                                                <lineRate>85</lineRate>
264
                                                                <haltOnFailure>true</haltOnFailure>
265
                                                                <totalBranchRate>85</totalBranchRate>
266
                                                                <totalLineRate>85</totalLineRate>
267
                                                                <packageLineRate>85</packageLineRate>
268
                                                                <packageBranchRate>85</packageBranchRate>
269
                                                                <regexes>
270
                                                                        <regex>
271
                                                                                <pattern>com.example.reallyimportant.*</pattern>
272
                                                                                <branchRate>90</branchRate>
273
                                                                                <lineRate>80</lineRate>
274
                                                                        </regex>
275
                                                                        <regex>
276
                                                                                <pattern>com.example.boringcode.*</pattern>
277
                                                                                <branchRate>40</branchRate>
278
                                                                                <lineRate>30</lineRate>
279
                                                                        </regex>
280
                                                                </regexes>
281
                                                        </check>
282
                                                </configuration>
283
                                                <executions>
284
                                                        <execution>
285
                                                                <id>instrument-code</id>
286
                                                                <phase>process-classes</phase>
287
                                                                <goals>
288
                                                                        <goal>instrument</goal>
289
                                                                </goals>
290
                                                                <configuration>
291
                                                                        <attach>true</attach>
292
                                                                </configuration>
293
                                                        </execution>
294
                                                </executions>
295
                                        </plugin>
296
                                        <plugin>
297
                                                <artifactId>maven-source-plugin</artifactId>
298
                                                <executions>
299
                                                        <execution>
300
                                                                <id>attach-sources</id>
301
                                                                <goals>
302
                                                                        <goal>jar</goal>
303
                                                                </goals>
304
                                                        </execution>
305
                                                </executions>
306
                                                <inherited>true</inherited>
307
                                        </plugin>
308
                                </plugins>
309
                        </build>
310
                        <dependencies>
311
                                <dependency>
312
                                        <groupId>net.sourceforge.cobertura</groupId>
313
                                        <artifactId>cobertura-runtime</artifactId>
314
                                        <version>${cobertura.version}</version>
315
                                        <!-- <scope>provided</scope> -->
316
                                        <scope>compile</scope>
317
                                        <type>pom</type>
318
                                </dependency>
319
                                <dependency>
320
                                         <groupId>org.hibernate</groupId>
321
                                         <artifactId>hibernate-core</artifactId>
322
                                         <version>3.3.1.GA</version>
323
                                         <type>jar</type>
324
                                         <scope>compile</scope>
325
                                 </dependency>
326
                        </dependencies>
327
                </profile>
328
        </profiles>
329

    
330
        <dependencies>
331
                <dependency>
332
                         <groupId>org.hibernate</groupId>
333
                         <artifactId>hibernate-core</artifactId>
334
                         <version>3.3.1.GA</version>
335
                         <type>jar</type>
336
                         <scope>compile</scope>
337
                 </dependency>
338
                <dependency>
339
                        <groupId>junit</groupId>
340
                        <artifactId>junit</artifactId>
341
                        <version>3.8.1</version>
342
                        <scope>test</scope>
343
                </dependency>
344
                <dependency>
345
                        <groupId>log4j</groupId>
346
                        <artifactId>log4j</artifactId>
347
                        <version>1.2.14</version>
348
                        <scope>compile</scope>
349
                </dependency>
350
                <!-- ORACLE database driver -->
351
                <dependency>
352
                        <groupId>com.oracle.jdbc</groupId>
353
                        <artifactId>com.springsource.oracle.jdbc</artifactId>
354
                        <version>10.2.0.2</version>
355
                </dependency>
356
                <dependency>
357
                        <groupId>commons-lang</groupId>
358
                        <artifactId>commons-lang</artifactId>
359
                        <version>2.5</version>
360
                </dependency>
361
                <dependency>
362
                    <groupId>org.springframework.ldap</groupId>
363
                    <artifactId>spring-ldap-core</artifactId>
364
                    <version>1.3.0.RELEASE</version>
365
                </dependency>
366
                <dependency>
367
                        <groupId>org.slf4j</groupId>
368
                        <artifactId>slf4j-simple</artifactId>
369
                        <version>1.5.6</version>
370
                        <type>jar</type>
371
                        <scope>compile</scope>
372
                </dependency>
373
                <dependency>
374
                        <groupId>org.slf4j</groupId>
375
                        <artifactId>slf4j-api</artifactId>
376
                        <version>1.5.6</version>
377
                        <type>jar</type>
378
                        <scope>compile</scope>
379
                </dependency>
380
                <dependency>
381
                        <groupId>org.slf4j</groupId>
382
                        <artifactId>slf4j-log4j12</artifactId>
383
                        <version>1.5.6</version>
384
                        <type>jar</type>
385
                        <scope>compile</scope>
386
                </dependency>
387
                <dependency>
388
                        <groupId>javassist</groupId>
389
                        <artifactId>javassist</artifactId>
390
                        <version>3.4.GA</version>
391
                        <type>jar</type>
392
                        <scope>compile</scope>
393
                </dependency>
394
        </dependencies>
395
</project>