Statistics
| Branch: | Revision:

m2u-upass-core / pom.xml @ 69:c9e1eac22a81

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

    
79
                                                                                <delete>
80
                                                                                        <fileset dir="${project.build.outputDirectory}"
81
                                                                                                includes="proxool.*.properties" />
82
                                                                                </delete>
83
                                                                        </target>
84
                                                                </configuration>
85
                                                                <goals>
86
                                                                        <goal>run</goal>
87
                                                                </goals>
88
                                                        </execution>
89
                                                </executions>
90
                                        </plugin>
91
                                </plugins>
92
                        </build>
93
                </profile>
94
                <profile>
95
                        <id>env-dev-penril</id>
96
                        <activation>
97
                                <property>
98
                                        <name>env</name>
99
                                        <value>dev-penril</value>
100
                                </property>
101
                        </activation>
102
                        <properties>
103
                                <config.postfix>.dev-penril</config.postfix>
104
                        </properties>
105
                </profile>
106
                <profile>
107
                        <id>env-staging-ci</id>
108
                        <activation>
109
                                <property>
110
                                        <name>env</name>
111
                                        <value>staging-ci</value>
112
                                </property>
113
                        </activation>
114
                        <properties>
115
                                <config.postfix>.staging-ci</config.postfix>
116
                        </properties>
117
                </profile>
118
                <profile>
119
                        <id>env-maybank-dev</id>
120
                        <activation>
121
                                <property>
122
                                        <name>env</name>
123
                                        <value>maybank-dev</value>
124
                                </property>
125
                        </activation>
126
                        <properties>
127
                                <config.postfix>.maybank-dev</config.postfix>
128
                        </properties>
129
                </profile>
130
                <profile>
131
                        <id>cobertura-instrument</id>
132
                        <activation>
133
                                <property>
134
                                        <name>cobertura-build</name>
135
                                </property>
136
                        </activation>
137
                        <properties>
138
                                <m2u-upass-classifier>instrumented</m2u-upass-classifier>
139
                        </properties>
140
                        <build>
141
                                <plugins>
142
                                        <plugin>
143
                                                <artifactId>maven-jar-plugin</artifactId>
144
                                                <configuration>
145
                                                        <classifier>${m2u-upass-classifier}</classifier>
146
                                                </configuration>
147
                                        </plugin>
148
                                        <plugin>
149
                                                <groupId>org.codehaus.mojo</groupId>
150
                                                <artifactId>cobertura-maven-plugin</artifactId>
151
                                                <configuration>
152
                                                        <formats>
153
                                                                <format>html</format>
154
                                                                <format>xml</format>
155
                                                        </formats>
156

    
157
                                                        <instrumentation>
158
                                                                <ignores>
159
                                                                        <!-- <ignore>com.example.boringcode.*</ignore> -->
160

    
161
                                                                        <!-- <ignore>my.com.upass.SelfTest</ignore> -->
162
                                                                </ignores>
163
                                                                <excludes>
164
                                                                        <!-- <exclude>com/example/dullcode/**/*.class</exclude> <exclude>com/example/**/*Test.class</exclude> -->
165
                                                                        <!-- <exclude>my/com/upass/UPassController.class</exclude> -->
166
                                                                        <exclude>my/com/upass/GemaltoTest*.class</exclude>
167
                                                                        <exclude>my/com/upass/GemaltoTokenBean*.class</exclude>
168
                                                                        <exclude>my/com/upass/UPassController.class</exclude>
169
                                                                        <exclude>my/com/upass/UPassControllerExt*.class</exclude>
170
                                                                        <exclude>my/com/upass/db/DBOperations*.class</exclude>
171
                                                                        <exclude>my/com/upass/dao/hibernate/UserGemaltoDAOHibernate*.class</exclude>
172
                                                                        <exclude>my/com/upass/dao/hibernate/UserSecureMetricDAOHibernate*.class</exclude>
173
                                                                        <exclude>my/com/upass/dao/hibernate/UserVascoDAOHibernate*.class</exclude>
174
                                                                        <exclude>my/com/upass/SelfTest*.class</exclude>
175
                                                                        <exclude>my/com/upass/gemalto/**/*.class</exclude>
176
                                                                        <exclude>my/com/upass/secure/**/*.class</exclude>
177
                                                                        <exclude>my/com/upass/security/**/*.class</exclude>
178
                                                                        <exclude>my/com/upass/vasco/**/*.class</exclude>
179
                                                                        <exclude>my/com/upass/tac/**/*.class</exclude>
180
                                                                        <exclude>my/com/upass/services/*Tac*.class</exclude>
181
                                                                        <exclude>my/com/upass/services/*Token*.class</exclude>
182
                                                                        <exclude>my/com/upass/services/*SecurityCode*.class</exclude>
183
                                                                        <exclude>my/com/upass/dao/*Token*.class</exclude>
184
                                                                        <exclude>my/com/upass/dao/*SecurityCode*.class</exclude>
185
                                                                        <exclude>my/com/upass/dao/**/*Token*.class</exclude>
186
                                                                        <exclude>my/com/upass/dao/**/*SecurityCode*.class</exclude>
187
                                                                        <exclude>my/com/upass/pojo/*Token*.class</exclude>
188
                                                                        <exclude>my/com/upass/pojo/SecurityCode*.class</exclude>
189
                                                                </excludes>
190
                                                        </instrumentation>
191

    
192
                                                        <!-- TODO: To be configured... -->
193
                                                        <check>
194
                                                                <branchRate>85</branchRate>
195
                                                                <lineRate>85</lineRate>
196
                                                                <haltOnFailure>true</haltOnFailure>
197
                                                                <totalBranchRate>85</totalBranchRate>
198
                                                                <totalLineRate>85</totalLineRate>
199
                                                                <packageLineRate>85</packageLineRate>
200
                                                                <packageBranchRate>85</packageBranchRate>
201
                                                                <regexes>
202
                                                                        <regex>
203
                                                                                <pattern>com.example.reallyimportant.*</pattern>
204
                                                                                <branchRate>90</branchRate>
205
                                                                                <lineRate>80</lineRate>
206
                                                                        </regex>
207
                                                                        <regex>
208
                                                                                <pattern>com.example.boringcode.*</pattern>
209
                                                                                <branchRate>40</branchRate>
210
                                                                                <lineRate>30</lineRate>
211
                                                                        </regex>
212
                                                                </regexes>
213
                                                        </check>
214
                                                </configuration>
215
                                                <executions>
216
                                                        <execution>
217
                                                                <id>instrument-code</id>
218
                                                                <phase>process-classes</phase>
219
                                                                <goals>
220
                                                                        <goal>instrument</goal>
221
                                                                </goals>
222
                                                                <configuration>
223
                                                                        <attach>true</attach>
224
                                                                </configuration>
225
                                                        </execution>
226
                                                </executions>
227
                                        </plugin>
228
                                        <plugin>
229
                                                <artifactId>maven-source-plugin</artifactId>
230
                                                <executions>
231
                                                        <execution>
232
                                                                <id>attach-sources</id>
233
                                                                <goals>
234
                                                                        <goal>jar</goal>
235
                                                                </goals>
236
                                                        </execution>
237
                                                </executions>
238
                                                <inherited>true</inherited>
239
                                        </plugin>
240
                                </plugins>
241
                        </build>
242
                        <dependencies>
243
                                <dependency>
244
                                        <groupId>net.sourceforge.cobertura</groupId>
245
                                        <artifactId>cobertura-runtime</artifactId>
246
                                        <version>${cobertura.version}</version>
247
                                        <!-- <scope>provided</scope> -->
248
                                        <scope>compile</scope>
249
                                        <type>pom</type>
250
                                </dependency>
251
                        </dependencies>
252
                </profile>
253
        </profiles>
254
        <dependencies>
255
                <dependency>
256
                        <groupId>net.penril</groupId>
257
                        <artifactId>aal2wrap</artifactId>
258
                        <version>1</version>
259
                </dependency>
260
                <dependency>
261
                        <groupId>com.microsoft</groupId>
262
                        <artifactId>mssql-jdbc</artifactId>
263
                        <version>3.0</version>
264
                </dependency>
265
                <dependency>
266
                        <groupId>antlr</groupId>
267
                        <artifactId>antlr</artifactId>
268
                        <version>2.7.6</version>
269
                        <type>jar</type>
270
                        <scope>compile</scope>
271
                </dependency>
272
                <dependency>
273
                        <groupId>javassist</groupId>
274
                        <artifactId>javassist</artifactId>
275
                        <version>3.4.GA</version>
276
                        <type>jar</type>
277
                        <scope>compile</scope>
278
                </dependency>
279
                <dependency>
280
                        <groupId>javax.transaction</groupId>
281
                        <artifactId>jta</artifactId>
282
                        <version>1.1</version>
283
                        <type>jar</type>
284
                        <scope>compile</scope>
285
                </dependency>
286
                <dependency>
287
                        <groupId>org.slf4j</groupId>
288
                        <artifactId>slf4j-simple</artifactId>
289
                        <version>1.5.6</version>
290
                        <type>jar</type>
291
                        <scope>compile</scope>
292
                </dependency>
293
                <dependency>
294
                        <groupId>org.slf4j</groupId>
295
                        <artifactId>slf4j-api</artifactId>
296
                        <version>1.5.6</version>
297
                        <type>jar</type>
298
                        <scope>compile</scope>
299
                </dependency>
300
                <dependency>
301
                        <groupId>org.slf4j</groupId>
302
                        <artifactId>slf4j-log4j12</artifactId>
303
                        <version>1.5.6</version>
304
                        <type>jar</type>
305
                        <scope>compile</scope>
306
                </dependency>
307
                <dependency>
308
                        <groupId>org.jasypt</groupId>
309
                        <artifactId>jasypt</artifactId>
310
                        <version>1.9.0</version>
311
                </dependency>
312
                <dependency>
313
                        <groupId>ocra</groupId>
314
                        <artifactId>ocra</artifactId>
315
                        <version>1.0</version>
316
                </dependency>
317
                <dependency>
318
                        <groupId>net.penril</groupId>
319
                        <artifactId>jotpcore</artifactId>
320
                        <version>3.2</version>
321
                </dependency>
322
                <dependency>
323
                        <groupId>net.penril</groupId>
324
                        <artifactId>commons-logging</artifactId>
325
                        <version>1.1.1</version>
326
                </dependency>
327
                <dependency>
328
                        <groupId>net.penril</groupId>
329
                        <artifactId>proxool</artifactId>
330
                        <version>0.9.1</version>
331
                </dependency>
332
                <dependency>
333
                        <groupId>net.penril</groupId>
334
                        <artifactId>proxool-cglib</artifactId>
335
                        <version>1</version>
336
                </dependency>
337
                <dependency>
338
                        <groupId>net.penril</groupId>
339
                        <artifactId>bcprov-jdk</artifactId>
340
                        <version>15-144</version>
341
                </dependency>
342
                <dependency>
343
                        <groupId>net.penril</groupId>
344
                        <artifactId>NCSO</artifactId>
345
                        <version>1</version>
346
                </dependency>
347
                <dependency>
348
                        <groupId>net.sourceforge.jtds</groupId>
349
                        <artifactId>jtds</artifactId>
350
                        <version>1.2.2</version>
351
                </dependency>
352
                <dependency>
353
                        <groupId>commons-lang</groupId>
354
                        <artifactId>commons-lang</artifactId>
355
                        <version>2.5</version>
356
                </dependency>
357
                <!-- ORACLE database driver -->
358
                <dependency>
359
                        <groupId>com.oracle.jdbc</groupId>
360
                        <artifactId>com.springsource.oracle.jdbc</artifactId>
361
                        <version>10.2.0.2</version>
362
                </dependency>
363
                <dependency>
364
                        <groupId>net.penril</groupId>
365
                        <artifactId>m2u-upass-min</artifactId>
366
                        <version>2.0-SNAPSHOT</version>
367
                        <classifier>${m2u-upass-classifier}</classifier>
368
                </dependency>
369
                <dependency>
370
                        <groupId>org.hibernate</groupId>
371
                        <artifactId>hibernate-c3p0</artifactId>
372
                        <version>3.3.1.GA</version>
373
                </dependency>
374
        </dependencies>
375
</project>
376