Statistics
| Branch: | Revision:

m2u-upass-min / pom.xml @ 120:a9f1f5b7505b

History | View | Annotate | Download (7.45 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
                        <uniqueVersion>false</uniqueVersion>
21
                </snapshotRepository>
22
        </distributionManagement>
23
        <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>cobertura-instrument</id>
53
                        <activation>
54
                                <property>
55
                                        <name>cobertura-build</name>
56
                                </property>
57
                        </activation>
58
                        <build>
59
                                <plugins>
60
                                        <plugin>
61
                                                <artifactId>maven-jar-plugin</artifactId>
62
                                                <configuration>
63
                                                        <classifier>instrumented</classifier>
64
                                                </configuration>
65
                                        </plugin>
66
                                        <plugin>
67
                                                <groupId>org.codehaus.mojo</groupId>
68
                                                <artifactId>cobertura-maven-plugin</artifactId>
69
                                                <configuration>
70
                                                        <formats>
71
                                                                <format>html</format>
72
                                                                <format>xml</format>
73
                                                        </formats>
74

    
75
                                                        <instrumentation>
76
                                                                <ignores>
77
                                                                        <!-- <ignore>com.example.boringcode.*</ignore> -->
78

    
79
                                                                        <!-- <ignore>my.com.upass.SelfTest</ignore> -->
80
                                                                </ignores>
81
                                                                <excludes>
82
                                                                        <!-- <exclude>com/example/dullcode/**/*.class</exclude> <exclude>com/example/**/*Test.class</exclude> -->
83
                                                                        <!-- <exclude>my/com/upass/UPassController.class</exclude> -->
84
                                                                        <exclude>my/com/upass/GemaltoTest*.class</exclude>
85
                                                                        <exclude>my/com/upass/GemaltoTokenBean*.class</exclude>
86
                                                                        <exclude>my/com/upass/MinimalUPassController.class</exclude>
87
                                                                        <exclude>my/com/upass/UPassControllerExt*.class</exclude>
88
                                                                        <exclude>my/com/upass/db/MinimalDbOperations.class</exclude>
89
                                                                        <exclude>my/com/upass/dao/hibernate/UserGemaltoDAOHibernate*.class</exclude>
90
                                                                        <exclude>my/com/upass/dao/hibernate/UserSecureMetricDAOHibernate*.class</exclude>
91
                                                                        <exclude>my/com/upass/dao/hibernate/UserVascoDAOHibernate*.class</exclude>
92
                                                                        <exclude>my/com/upass/SelfTest*.class</exclude>
93
                                                                        <exclude>my/com/upass/gemalto/**/*.class</exclude>
94
                                                                        <exclude>my/com/upass/secure/**/*.class</exclude>
95
                                                                        <exclude>my/com/upass/security/**/*.class</exclude>
96
                                                                        <exclude>my/com/upass/vasco/**/*.class</exclude>
97
                                                                        <exclude>my/com/upass/services/*Token*.class</exclude>
98
                                                                        <exclude>my/com/upass/services/*SecurityCode*.class</exclude>
99
                                                                        <exclude>my/com/upass/dao/*Tac*.class</exclude>
100
                                                                        <exclude>my/com/upass/dao/*Token*.class</exclude>
101
                                                                        <exclude>my/com/upass/dao/*SecurityCode*.class</exclude>
102
                                                                        <exclude>my/com/upass/dao/**/*Token*.class</exclude>
103
                                                                        <exclude>my/com/upass/dao/**/*SecurityCode*.class</exclude>
104
                                                                        <exclude>my/com/upass/pojo/*Token*.class</exclude>
105
                                                                        <exclude>my/com/upass/pojo/SecurityCode*.class</exclude>
106
                                                                </excludes>
107
                                                        </instrumentation>
108

    
109
                                                        <!-- TODO: To be configured... -->
110
                                                        <check>
111
                                                                <branchRate>85</branchRate>
112
                                                                <lineRate>85</lineRate>
113
                                                                <haltOnFailure>true</haltOnFailure>
114
                                                                <totalBranchRate>85</totalBranchRate>
115
                                                                <totalLineRate>85</totalLineRate>
116
                                                                <packageLineRate>85</packageLineRate>
117
                                                                <packageBranchRate>85</packageBranchRate>
118
                                                                <regexes>
119
                                                                        <regex>
120
                                                                                <pattern>com.example.reallyimportant.*</pattern>
121
                                                                                <branchRate>90</branchRate>
122
                                                                                <lineRate>80</lineRate>
123
                                                                        </regex>
124
                                                                        <regex>
125
                                                                                <pattern>com.example.boringcode.*</pattern>
126
                                                                                <branchRate>40</branchRate>
127
                                                                                <lineRate>30</lineRate>
128
                                                                        </regex>
129
                                                                </regexes>
130
                                                        </check>
131
                                                </configuration>
132
                                                <executions>
133
                                                        <execution>
134
                                                                <id>instrument-code</id>
135
                                                                <phase>process-classes</phase>
136
                                                                <goals>
137
                                                                        <goal>instrument</goal>
138
                                                                </goals>
139
                                                                <configuration>
140
                                                                        <attach>true</attach>
141
                                                                </configuration>
142
                                                        </execution>
143
                                                </executions>
144
                                        </plugin>
145
                                        <plugin>
146
                                                <artifactId>maven-source-plugin</artifactId>
147
                                                <executions>
148
                                                        <execution>
149
                                                                <id>attach-sources</id>
150
                                                                <goals>
151
                                                                        <goal>jar</goal>
152
                                                                </goals>
153
                                                        </execution>
154
                                                </executions>
155
                                                <inherited>true</inherited>
156
                                        </plugin>
157
                                </plugins>
158
                        </build>
159
                        <dependencies>
160
                                <dependency>
161
                                        <groupId>net.sourceforge.cobertura</groupId>
162
                                        <artifactId>cobertura-runtime</artifactId>
163
                                        <version>${cobertura.version}</version>
164
                                        <!-- <scope>provided</scope> -->
165
                                        <scope>compile</scope>
166
                                        <type>pom</type>
167
                                </dependency>
168
                                <dependency>
169
                                        <groupId>org.hibernate</groupId>
170
                                        <artifactId>hibernate-core</artifactId>
171
                                        <version>3.3.1.GA</version>
172
                                        <type>jar</type>
173
                                        <scope>compile</scope>
174
                                </dependency>
175
                        </dependencies>
176
                </profile>
177
        </profiles>
178

    
179
        <dependencies>
180
                <dependency>
181
                        <groupId>org.hibernate</groupId>
182
                        <artifactId>hibernate-core</artifactId>
183
                        <version>3.3.1.GA</version>
184
                        <type>jar</type>
185
                        <scope>compile</scope>
186
                </dependency>
187
                <dependency>
188
                        <groupId>junit</groupId>
189
                        <artifactId>junit</artifactId>
190
                        <version>3.8.1</version>
191
                        <scope>test</scope>
192
                </dependency>
193
                <dependency>
194
                        <groupId>log4j</groupId>
195
                        <artifactId>log4j</artifactId>
196
                        <version>1.2.14</version>
197
                        <scope>compile</scope>
198
                </dependency>
199
                <!-- ORACLE database driver -->
200
                <dependency>
201
                        <groupId>com.oracle.jdbc</groupId>
202
                        <artifactId>com.springsource.oracle.jdbc</artifactId>
203
                        <version>10.2.0.2</version>
204
                </dependency>
205
                <dependency>
206
                        <groupId>commons-lang</groupId>
207
                        <artifactId>commons-lang</artifactId>
208
                        <version>2.5</version>
209
                </dependency>
210
                <dependency>
211
                        <groupId>org.springframework.ldap</groupId>
212
                        <artifactId>spring-ldap-core</artifactId>
213
                        <version>1.3.0.RELEASE</version>
214
                </dependency>
215
                <dependency>
216
                        <groupId>org.slf4j</groupId>
217
                        <artifactId>slf4j-simple</artifactId>
218
                        <version>1.5.6</version>
219
                        <type>jar</type>
220
                        <scope>compile</scope>
221
                </dependency>
222
                <dependency>
223
                        <groupId>org.slf4j</groupId>
224
                        <artifactId>slf4j-api</artifactId>
225
                        <version>1.5.6</version>
226
                        <type>jar</type>
227
                        <scope>compile</scope>
228
                </dependency>
229
                <dependency>
230
                        <groupId>org.slf4j</groupId>
231
                        <artifactId>slf4j-log4j12</artifactId>
232
                        <version>1.5.6</version>
233
                        <type>jar</type>
234
                        <scope>compile</scope>
235
                </dependency>
236
                <dependency>
237
                        <groupId>javassist</groupId>
238
                        <artifactId>javassist</artifactId>
239
                        <version>3.4.GA</version>
240
                        <type>jar</type>
241
                        <scope>compile</scope>
242
                </dependency>
243
        </dependencies>
244
</project>