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