Statistics
| Branch: | Revision:

m2u-upass-min / pom.xml @ 11:45993ab31d47

History | View | Annotate | Download (8.19 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 7:e912bfacf318 hadi
                                                                                <copy
70
                                                                                        file="src/main/resources/upassMin${config.postfix}.properties"
71 0:c1ee3980763c hadi
                                                                                        tofile="${project.build.outputDirectory}/upassMin.properties" />
72
73
                                                                                <delete>
74
                                                                                        <fileset dir="${project.build.outputDirectory}"
75
                                                                                                includes="upassMin.*.properties" />
76
                                                                                </delete>
77
                                                                        </target>
78
                                                                </configuration>
79
                                                                <goals>
80
                                                                        <goal>run</goal>
81
                                                                </goals>
82
                                                        </execution>
83
                                                </executions>
84
                                        </plugin>
85
                                </plugins>
86
                        </build>
87
                </profile>
88
                <profile>
89 1:a62b3ba1eae3 hadi
                        <id>env-dev-penril</id>
90
                        <activation>
91
                                <property>
92
                                        <name>env</name>
93
                                        <value>dev-penril</value>
94
                                </property>
95
                        </activation>
96
                        <properties>
97
                                <config.postfix>.dev-penril</config.postfix>
98
                        </properties>
99
                </profile>
100
                <profile>
101 0:c1ee3980763c hadi
                        <id>env-staging-ci</id>
102
                        <activation>
103
                                <property>
104
                                        <name>env</name>
105
                                        <value>staging-ci</value>
106
                                </property>
107
                        </activation>
108
                        <properties>
109
                                <config.postfix>.staging-ci</config.postfix>
110
                        </properties>
111
                </profile>
112
                <profile>
113
                        <id>cobertura-instrument</id>
114
                        <activation>
115
                                <property>
116
                                        <name>cobertura-build</name>
117
                                </property>
118
                        </activation>
119
                        <build>
120
                                <plugins>
121
                                        <plugin>
122 6:963eb96a0f3f hadi
                                                <artifactId>maven-jar-plugin</artifactId>
123
                                                <configuration>
124
                                                        <classifier>instrumented</classifier>
125
                                                </configuration>
126
                                        </plugin>
127
                                        <plugin>
128 0:c1ee3980763c hadi
                                                <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 11:45993ab31d47 mohd
                         <groupId>org.hibernate</groupId>
251
                         <artifactId>hibernate-core</artifactId>
252
                         <version>3.3.1.GA</version>
253
                         <type>jar</type>
254
                         <scope>compile</scope>
255
                 </dependency>
256 10:0653f74f4280 mohd
                <dependency>
257 0:c1ee3980763c hadi
                        <groupId>junit</groupId>
258
                        <artifactId>junit</artifactId>
259
                        <version>3.8.1</version>
260
                        <scope>test</scope>
261
                </dependency>
262
                <dependency>
263
                        <groupId>log4j</groupId>
264
                        <artifactId>log4j</artifactId>
265
                        <version>1.2.14</version>
266
                        <scope>compile</scope>
267
                </dependency>
268
                <!-- ORACLE database driver -->
269
                <dependency>
270
                        <groupId>com.oracle.jdbc</groupId>
271
                        <artifactId>com.springsource.oracle.jdbc</artifactId>
272
                        <version>10.2.0.2</version>
273
                </dependency>
274
                <dependency>
275
                        <groupId>commons-lang</groupId>
276
                        <artifactId>commons-lang</artifactId>
277
                        <version>2.5</version>
278
                </dependency>
279
        </dependencies>
280
</project>