m2u-upass-min / pom.xml @ 109:d2c17217af73
History | View | Annotate | Download (11.6 KB)
1 | 0:c1ee3980763c | hadi | <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 | 4:41475ed8eb62 | hadi | <version>2.0-SNAPSHOT</version> |
8 | 0:c1ee3980763c | hadi | <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 | 7:e912bfacf318 | hadi | <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 | 9:85bf23a633ef | hadi | <uniqueVersion>false</uniqueVersion> |
21 | 7:e912bfacf318 | hadi | </snapshotRepository>
|
22 | </distributionManagement>
|
||
23 | 0:c1ee3980763c | hadi | <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 | 108:88e47c247478 | hadi | <copy file="src/main/resources/upassMin${config.postfix}.properties" tofile="${project.build.outputDirectory}/upassMin.properties" /> |
70 | 0:c1ee3980763c | hadi | |
71 | <delete>
|
||
72 | 108:88e47c247478 | hadi | <fileset dir="${project.build.outputDirectory}" includes="upassMin.*.properties" /> |
73 | 0:c1ee3980763c | hadi | </delete>
|
74 | 108:88e47c247478 | hadi | <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 | 17:558c3496b87e | mohd | |
77 | <delete>
|
||
78 | 108:88e47c247478 | hadi | <fileset dir="${project.build.outputDirectory}/com/ib/hibernate/configuration" includes="hibernate.*.cfg.xml" /> |
79 | 17:558c3496b87e | mohd | </delete>
|
80 | 108:88e47c247478 | hadi | |
81 | 34:c8a57c4ca05f | mohd | <delete file="${project.build.outputDirectory}/spring-ldap.xml" /> |
82 | 108:88e47c247478 | hadi | <copy file="src/main/resources/spring-ldap.xml" tofile="${project.build.outputDirectory}/spring-ldap.xml" /> |
83 | 34:c8a57c4ca05f | mohd | <delete>
|
84 | <fileset dir="${project.build.outputDirectory}" includes="spring-ldap.*.xml" /> |
||
85 | </delete>
|
||
86 | 0:c1ee3980763c | hadi | </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 | 1:a62b3ba1eae3 | hadi | <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 | 38:d7fca0ceaac0 | mohd | <dependencies>
|
109 | <dependency>
|
||
110 | 108:88e47c247478 | hadi | <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 | 1:a62b3ba1eae3 | hadi | </profile>
|
118 | <profile>
|
||
119 | 0:c1ee3980763c | hadi | <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 | 38:d7fca0ceaac0 | mohd | <dependencies>
|
130 | <dependency>
|
||
131 | 108:88e47c247478 | hadi | <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 | 0:c1ee3980763c | hadi | </profile>
|
144 | <profile>
|
||
145 | 17:558c3496b87e | mohd | <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 | 38:d7fca0ceaac0 | mohd | <dependencies>
|
156 | <dependency>
|
||
157 | 108:88e47c247478 | hadi | <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 | 38:d7fca0ceaac0 | mohd | <exclusion>
|
164 | <groupId>xml-apis</groupId> |
||
165 | <artifactId>xml-apis</artifactId> |
||
166 | </exclusion>
|
||
167 | </exclusions>
|
||
168 | 108:88e47c247478 | hadi | </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 | 17:558c3496b87e | mohd | </profile>
|
176 | <profile>
|
||
177 | 69:305a38ea01f0 | mohd | <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 | 108:88e47c247478 | hadi | <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 | 69:305a38ea01f0 | mohd | <exclusion>
|
196 | <groupId>xml-apis</groupId> |
||
197 | <artifactId>xml-apis</artifactId> |
||
198 | </exclusion>
|
||
199 | </exclusions>
|
||
200 | 108:88e47c247478 | hadi | </dependency>
|
201 | </dependencies>
|
||
202 | 69:305a38ea01f0 | mohd | </profile>
|
203 | <profile>
|
||
204 | 0:c1ee3980763c | hadi | <id>cobertura-instrument</id> |
205 | <activation>
|
||
206 | <property>
|
||
207 | <name>cobertura-build</name> |
||
208 | </property>
|
||
209 | </activation>
|
||
210 | <build>
|
||
211 | <plugins>
|
||
212 | <plugin>
|
||
213 | 6:963eb96a0f3f | hadi | <artifactId>maven-jar-plugin</artifactId> |
214 | <configuration>
|
||
215 | <classifier>instrumented</classifier> |
||
216 | </configuration>
|
||
217 | </plugin>
|
||
218 | <plugin>
|
||
219 | 0:c1ee3980763c | hadi | <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 | 102:e11ffbccd5bd | hadi | <exclude>my/com/upass/MinimalUPassController.class</exclude> |
239 | 0:c1ee3980763c | hadi | <exclude>my/com/upass/UPassControllerExt*.class</exclude> |
240 | 102:e11ffbccd5bd | hadi | <exclude>my/com/upass/db/MinimalDbOperations.class</exclude> |
241 | 0:c1ee3980763c | hadi | <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 | 102:e11ffbccd5bd | hadi | <exclude>my/com/upass/dao/*Tac*.class</exclude> |
252 | 0:c1ee3980763c | hadi | <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 | 38:d7fca0ceaac0 | mohd | <dependency>
|
321 | 108:88e47c247478 | hadi | <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 | 0:c1ee3980763c | hadi | </dependencies>
|
328 | </profile>
|
||
329 | </profiles>
|
||
330 | |||
331 | <dependencies>
|
||
332 | <dependency>
|
||
333 | 108:88e47c247478 | hadi | <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 | 10:0653f74f4280 | mohd | <dependency>
|
340 | 0:c1ee3980763c | hadi | <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 | 26:293694ae0d71 | mohd | <dependency>
|
363 | 108:88e47c247478 | hadi | <groupId>org.springframework.ldap</groupId> |
364 | <artifactId>spring-ldap-core</artifactId> |
||
365 | <version>1.3.0.RELEASE</version> |
||
366 | 26:293694ae0d71 | mohd | </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 | 0:c1ee3980763c | hadi | </dependencies>
|
396 | </project> |