m2u-upass-min / pom.xml @ 1:a62b3ba1eae3
History | View | Annotate | Download (8.09 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>1.0-SNAPSHOT</version> |
8 |
<name>M2U UPass Minimal</name> |
9 |
<packaging>jar</packaging> |
10 |
|
11 |
<properties>
|
12 |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
13 |
<cobertura.version>1.9.4.1</cobertura.version> |
14 |
<config.postfix /> |
15 |
</properties>
|
16 |
<build>
|
17 |
<pluginManagement>
|
18 |
<plugins>
|
19 |
<plugin>
|
20 |
<groupId>org.codehaus.mojo</groupId> |
21 |
<artifactId>cobertura-maven-plugin</artifactId> |
22 |
<version>2.5.1</version> |
23 |
</plugin>
|
24 |
<plugin>
|
25 |
<groupId>org.apache.maven.plugins</groupId> |
26 |
<artifactId>maven-antrun-plugin</artifactId> |
27 |
<version>1.6</version> |
28 |
</plugin>
|
29 |
</plugins>
|
30 |
</pluginManagement>
|
31 |
<plugins>
|
32 |
<plugin>
|
33 |
<groupId>org.apache.maven.plugins</groupId> |
34 |
<artifactId>maven-compiler-plugin</artifactId> |
35 |
<version>2.3.2</version> |
36 |
<configuration>
|
37 |
<source>1.4</source> |
38 |
<target>1.4</target> |
39 |
</configuration>
|
40 |
</plugin>
|
41 |
</plugins>
|
42 |
</build>
|
43 |
<profiles>
|
44 |
<profile>
|
45 |
<id>env-ant</id> |
46 |
<activation>
|
47 |
<property>
|
48 |
<name>env</name> |
49 |
</property>
|
50 |
</activation>
|
51 |
<build>
|
52 |
<plugins>
|
53 |
<plugin>
|
54 |
<artifactId>maven-antrun-plugin</artifactId> |
55 |
<executions>
|
56 |
<execution>
|
57 |
<id>env-config</id> |
58 |
<phase>process-resources</phase> |
59 |
<configuration>
|
60 |
<target>
|
61 |
<delete file="${project.build.outputDirectory}/upassMin.properties" /> |
62 |
<copy file="resources/upassMin${config.postfix}.properties" |
63 |
tofile="${project.build.outputDirectory}/upassMin.properties" /> |
64 |
|
65 |
<delete>
|
66 |
<fileset dir="${project.build.outputDirectory}" |
67 |
includes="upassMin.*.properties" /> |
68 |
</delete>
|
69 |
</target>
|
70 |
</configuration>
|
71 |
<goals>
|
72 |
<goal>run</goal> |
73 |
</goals>
|
74 |
</execution>
|
75 |
</executions>
|
76 |
</plugin>
|
77 |
</plugins>
|
78 |
</build>
|
79 |
</profile>
|
80 |
<profile>
|
81 |
<id>env-dev-penril</id> |
82 |
<activation>
|
83 |
<property>
|
84 |
<name>env</name> |
85 |
<value>dev-penril</value> |
86 |
</property>
|
87 |
</activation>
|
88 |
<distributionManagement>
|
89 |
<snapshotRepository>
|
90 |
<id>penril.nexus.repo</id> |
91 |
<name>Penril Nexus Repo</name> |
92 |
<url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots</url> |
93 |
</snapshotRepository>
|
94 |
</distributionManagement>
|
95 |
<properties>
|
96 |
<config.postfix>.dev-penril</config.postfix> |
97 |
</properties>
|
98 |
</profile>
|
99 |
<profile>
|
100 |
<id>env-staging-ci</id> |
101 |
<activation>
|
102 |
<property>
|
103 |
<name>env</name> |
104 |
<value>staging-ci</value> |
105 |
</property>
|
106 |
</activation>
|
107 |
<distributionManagement>
|
108 |
<snapshotRepository>
|
109 |
<id>penril.nexus.repo.coverage</id> |
110 |
<name>Penril Nexus Repo (Coverage)</name> |
111 |
<url>scp://staging.penril.net/usr/share/tomcat5/sonatype-work/nexus/storage/snapshots-coverage</url> |
112 |
</snapshotRepository>
|
113 |
</distributionManagement>
|
114 |
<properties>
|
115 |
<config.postfix>.staging-ci</config.postfix> |
116 |
</properties>
|
117 |
</profile>
|
118 |
<profile>
|
119 |
<id>cobertura-instrument</id> |
120 |
<activation>
|
121 |
<property>
|
122 |
<name>cobertura-build</name> |
123 |
</property>
|
124 |
</activation>
|
125 |
<build>
|
126 |
<plugins>
|
127 |
<plugin>
|
128 |
<groupId>org.codehaus.mojo</groupId> |
129 |
<artifactId>cobertura-maven-plugin</artifactId> |
130 |
<configuration>
|
131 |
<formats>
|
132 |
<format>html</format> |
133 |
<format>xml</format> |
134 |
</formats>
|
135 |
|
136 |
<instrumentation>
|
137 |
<ignores>
|
138 |
<!-- <ignore>com.example.boringcode.*</ignore> -->
|
139 |
|
140 |
<!-- <ignore>my.com.upass.SelfTest</ignore> -->
|
141 |
</ignores>
|
142 |
<excludes>
|
143 |
<!-- <exclude>com/example/dullcode/**/*.class</exclude> <exclude>com/example/**/*Test.class</exclude> -->
|
144 |
<!-- <exclude>my/com/upass/UPassController.class</exclude> -->
|
145 |
<exclude>my/com/upass/GemaltoTest*.class</exclude> |
146 |
<exclude>my/com/upass/GemaltoTokenBean*.class</exclude> |
147 |
<exclude>my/com/upass/UPassController*.class</exclude> |
148 |
<exclude>my/com/upass/UPassControllerExt*.class</exclude> |
149 |
<exclude>my/com/upass/db/DBOperations*.class</exclude> |
150 |
<exclude>my/com/upass/dao/hibernate/UserGemaltoDAOHibernate*.class</exclude> |
151 |
<exclude>my/com/upass/dao/hibernate/UserSecureMetricDAOHibernate*.class</exclude> |
152 |
<exclude>my/com/upass/dao/hibernate/UserVascoDAOHibernate*.class</exclude> |
153 |
<exclude>my/com/upass/SelfTest*.class</exclude> |
154 |
<exclude>my/com/upass/gemalto/**/*.class</exclude> |
155 |
<exclude>my/com/upass/secure/**/*.class</exclude> |
156 |
<exclude>my/com/upass/security/**/*.class</exclude> |
157 |
<exclude>my/com/upass/vasco/**/*.class</exclude> |
158 |
<exclude>my/com/upass/services/*Token*.class</exclude> |
159 |
<exclude>my/com/upass/services/*SecurityCode*.class</exclude> |
160 |
<exclude>my/com/upass/dao/*Token*.class</exclude> |
161 |
<exclude>my/com/upass/dao/*SecurityCode*.class</exclude> |
162 |
<exclude>my/com/upass/dao/**/*Token*.class</exclude> |
163 |
<exclude>my/com/upass/dao/**/*SecurityCode*.class</exclude> |
164 |
<exclude>my/com/upass/pojo/*Token*.class</exclude> |
165 |
<exclude>my/com/upass/pojo/SecurityCode*.class</exclude> |
166 |
</excludes>
|
167 |
</instrumentation>
|
168 |
|
169 |
<!-- TODO: To be configured... -->
|
170 |
<check>
|
171 |
<branchRate>85</branchRate> |
172 |
<lineRate>85</lineRate> |
173 |
<haltOnFailure>true</haltOnFailure> |
174 |
<totalBranchRate>85</totalBranchRate> |
175 |
<totalLineRate>85</totalLineRate> |
176 |
<packageLineRate>85</packageLineRate> |
177 |
<packageBranchRate>85</packageBranchRate> |
178 |
<regexes>
|
179 |
<regex>
|
180 |
<pattern>com.example.reallyimportant.*</pattern> |
181 |
<branchRate>90</branchRate> |
182 |
<lineRate>80</lineRate> |
183 |
</regex>
|
184 |
<regex>
|
185 |
<pattern>com.example.boringcode.*</pattern> |
186 |
<branchRate>40</branchRate> |
187 |
<lineRate>30</lineRate> |
188 |
</regex>
|
189 |
</regexes>
|
190 |
</check>
|
191 |
</configuration>
|
192 |
<executions>
|
193 |
<execution>
|
194 |
<id>instrument-code</id> |
195 |
<phase>process-classes</phase> |
196 |
<goals>
|
197 |
<goal>instrument</goal> |
198 |
</goals>
|
199 |
<configuration>
|
200 |
<attach>true</attach> |
201 |
</configuration>
|
202 |
</execution>
|
203 |
</executions>
|
204 |
</plugin>
|
205 |
<plugin>
|
206 |
<artifactId>maven-source-plugin</artifactId> |
207 |
<executions>
|
208 |
<execution>
|
209 |
<id>attach-sources</id> |
210 |
<goals>
|
211 |
<goal>jar</goal> |
212 |
</goals>
|
213 |
</execution>
|
214 |
</executions>
|
215 |
<inherited>true</inherited> |
216 |
</plugin>
|
217 |
</plugins>
|
218 |
</build>
|
219 |
<dependencies>
|
220 |
<dependency>
|
221 |
<groupId>net.sourceforge.cobertura</groupId> |
222 |
<artifactId>cobertura-runtime</artifactId> |
223 |
<version>${cobertura.version}</version> |
224 |
<!-- <scope>provided</scope> -->
|
225 |
<scope>compile</scope> |
226 |
<type>pom</type> |
227 |
</dependency>
|
228 |
</dependencies>
|
229 |
</profile>
|
230 |
<profile>
|
231 |
<id>env-staging-agro</id> |
232 |
<activation>
|
233 |
<property>
|
234 |
<name>env</name> |
235 |
<value>staging-agro</value> |
236 |
</property>
|
237 |
</activation>
|
238 |
<distributionManagement>
|
239 |
<snapshotRepository>
|
240 |
<id>agro.nexus.repo</id> |
241 |
<name>Agro Nexus Repo</name> |
242 |
<url>scp://10.6.6.20/cygdrive/d/programs/sonatype-work/nexus/storage/snapshots</url> |
243 |
</snapshotRepository>
|
244 |
</distributionManagement>
|
245 |
</profile>
|
246 |
</profiles>
|
247 |
|
248 |
<dependencies>
|
249 |
<dependency>
|
250 |
<groupId>junit</groupId> |
251 |
<artifactId>junit</artifactId> |
252 |
<version>3.8.1</version> |
253 |
<scope>test</scope> |
254 |
</dependency>
|
255 |
<dependency>
|
256 |
<groupId>log4j</groupId> |
257 |
<artifactId>log4j</artifactId> |
258 |
<version>1.2.14</version> |
259 |
<scope>compile</scope> |
260 |
</dependency>
|
261 |
<!-- ORACLE database driver -->
|
262 |
<dependency>
|
263 |
<groupId>com.oracle.jdbc</groupId> |
264 |
<artifactId>com.springsource.oracle.jdbc</artifactId> |
265 |
<version>10.2.0.2</version> |
266 |
</dependency>
|
267 |
<dependency>
|
268 |
<groupId>commons-lang</groupId> |
269 |
<artifactId>commons-lang</artifactId> |
270 |
<version>2.5</version> |
271 |
</dependency>
|
272 |
</dependencies>
|
273 |
</project>
|