m2u-upass-min / pom.xml @ 37:ba861318d360
History | View | Annotate | Download (9.91 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 |
</profile>
|
119 |
<profile>
|
120 |
<id>env-staging-ci</id> |
121 |
<activation>
|
122 |
<property>
|
123 |
<name>env</name> |
124 |
<value>staging-ci</value> |
125 |
</property>
|
126 |
</activation>
|
127 |
<properties>
|
128 |
<config.postfix>.staging-ci</config.postfix> |
129 |
</properties>
|
130 |
</profile>
|
131 |
<profile>
|
132 |
<id>env-maybank-dev</id> |
133 |
<activation>
|
134 |
<property>
|
135 |
<name>env</name> |
136 |
<value>maybank-dev</value> |
137 |
</property>
|
138 |
</activation>
|
139 |
<properties>
|
140 |
<config.postfix>.maybank-dev</config.postfix> |
141 |
</properties>
|
142 |
</profile>
|
143 |
<profile>
|
144 |
<id>cobertura-instrument</id> |
145 |
<activation>
|
146 |
<property>
|
147 |
<name>cobertura-build</name> |
148 |
</property>
|
149 |
</activation>
|
150 |
<build>
|
151 |
<plugins>
|
152 |
<plugin>
|
153 |
<artifactId>maven-jar-plugin</artifactId> |
154 |
<configuration>
|
155 |
<classifier>instrumented</classifier> |
156 |
</configuration>
|
157 |
</plugin>
|
158 |
<plugin>
|
159 |
<groupId>org.codehaus.mojo</groupId> |
160 |
<artifactId>cobertura-maven-plugin</artifactId> |
161 |
<configuration>
|
162 |
<formats>
|
163 |
<format>html</format> |
164 |
<format>xml</format> |
165 |
</formats>
|
166 |
|
167 |
<instrumentation>
|
168 |
<ignores>
|
169 |
<!-- <ignore>com.example.boringcode.*</ignore> -->
|
170 |
|
171 |
<!-- <ignore>my.com.upass.SelfTest</ignore> -->
|
172 |
</ignores>
|
173 |
<excludes>
|
174 |
<!-- <exclude>com/example/dullcode/**/*.class</exclude> <exclude>com/example/**/*Test.class</exclude> -->
|
175 |
<!-- <exclude>my/com/upass/UPassController.class</exclude> -->
|
176 |
<exclude>my/com/upass/GemaltoTest*.class</exclude> |
177 |
<exclude>my/com/upass/GemaltoTokenBean*.class</exclude> |
178 |
<exclude>my/com/upass/UPassController*.class</exclude> |
179 |
<exclude>my/com/upass/UPassControllerExt*.class</exclude> |
180 |
<exclude>my/com/upass/db/DBOperations*.class</exclude> |
181 |
<exclude>my/com/upass/dao/hibernate/UserGemaltoDAOHibernate*.class</exclude> |
182 |
<exclude>my/com/upass/dao/hibernate/UserSecureMetricDAOHibernate*.class</exclude> |
183 |
<exclude>my/com/upass/dao/hibernate/UserVascoDAOHibernate*.class</exclude> |
184 |
<exclude>my/com/upass/SelfTest*.class</exclude> |
185 |
<exclude>my/com/upass/gemalto/**/*.class</exclude> |
186 |
<exclude>my/com/upass/secure/**/*.class</exclude> |
187 |
<exclude>my/com/upass/security/**/*.class</exclude> |
188 |
<exclude>my/com/upass/vasco/**/*.class</exclude> |
189 |
<exclude>my/com/upass/services/*Token*.class</exclude> |
190 |
<exclude>my/com/upass/services/*SecurityCode*.class</exclude> |
191 |
<exclude>my/com/upass/dao/*Token*.class</exclude> |
192 |
<exclude>my/com/upass/dao/*SecurityCode*.class</exclude> |
193 |
<exclude>my/com/upass/dao/**/*Token*.class</exclude> |
194 |
<exclude>my/com/upass/dao/**/*SecurityCode*.class</exclude> |
195 |
<exclude>my/com/upass/pojo/*Token*.class</exclude> |
196 |
<exclude>my/com/upass/pojo/SecurityCode*.class</exclude> |
197 |
</excludes>
|
198 |
</instrumentation>
|
199 |
|
200 |
<!-- TODO: To be configured... -->
|
201 |
<check>
|
202 |
<branchRate>85</branchRate> |
203 |
<lineRate>85</lineRate> |
204 |
<haltOnFailure>true</haltOnFailure> |
205 |
<totalBranchRate>85</totalBranchRate> |
206 |
<totalLineRate>85</totalLineRate> |
207 |
<packageLineRate>85</packageLineRate> |
208 |
<packageBranchRate>85</packageBranchRate> |
209 |
<regexes>
|
210 |
<regex>
|
211 |
<pattern>com.example.reallyimportant.*</pattern> |
212 |
<branchRate>90</branchRate> |
213 |
<lineRate>80</lineRate> |
214 |
</regex>
|
215 |
<regex>
|
216 |
<pattern>com.example.boringcode.*</pattern> |
217 |
<branchRate>40</branchRate> |
218 |
<lineRate>30</lineRate> |
219 |
</regex>
|
220 |
</regexes>
|
221 |
</check>
|
222 |
</configuration>
|
223 |
<executions>
|
224 |
<execution>
|
225 |
<id>instrument-code</id> |
226 |
<phase>process-classes</phase> |
227 |
<goals>
|
228 |
<goal>instrument</goal> |
229 |
</goals>
|
230 |
<configuration>
|
231 |
<attach>true</attach> |
232 |
</configuration>
|
233 |
</execution>
|
234 |
</executions>
|
235 |
</plugin>
|
236 |
<plugin>
|
237 |
<artifactId>maven-source-plugin</artifactId> |
238 |
<executions>
|
239 |
<execution>
|
240 |
<id>attach-sources</id> |
241 |
<goals>
|
242 |
<goal>jar</goal> |
243 |
</goals>
|
244 |
</execution>
|
245 |
</executions>
|
246 |
<inherited>true</inherited> |
247 |
</plugin>
|
248 |
</plugins>
|
249 |
</build>
|
250 |
<dependencies>
|
251 |
<dependency>
|
252 |
<groupId>net.sourceforge.cobertura</groupId> |
253 |
<artifactId>cobertura-runtime</artifactId> |
254 |
<version>${cobertura.version}</version> |
255 |
<!-- <scope>provided</scope> -->
|
256 |
<scope>compile</scope> |
257 |
<type>pom</type> |
258 |
</dependency>
|
259 |
</dependencies>
|
260 |
</profile>
|
261 |
</profiles>
|
262 |
|
263 |
<dependencies>
|
264 |
<dependency>
|
265 |
<groupId>org.hibernate</groupId> |
266 |
<artifactId>hibernate-core</artifactId> |
267 |
<version>3.3.1.GA</version> |
268 |
<type>jar</type> |
269 |
<scope>compile</scope> |
270 |
</dependency>
|
271 |
<dependency>
|
272 |
<groupId>junit</groupId> |
273 |
<artifactId>junit</artifactId> |
274 |
<version>3.8.1</version> |
275 |
<scope>test</scope> |
276 |
</dependency>
|
277 |
<dependency>
|
278 |
<groupId>log4j</groupId> |
279 |
<artifactId>log4j</artifactId> |
280 |
<version>1.2.14</version> |
281 |
<scope>compile</scope> |
282 |
</dependency>
|
283 |
<!-- ORACLE database driver -->
|
284 |
<dependency>
|
285 |
<groupId>com.oracle.jdbc</groupId> |
286 |
<artifactId>com.springsource.oracle.jdbc</artifactId> |
287 |
<version>10.2.0.2</version> |
288 |
</dependency>
|
289 |
<dependency>
|
290 |
<groupId>commons-lang</groupId> |
291 |
<artifactId>commons-lang</artifactId> |
292 |
<version>2.5</version> |
293 |
</dependency>
|
294 |
<dependency>
|
295 |
<groupId>org.springframework.ldap</groupId> |
296 |
<artifactId>spring-ldap-core</artifactId> |
297 |
<version>1.3.1.RELEASE</version> |
298 |
</dependency>
|
299 |
<dependency>
|
300 |
<groupId>org.springframework.ldap</groupId> |
301 |
<artifactId>spring-ldap-ldif-core</artifactId> |
302 |
<version>1.3.1.RELEASE</version> |
303 |
</dependency>
|
304 |
<dependency>
|
305 |
<groupId>org.slf4j</groupId> |
306 |
<artifactId>slf4j-simple</artifactId> |
307 |
<version>1.5.6</version> |
308 |
<type>jar</type> |
309 |
<scope>compile</scope> |
310 |
</dependency>
|
311 |
<dependency>
|
312 |
<groupId>org.slf4j</groupId> |
313 |
<artifactId>slf4j-api</artifactId> |
314 |
<version>1.5.6</version> |
315 |
<type>jar</type> |
316 |
<scope>compile</scope> |
317 |
</dependency>
|
318 |
<dependency>
|
319 |
<groupId>org.slf4j</groupId> |
320 |
<artifactId>slf4j-log4j12</artifactId> |
321 |
<version>1.5.6</version> |
322 |
<type>jar</type> |
323 |
<scope>compile</scope> |
324 |
</dependency>
|
325 |
<dependency>
|
326 |
<groupId>javassist</groupId> |
327 |
<artifactId>javassist</artifactId> |
328 |
<version>3.4.GA</version> |
329 |
<type>jar</type> |
330 |
<scope>compile</scope> |
331 |
</dependency>
|
332 |
</dependencies>
|
333 |
</project>
|