Statistics
| Branch: | Revision:

m2u-upass-min / pom.xml @ 17:558c3496b87e

History | View | Annotate | Download (8.53 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 17:558c3496b87e mohd
                                                                                <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 0:c1ee3980763c hadi
                                                                        </target>
89
                                                                </configuration>
90
                                                                <goals>
91
                                                                        <goal>run</goal>
92
                                                                </goals>
93
                                                        </execution>
94
                                                </executions>
95
                                        </plugin>
96
                                </plugins>
97
                        </build>
98
                </profile>
99
                <profile>
100 1:a62b3ba1eae3 hadi
                        <id>env-dev-penril</id>
101
                        <activation>
102
                                <property>
103
                                        <name>env</name>
104
                                        <value>dev-penril</value>
105
                                </property>
106
                        </activation>
107
                        <properties>
108
                                <config.postfix>.dev-penril</config.postfix>
109
                        </properties>
110
                </profile>
111
                <profile>
112 0:c1ee3980763c hadi
                        <id>env-staging-ci</id>
113
                        <activation>
114
                                <property>
115
                                        <name>env</name>
116
                                        <value>staging-ci</value>
117
                                </property>
118
                        </activation>
119
                        <properties>
120
                                <config.postfix>.staging-ci</config.postfix>
121
                        </properties>
122
                </profile>
123
                <profile>
124 17:558c3496b87e mohd
                        <id>env-maybank-dev</id>
125
                        <activation>
126
                                <property>
127
                                        <name>env</name>
128
                                        <value>maybank-dev</value>
129
                                </property>
130
                        </activation>
131
                        <properties>
132
                                <config.postfix>.maybank-dev</config.postfix>
133
                        </properties>
134
                </profile>
135
                <profile>
136 0:c1ee3980763c hadi
                        <id>cobertura-instrument</id>
137
                        <activation>
138
                                <property>
139
                                        <name>cobertura-build</name>
140
                                </property>
141
                        </activation>
142
                        <build>
143
                                <plugins>
144
                                        <plugin>
145 6:963eb96a0f3f hadi
                                                <artifactId>maven-jar-plugin</artifactId>
146
                                                <configuration>
147
                                                        <classifier>instrumented</classifier>
148
                                                </configuration>
149
                                        </plugin>
150
                                        <plugin>
151 0:c1ee3980763c hadi
                                                <groupId>org.codehaus.mojo</groupId>
152
                                                <artifactId>cobertura-maven-plugin</artifactId>
153
                                                <configuration>
154
                                                        <formats>
155
                                                                <format>html</format>
156
                                                                <format>xml</format>
157
                                                        </formats>
158
159
                                                        <instrumentation>
160
                                                                <ignores>
161
                                                                        <!-- <ignore>com.example.boringcode.*</ignore> -->
162
163
                                                                        <!-- <ignore>my.com.upass.SelfTest</ignore> -->
164
                                                                </ignores>
165
                                                                <excludes>
166
                                                                        <!-- <exclude>com/example/dullcode/**/*.class</exclude> <exclude>com/example/**/*Test.class</exclude> -->
167
                                                                        <!-- <exclude>my/com/upass/UPassController.class</exclude> -->
168
                                                                        <exclude>my/com/upass/GemaltoTest*.class</exclude>
169
                                                                        <exclude>my/com/upass/GemaltoTokenBean*.class</exclude>
170
                                                                        <exclude>my/com/upass/UPassController*.class</exclude>
171
                                                                        <exclude>my/com/upass/UPassControllerExt*.class</exclude>
172
                                                                        <exclude>my/com/upass/db/DBOperations*.class</exclude>
173
                                                                        <exclude>my/com/upass/dao/hibernate/UserGemaltoDAOHibernate*.class</exclude>
174
                                                                        <exclude>my/com/upass/dao/hibernate/UserSecureMetricDAOHibernate*.class</exclude>
175
                                                                        <exclude>my/com/upass/dao/hibernate/UserVascoDAOHibernate*.class</exclude>
176
                                                                        <exclude>my/com/upass/SelfTest*.class</exclude>
177
                                                                        <exclude>my/com/upass/gemalto/**/*.class</exclude>
178
                                                                        <exclude>my/com/upass/secure/**/*.class</exclude>
179
                                                                        <exclude>my/com/upass/security/**/*.class</exclude>
180
                                                                        <exclude>my/com/upass/vasco/**/*.class</exclude>
181
                                                                        <exclude>my/com/upass/services/*Token*.class</exclude>
182
                                                                        <exclude>my/com/upass/services/*SecurityCode*.class</exclude>
183
                                                                        <exclude>my/com/upass/dao/*Token*.class</exclude>
184
                                                                        <exclude>my/com/upass/dao/*SecurityCode*.class</exclude>
185
                                                                        <exclude>my/com/upass/dao/**/*Token*.class</exclude>
186
                                                                        <exclude>my/com/upass/dao/**/*SecurityCode*.class</exclude>
187
                                                                        <exclude>my/com/upass/pojo/*Token*.class</exclude>
188
                                                                        <exclude>my/com/upass/pojo/SecurityCode*.class</exclude>
189
                                                                </excludes>
190
                                                        </instrumentation>
191
192
                                                        <!-- TODO: To be configured... -->
193
                                                        <check>
194
                                                                <branchRate>85</branchRate>
195
                                                                <lineRate>85</lineRate>
196
                                                                <haltOnFailure>true</haltOnFailure>
197
                                                                <totalBranchRate>85</totalBranchRate>
198
                                                                <totalLineRate>85</totalLineRate>
199
                                                                <packageLineRate>85</packageLineRate>
200
                                                                <packageBranchRate>85</packageBranchRate>
201
                                                                <regexes>
202
                                                                        <regex>
203
                                                                                <pattern>com.example.reallyimportant.*</pattern>
204
                                                                                <branchRate>90</branchRate>
205
                                                                                <lineRate>80</lineRate>
206
                                                                        </regex>
207
                                                                        <regex>
208
                                                                                <pattern>com.example.boringcode.*</pattern>
209
                                                                                <branchRate>40</branchRate>
210
                                                                                <lineRate>30</lineRate>
211
                                                                        </regex>
212
                                                                </regexes>
213
                                                        </check>
214
                                                </configuration>
215
                                                <executions>
216
                                                        <execution>
217
                                                                <id>instrument-code</id>
218
                                                                <phase>process-classes</phase>
219
                                                                <goals>
220
                                                                        <goal>instrument</goal>
221
                                                                </goals>
222
                                                                <configuration>
223
                                                                        <attach>true</attach>
224
                                                                </configuration>
225
                                                        </execution>
226
                                                </executions>
227
                                        </plugin>
228
                                        <plugin>
229
                                                <artifactId>maven-source-plugin</artifactId>
230
                                                <executions>
231
                                                        <execution>
232
                                                                <id>attach-sources</id>
233
                                                                <goals>
234
                                                                        <goal>jar</goal>
235
                                                                </goals>
236
                                                        </execution>
237
                                                </executions>
238
                                                <inherited>true</inherited>
239
                                        </plugin>
240
                                </plugins>
241
                        </build>
242
                        <dependencies>
243
                                <dependency>
244
                                        <groupId>net.sourceforge.cobertura</groupId>
245
                                        <artifactId>cobertura-runtime</artifactId>
246
                                        <version>${cobertura.version}</version>
247
                                        <!-- <scope>provided</scope> -->
248
                                        <scope>compile</scope>
249
                                        <type>pom</type>
250
                                </dependency>
251
                        </dependencies>
252
                </profile>
253
        </profiles>
254
255
        <dependencies>
256
                <dependency>
257 11:45993ab31d47 mohd
                         <groupId>org.hibernate</groupId>
258
                         <artifactId>hibernate-core</artifactId>
259
                         <version>3.3.1.GA</version>
260
                         <type>jar</type>
261
                         <scope>compile</scope>
262
                 </dependency>
263 10:0653f74f4280 mohd
                <dependency>
264 0:c1ee3980763c hadi
                        <groupId>junit</groupId>
265
                        <artifactId>junit</artifactId>
266
                        <version>3.8.1</version>
267
                        <scope>test</scope>
268
                </dependency>
269
                <dependency>
270
                        <groupId>log4j</groupId>
271
                        <artifactId>log4j</artifactId>
272
                        <version>1.2.14</version>
273
                        <scope>compile</scope>
274
                </dependency>
275
                <!-- ORACLE database driver -->
276
                <dependency>
277
                        <groupId>com.oracle.jdbc</groupId>
278
                        <artifactId>com.springsource.oracle.jdbc</artifactId>
279
                        <version>10.2.0.2</version>
280
                </dependency>
281
                <dependency>
282
                        <groupId>commons-lang</groupId>
283
                        <artifactId>commons-lang</artifactId>
284
                        <version>2.5</version>
285
                </dependency>
286
        </dependencies>
287
</project>