Statistics
| Branch: | Revision:

m2u-upass-core / pom.xml @ 0:02300db8682b

History | View | Annotate | Download (10.3 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>agro-upass</artifactId>
8
        <version>2.0-SNAPSHOT</version>
9
        <name>Agrobank UPass</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
        </properties>
15
        <build>
16
                <sourceDirectory>src</sourceDirectory>
17
                <resources>
18
                        <resource>
19
                                <directory>resources</directory>
20
                        </resource>
21
                </resources>
22
                <pluginManagement>
23
                        <plugins>
24
                                <plugin>
25
                                        <groupId>org.codehaus.mojo</groupId>
26
                                        <artifactId>cobertura-maven-plugin</artifactId>
27
                                        <version>2.5.1</version>
28
                                </plugin>
29
                                <plugin>
30
                                        <groupId>org.apache.maven.plugins</groupId>
31
                                        <artifactId>maven-antrun-plugin</artifactId>
32
                                        <version>1.6</version>
33
                                </plugin>
34
                        </plugins>
35
                </pluginManagement>
36
                <plugins>
37
                        <plugin>
38
                                <groupId>org.apache.maven.plugins</groupId>
39
                                <artifactId>maven-compiler-plugin</artifactId>
40
                                <version>2.3.2</version>
41
                                <configuration>
42
                                        <source>1.6</source>
43
                                        <target>1.6</target>
44
                                </configuration>
45
                        </plugin>
46
                </plugins>
47
        </build>
48
        <profiles>
49
                <profile>
50
                        <id>env-ant</id>
51
                        <activation>
52
                                <property>
53
                                        <name>env</name>
54
                                </property>
55
                        </activation>
56
                        <build>
57
                                <plugins>
58
                                        <plugin>
59
                                                <artifactId>maven-antrun-plugin</artifactId>
60
                                                <executions>
61
                                                        <execution>
62
                                                                <id>env-config</id>
63
                                                                <phase>process-resources</phase>
64
                                                                <configuration>
65
                                                                        <target>
66
                                                                                <delete file="${project.build.outputDirectory}/com/ib/hibernate/configuration/hibernate.cfg.xml" />
67
                                                                                <copy file="resources/com/ib/hibernate/configuration/hibernate${config.postfix}.cfg.xml"
68
                                                                                        tofile="${project.build.outputDirectory}/com/ib/hibernate/configuration/hibernate.cfg.xml" />
69

    
70
                                                                                <delete>
71
                                                                                        <fileset dir="${project.build.outputDirectory}/com/ib/hibernate/configuration"
72
                                                                                                includes="hibernate.*.cfg.xml" />
73
                                                                                </delete>
74

    
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
                        <distributionManagement>
103
                                <snapshotRepository>
104
                                        <id>penril.nexus.repo</id>
105
                                        <name>Penril Nexus Repo</name>
106
                                        <url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots</url>
107
                                </snapshotRepository>
108
                        </distributionManagement>
109
                        <properties>
110
                                <config.postfix>.dev-penril</config.postfix>
111
                        </properties>
112
                </profile>
113
                <profile>
114
                        <id>env-staging-ci</id>
115
                        <activation>
116
                                <property>
117
                                        <name>env</name>
118
                                        <value>staging-ci</value>
119
                                </property>
120
                        </activation>
121
                        <distributionManagement>
122
                                <snapshotRepository>
123
                                        <id>penril.nexus.repo.coverage</id>
124
                                        <name>Penril Nexus Repo (Coverage)</name>
125
                                        <url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots-coverage</url>
126
                                </snapshotRepository>
127
                        </distributionManagement>
128
                        <properties>
129
                                <config.postfix>.staging-ci</config.postfix>
130
                        </properties>
131
                </profile>
132
                <profile>
133
                        <id>cobertura-instrument</id>
134
                        <activation>
135
                                <property>
136
                                        <name>cobertura-build</name>
137
                                </property>
138
                        </activation>
139
                        <build>
140
                                <plugins>
141
                                        <plugin>
142
                                                <groupId>org.codehaus.mojo</groupId>
143
                                                <artifactId>cobertura-maven-plugin</artifactId>
144
                                                <configuration>
145
                                                        <formats>
146
                                                                <format>html</format>
147
                                                                <format>xml</format>
148
                                                        </formats>
149

    
150
                                                        <instrumentation>
151
                                                                <ignores>
152
                                                                        <!-- <ignore>com.example.boringcode.*</ignore> -->
153

    
154
                                                                        <!-- <ignore>my.com.upass.SelfTest</ignore> -->
155
                                                        </ignores>
156
                                                                <excludes>
157
                                                                        <!-- 
158
                                                                        <exclude>com/example/dullcode/**/*.class</exclude> 
159
                                                                        <exclude>com/example/**/*Test.class</exclude> 
160
                                                                        -->
161
                                                                        <!-- <exclude>my/com/upass/UPassController.class</exclude> -->
162
                                                                        <exclude>my/com/upass/GemaltoTest*.class</exclude>
163
                                                                        <exclude>my/com/upass/GemaltoTokenBean*.class</exclude>
164
                                                                        <exclude>my/com/upass/UPassController*.class</exclude>
165
                                                                        <exclude>my/com/upass/UPassControllerExt*.class</exclude>
166
                                                                        <exclude>my/com/upass/db/DBOperations*.class</exclude> 
167
                                                                        <exclude>my/com/upass/dao/hibernate/UserGemaltoDAOHibernate*.class</exclude> 
168
                                                                        <exclude>my/com/upass/dao/hibernate/UserSecureMetricDAOHibernate*.class</exclude> 
169
                                                                        <exclude>my/com/upass/dao/hibernate/UserVascoDAOHibernate*.class</exclude> 
170
                                                                        <exclude>my/com/upass/SelfTest*.class</exclude>
171
                                                                        <exclude>my/com/upass/gemalto/**/*.class</exclude>
172
                                                                        <exclude>my/com/upass/secure/**/*.class</exclude>
173
                                                                        <exclude>my/com/upass/security/**/*.class</exclude>
174
                                                                        <exclude>my/com/upass/vasco/**/*.class</exclude>
175
                                                                </excludes>
176
                                                        </instrumentation>
177

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