Statistics
| Branch: | Revision:

m2u-upass-min / pom.xml @ 8:391b81e07ab4

History | View | Annotate | Download (8.18 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
                </snapshotRepository>
21
        </distributionManagement>
22
        <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
                                                                                <copy
69
                                                                                        file="src/main/resources/upassMin${config.postfix}.properties"
70
                                                                                        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
                        <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
                        <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
                                                <artifactId>maven-jar-plugin</artifactId>
122
                                                <configuration>
123
                                                        <classifier>instrumented</classifier>
124
                                                </configuration>
125
                                        </plugin>
126
                                        <plugin>
127
                                                <groupId>org.apache.maven.plugins</groupId>
128
                                                <artifactId>maven-deploy-plugin</artifactId>
129
                                                <configuration>
130
                                                        <uniqueVersion>false</uniqueVersion>
131
                                                </configuration>
132
                                        </plugin>
133
                                        <plugin>
134
                                                <groupId>org.codehaus.mojo</groupId>
135
                                                <artifactId>cobertura-maven-plugin</artifactId>
136
                                                <configuration>
137
                                                        <formats>
138
                                                                <format>html</format>
139
                                                                <format>xml</format>
140
                                                        </formats>
141

    
142
                                                        <instrumentation>
143
                                                                <ignores>
144
                                                                        <!-- <ignore>com.example.boringcode.*</ignore> -->
145

    
146
                                                                        <!-- <ignore>my.com.upass.SelfTest</ignore> -->
147
                                                                </ignores>
148
                                                                <excludes>
149
                                                                        <!-- <exclude>com/example/dullcode/**/*.class</exclude> <exclude>com/example/**/*Test.class</exclude> -->
150
                                                                        <!-- <exclude>my/com/upass/UPassController.class</exclude> -->
151
                                                                        <exclude>my/com/upass/GemaltoTest*.class</exclude>
152
                                                                        <exclude>my/com/upass/GemaltoTokenBean*.class</exclude>
153
                                                                        <exclude>my/com/upass/UPassController*.class</exclude>
154
                                                                        <exclude>my/com/upass/UPassControllerExt*.class</exclude>
155
                                                                        <exclude>my/com/upass/db/DBOperations*.class</exclude>
156
                                                                        <exclude>my/com/upass/dao/hibernate/UserGemaltoDAOHibernate*.class</exclude>
157
                                                                        <exclude>my/com/upass/dao/hibernate/UserSecureMetricDAOHibernate*.class</exclude>
158
                                                                        <exclude>my/com/upass/dao/hibernate/UserVascoDAOHibernate*.class</exclude>
159
                                                                        <exclude>my/com/upass/SelfTest*.class</exclude>
160
                                                                        <exclude>my/com/upass/gemalto/**/*.class</exclude>
161
                                                                        <exclude>my/com/upass/secure/**/*.class</exclude>
162
                                                                        <exclude>my/com/upass/security/**/*.class</exclude>
163
                                                                        <exclude>my/com/upass/vasco/**/*.class</exclude>
164
                                                                        <exclude>my/com/upass/services/*Token*.class</exclude>
165
                                                                        <exclude>my/com/upass/services/*SecurityCode*.class</exclude>
166
                                                                        <exclude>my/com/upass/dao/*Token*.class</exclude>
167
                                                                        <exclude>my/com/upass/dao/*SecurityCode*.class</exclude>
168
                                                                        <exclude>my/com/upass/dao/**/*Token*.class</exclude>
169
                                                                        <exclude>my/com/upass/dao/**/*SecurityCode*.class</exclude>
170
                                                                        <exclude>my/com/upass/pojo/*Token*.class</exclude>
171
                                                                        <exclude>my/com/upass/pojo/SecurityCode*.class</exclude>
172
                                                                </excludes>
173
                                                        </instrumentation>
174

    
175
                                                        <!-- TODO: To be configured... -->
176
                                                        <check>
177
                                                                <branchRate>85</branchRate>
178
                                                                <lineRate>85</lineRate>
179
                                                                <haltOnFailure>true</haltOnFailure>
180
                                                                <totalBranchRate>85</totalBranchRate>
181
                                                                <totalLineRate>85</totalLineRate>
182
                                                                <packageLineRate>85</packageLineRate>
183
                                                                <packageBranchRate>85</packageBranchRate>
184
                                                                <regexes>
185
                                                                        <regex>
186
                                                                                <pattern>com.example.reallyimportant.*</pattern>
187
                                                                                <branchRate>90</branchRate>
188
                                                                                <lineRate>80</lineRate>
189
                                                                        </regex>
190
                                                                        <regex>
191
                                                                                <pattern>com.example.boringcode.*</pattern>
192
                                                                                <branchRate>40</branchRate>
193
                                                                                <lineRate>30</lineRate>
194
                                                                        </regex>
195
                                                                </regexes>
196
                                                        </check>
197
                                                </configuration>
198
                                                <executions>
199
                                                        <execution>
200
                                                                <id>instrument-code</id>
201
                                                                <phase>process-classes</phase>
202
                                                                <goals>
203
                                                                        <goal>instrument</goal>
204
                                                                </goals>
205
                                                                <configuration>
206
                                                                        <attach>true</attach>
207
                                                                </configuration>
208
                                                        </execution>
209
                                                </executions>
210
                                        </plugin>
211
                                        <plugin>
212
                                                <artifactId>maven-source-plugin</artifactId>
213
                                                <executions>
214
                                                        <execution>
215
                                                                <id>attach-sources</id>
216
                                                                <goals>
217
                                                                        <goal>jar</goal>
218
                                                                </goals>
219
                                                        </execution>
220
                                                </executions>
221
                                                <inherited>true</inherited>
222
                                        </plugin>
223
                                </plugins>
224
                        </build>
225
                        <dependencies>
226
                                <dependency>
227
                                        <groupId>net.sourceforge.cobertura</groupId>
228
                                        <artifactId>cobertura-runtime</artifactId>
229
                                        <version>${cobertura.version}</version>
230
                                        <!-- <scope>provided</scope> -->
231
                                        <scope>compile</scope>
232
                                        <type>pom</type>
233
                                </dependency>
234
                        </dependencies>
235
                </profile>
236
                <profile>
237
                        <id>env-staging-agro</id>
238
                        <activation>
239
                                <property>
240
                                        <name>env</name>
241
                                        <value>staging-agro</value>
242
                                </property>
243
                        </activation>
244
                        <distributionManagement>
245
                                <snapshotRepository>
246
                                        <id>agro.nexus.repo</id>
247
                                        <name>Agro Nexus Repo</name>
248
                                        <url>scp://10.6.6.20/cygdrive/d/programs/sonatype-work/nexus/storage/snapshots</url>
249
                                </snapshotRepository>
250
                        </distributionManagement>
251
                </profile>
252
        </profiles>
253

    
254
        <dependencies>
255
                <dependency>
256
                        <groupId>junit</groupId>
257
                        <artifactId>junit</artifactId>
258
                        <version>3.8.1</version>
259
                        <scope>test</scope>
260
                </dependency>
261
                <dependency>
262
                        <groupId>log4j</groupId>
263
                        <artifactId>log4j</artifactId>
264
                        <version>1.2.14</version>
265
                        <scope>compile</scope>
266
                </dependency>
267
                <!-- ORACLE database driver -->
268
                <dependency>
269
                        <groupId>com.oracle.jdbc</groupId>
270
                        <artifactId>com.springsource.oracle.jdbc</artifactId>
271
                        <version>10.2.0.2</version>
272
                </dependency>
273
                <dependency>
274
                        <groupId>commons-lang</groupId>
275
                        <artifactId>commons-lang</artifactId>
276
                        <version>2.5</version>
277
                </dependency>
278
        </dependencies>
279
</project>