m2u-upass-min / pom.xml @ 102:e11ffbccd5bd
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/MinimalUPassController.class</exclude> |
239 |
<exclude>my/com/upass/UPassControllerExt*.class</exclude> |
240 |
<exclude>my/com/upass/db/MinimalDbOperations.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/*Tac*.class</exclude> |
252 |
<exclude>my/com/upass/dao/*Token*.class</exclude> |
253 |
<exclude>my/com/upass/dao/*SecurityCode*.class</exclude> |
254 |
<exclude>my/com/upass/dao/**/*Token*.class</exclude> |
255 |
<exclude>my/com/upass/dao/**/*SecurityCode*.class</exclude> |
256 |
<exclude>my/com/upass/pojo/*Token*.class</exclude> |
257 |
<exclude>my/com/upass/pojo/SecurityCode*.class</exclude> |
258 |
</excludes>
|
259 |
</instrumentation>
|
260 |
|
261 |
<!-- TODO: To be configured... -->
|
262 |
<check>
|
263 |
<branchRate>85</branchRate> |
264 |
<lineRate>85</lineRate> |
265 |
<haltOnFailure>true</haltOnFailure> |
266 |
<totalBranchRate>85</totalBranchRate> |
267 |
<totalLineRate>85</totalLineRate> |
268 |
<packageLineRate>85</packageLineRate> |
269 |
<packageBranchRate>85</packageBranchRate> |
270 |
<regexes>
|
271 |
<regex>
|
272 |
<pattern>com.example.reallyimportant.*</pattern> |
273 |
<branchRate>90</branchRate> |
274 |
<lineRate>80</lineRate> |
275 |
</regex>
|
276 |
<regex>
|
277 |
<pattern>com.example.boringcode.*</pattern> |
278 |
<branchRate>40</branchRate> |
279 |
<lineRate>30</lineRate> |
280 |
</regex>
|
281 |
</regexes>
|
282 |
</check>
|
283 |
</configuration>
|
284 |
<executions>
|
285 |
<execution>
|
286 |
<id>instrument-code</id> |
287 |
<phase>process-classes</phase> |
288 |
<goals>
|
289 |
<goal>instrument</goal> |
290 |
</goals>
|
291 |
<configuration>
|
292 |
<attach>true</attach> |
293 |
</configuration>
|
294 |
</execution>
|
295 |
</executions>
|
296 |
</plugin>
|
297 |
<plugin>
|
298 |
<artifactId>maven-source-plugin</artifactId> |
299 |
<executions>
|
300 |
<execution>
|
301 |
<id>attach-sources</id> |
302 |
<goals>
|
303 |
<goal>jar</goal> |
304 |
</goals>
|
305 |
</execution>
|
306 |
</executions>
|
307 |
<inherited>true</inherited> |
308 |
</plugin>
|
309 |
</plugins>
|
310 |
</build>
|
311 |
<dependencies>
|
312 |
<dependency>
|
313 |
<groupId>net.sourceforge.cobertura</groupId> |
314 |
<artifactId>cobertura-runtime</artifactId> |
315 |
<version>${cobertura.version}</version> |
316 |
<!-- <scope>provided</scope> -->
|
317 |
<scope>compile</scope> |
318 |
<type>pom</type> |
319 |
</dependency>
|
320 |
<dependency>
|
321 |
<groupId>org.hibernate</groupId> |
322 |
<artifactId>hibernate-core</artifactId> |
323 |
<version>3.3.1.GA</version> |
324 |
<type>jar</type> |
325 |
<scope>compile</scope> |
326 |
</dependency>
|
327 |
</dependencies>
|
328 |
</profile>
|
329 |
</profiles>
|
330 |
|
331 |
<dependencies>
|
332 |
<dependency>
|
333 |
<groupId>org.hibernate</groupId> |
334 |
<artifactId>hibernate-core</artifactId> |
335 |
<version>3.3.1.GA</version> |
336 |
<type>jar</type> |
337 |
<scope>compile</scope> |
338 |
</dependency>
|
339 |
<dependency>
|
340 |
<groupId>junit</groupId> |
341 |
<artifactId>junit</artifactId> |
342 |
<version>3.8.1</version> |
343 |
<scope>test</scope> |
344 |
</dependency>
|
345 |
<dependency>
|
346 |
<groupId>log4j</groupId> |
347 |
<artifactId>log4j</artifactId> |
348 |
<version>1.2.14</version> |
349 |
<scope>compile</scope> |
350 |
</dependency>
|
351 |
<!-- ORACLE database driver -->
|
352 |
<dependency>
|
353 |
<groupId>com.oracle.jdbc</groupId> |
354 |
<artifactId>com.springsource.oracle.jdbc</artifactId> |
355 |
<version>10.2.0.2</version> |
356 |
</dependency>
|
357 |
<dependency>
|
358 |
<groupId>commons-lang</groupId> |
359 |
<artifactId>commons-lang</artifactId> |
360 |
<version>2.5</version> |
361 |
</dependency>
|
362 |
<dependency>
|
363 |
<groupId>org.springframework.ldap</groupId> |
364 |
<artifactId>spring-ldap-core</artifactId> |
365 |
<version>1.3.0.RELEASE</version> |
366 |
</dependency>
|
367 |
<dependency>
|
368 |
<groupId>org.slf4j</groupId> |
369 |
<artifactId>slf4j-simple</artifactId> |
370 |
<version>1.5.6</version> |
371 |
<type>jar</type> |
372 |
<scope>compile</scope> |
373 |
</dependency>
|
374 |
<dependency>
|
375 |
<groupId>org.slf4j</groupId> |
376 |
<artifactId>slf4j-api</artifactId> |
377 |
<version>1.5.6</version> |
378 |
<type>jar</type> |
379 |
<scope>compile</scope> |
380 |
</dependency>
|
381 |
<dependency>
|
382 |
<groupId>org.slf4j</groupId> |
383 |
<artifactId>slf4j-log4j12</artifactId> |
384 |
<version>1.5.6</version> |
385 |
<type>jar</type> |
386 |
<scope>compile</scope> |
387 |
</dependency>
|
388 |
<dependency>
|
389 |
<groupId>javassist</groupId> |
390 |
<artifactId>javassist</artifactId> |
391 |
<version>3.4.GA</version> |
392 |
<type>jar</type> |
393 |
<scope>compile</scope> |
394 |
</dependency>
|
395 |
</dependencies>
|
396 |
</project>
|