blob: bbe51bf2ac977ece8b5c9a05e0488111d875322e [file] [log] [blame]
Brian O'Connor5af8a942014-11-26 12:17:40 -08001<?xml version="1.0" encoding="UTF-8"?>
Thomas Vachuska7399e482014-12-01 21:27:42 -08002<!--
3 ~ Copyright 2014 Open Networking Laboratory
4 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
16 -->
tom09419512014-08-15 11:28:43 -070017<project xmlns="http://maven.apache.org/POM/4.0.0"
18 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20 <modelVersion>4.0.0</modelVersion>
alshabib522d9872014-08-15 10:35:16 -070021
Thomas Vachuskaabfe8d32014-10-23 15:59:32 -070022 <prerequisites>
23 <maven>3.0.0</maven>
24 </prerequisites>
25
Brian O'Connor932d9412014-12-03 17:20:11 -080026 <parent>
27 <groupId>org.onosproject</groupId>
28 <artifactId>onos-base</artifactId>
29 <version>1</version>
30 <relativePath>tools/build/pom.xml</relativePath>
31 </parent>
Brian O'Connoreb8e3ea2014-12-03 17:53:33 -080032
33 <!-- FIXME remove before release -->
34 <repositories>
35 <repository>
36 <id>oss-staging</id>
37 <name>OSS Staging</name>
38 <url>https://oss.sonatype.org/content/groups/staging</url>
39 </repository>
40 </repositories>
Brian O'Connor932d9412014-12-03 17:20:11 -080041
Brian O'Connorabafb502014-12-02 22:26:20 -080042 <groupId>org.onosproject</groupId>
tom09419512014-08-15 11:28:43 -070043 <artifactId>onos</artifactId>
44 <packaging>pom</packaging>
45 <version>1.0.0-SNAPSHOT</version>
alshabib522d9872014-08-15 10:35:16 -070046
Brian O'Connor932d9412014-12-03 17:20:11 -080047 <name>${project.artifactId}</name>
Yuta HIGUCHI964c1732014-12-02 20:38:07 -080048 <description>Open Network Operating System root project</description>
tom09419512014-08-15 11:28:43 -070049
50 <modules>
tom0eb04ca2014-08-25 14:34:51 -070051 <module>utils</module>
tome2dc27a2014-09-09 12:41:21 -070052 <module>core</module>
tom0eb04ca2014-08-25 14:34:51 -070053 <module>web</module>
54 <module>cli</module>
55 <module>providers</module>
tomf8b8d672014-09-17 13:07:23 -070056 <module>openflow</module>
tom8bb16062014-09-12 14:47:46 -070057 <module>apps</module>
tom09419512014-08-15 11:28:43 -070058 <module>features</module>
tomaa49a1e2014-09-12 23:11:46 -070059 <module>tools/package/branding</module>
tom09419512014-08-15 11:28:43 -070060 </modules>
61
Brian O'Connor3439c102014-12-03 01:02:03 -080062 <url>http://onosproject.org/</url>
tom09419512014-08-15 11:28:43 -070063
Brian O'Connor932d9412014-12-03 17:20:11 -080064 <scm>
65 <connection>scm:git:https://gerrit.onosproject.org/onos</connection>
66 <developerConnection>scm:git:https://gerrit.onosproject.org/onos</developerConnection>
67 <url>http://gerrit.onosproject.org/</url>
68 </scm>
69
tom09419512014-08-15 11:28:43 -070070 <licenses>
71 <license>
tom09419512014-08-15 11:28:43 -070072 <name>Apache License, Version 2.0</name>
73 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
74 </license>
75 </licenses>
76
Yuta HIGUCHIe2efe722014-09-19 14:37:34 -070077 <properties>
78 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Yuta HIGUCHIceff7b02014-10-20 18:32:25 -070079 <netty4.version>4.0.23.Final</netty4.version>
Brian O'Connor932d9412014-12-03 17:20:11 -080080 <copycat.version>0.3.0.onos</copycat.version>
81 <openflowj.version>0.3.7.oe</openflowj.version>
Yuta HIGUCHIe2efe722014-09-19 14:37:34 -070082 </properties>
83
Brian O'Connor932d9412014-12-03 17:20:11 -080084 <distributionManagement>
85 <snapshotRepository>
86 <id>ossrh</id>
87 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
88 </snapshotRepository>
89 </distributionManagement>
Yuta HIGUCHI275fb6b2014-11-04 08:33:13 -080090
tom0eb04ca2014-08-25 14:34:51 -070091 <dependencyManagement>
92 <dependencies>
93 <dependency>
94 <groupId>junit</groupId>
95 <artifactId>junit</artifactId>
96 <version>4.11</version>
97 <scope>test</scope>
98 </dependency>
tom09419512014-08-15 11:28:43 -070099
tom0eb04ca2014-08-25 14:34:51 -0700100 <dependency>
Brian O'Connorf3d06162014-10-02 15:54:12 -0700101 <groupId>org.hamcrest</groupId>
102 <artifactId>hamcrest-core</artifactId>
103 <version>1.3</version>
104 <scope>test</scope>
105 </dependency>
106 <dependency>
107 <groupId>org.hamcrest</groupId>
108 <artifactId>hamcrest-library</artifactId>
109 <version>1.3</version>
110 <scope>test</scope>
111 </dependency>
112
113 <dependency>
tom0eb04ca2014-08-25 14:34:51 -0700114 <groupId>org.slf4j</groupId>
115 <artifactId>slf4j-api</artifactId>
116 <version>1.7.6</version>
117 <scope>provided</scope>
118 </dependency>
119
120 <dependency>
121 <groupId>org.slf4j</groupId>
pankajb57fae22014-10-06 18:28:21 -0700122 <artifactId>slf4j-core</artifactId>
123 <version>1.7.6</version>
124 <scope>test</scope>
125 </dependency>
126
127 <dependency>
128 <groupId>org.slf4j</groupId>
tom0eb04ca2014-08-25 14:34:51 -0700129 <artifactId>slf4j-jdk14</artifactId>
130 <version>1.7.6</version>
131 <scope>test</scope>
132 </dependency>
133
134 <dependency>
135 <groupId>com.google.guava</groupId>
136 <artifactId>guava</artifactId>
tomeadbb462014-09-07 16:10:19 -0700137 <version>18.0</version>
tom0eb04ca2014-08-25 14:34:51 -0700138 </dependency>
139
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700140 <dependency>
Madan Jampania185d862014-09-30 11:32:31 -0700141 <groupId>io.netty</groupId>
alshabibdf652ad2014-09-09 11:53:19 -0700142 <artifactId>netty</artifactId>
143 <version>3.9.0.Final</version>
144 </dependency>
145
tomde8d9682014-08-27 01:11:43 -0700146 <dependency>
147 <groupId>com.google.guava</groupId>
148 <artifactId>guava-testlib</artifactId>
tomeadbb462014-09-07 16:10:19 -0700149 <version>18.0</version>
tomde8d9682014-08-27 01:11:43 -0700150 <scope>test</scope>
151 </dependency>
152
tom6d2a43e2014-09-08 01:50:20 -0700153 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700154 <groupId>com.googlecode.concurrent-trees</groupId>
155 <artifactId>concurrent-trees</artifactId>
156 <version>2.4.0</version>
Jonathan Hart335ef462014-10-16 08:20:46 -0700157 </dependency>
158
159 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700160 <groupId>commons-lang</groupId>
tom6d2a43e2014-09-08 01:50:20 -0700161 <artifactId>commons-lang</artifactId>
162 <version>2.6</version>
163 </dependency>
tomde8d9682014-08-27 01:11:43 -0700164
tom66a7eb22014-09-22 11:58:56 -0700165 <dependency>
166 <groupId>org.apache.commons</groupId>
167 <artifactId>commons-lang3</artifactId>
168 <version>3.3.2</version>
169 </dependency>
170
Brian O'Connorf3d06162014-10-02 15:54:12 -0700171 <dependency>
Pavlin Radoslavova7243cc2014-11-22 21:38:02 -0800172 <groupId>org.apache.commons</groupId>
173 <artifactId>commons-collections4</artifactId>
174 <version>4.0</version>
175 </dependency>
176
177 <dependency>
Brian O'Connorf3d06162014-10-02 15:54:12 -0700178 <groupId>org.codehaus.jackson</groupId>
179 <artifactId>jackson-core-asl</artifactId>
180 <version>1.9.13</version>
181 </dependency>
182 <dependency>
183 <groupId>org.codehaus.jackson</groupId>
184 <artifactId>jackson-mapper-asl</artifactId>
185 <version>1.9.13</version>
186 </dependency>
Jonathan Hart74f9c3b2014-09-29 20:03:50 -0700187
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700188 <dependency>
189 <groupId>org.easymock</groupId>
190 <artifactId>easymock</artifactId>
191 <version>3.2</version>
192 <scope>test</scope>
193 </dependency>
tom66a7eb22014-09-22 11:58:56 -0700194
tom0eb04ca2014-08-25 14:34:51 -0700195 <!-- Web related -->
196 <dependency>
197 <groupId>com.sun.jersey</groupId>
198 <artifactId>jersey-servlet</artifactId>
199 <version>1.18.1</version>
200 <scope>provided</scope>
201 </dependency>
202 <dependency>
203 <groupId>com.fasterxml.jackson.core</groupId>
204 <artifactId>jackson-databind</artifactId>
205 <version>2.4.2</version>
206 <scope>provided</scope>
207 </dependency>
208 <dependency>
209 <groupId>com.fasterxml.jackson.core</groupId>
210 <artifactId>jackson-annotations</artifactId>
211 <version>2.4.2</version>
212 <scope>provided</scope>
213 </dependency>
214
215 <!-- OSGi related -->
216 <dependency>
217 <groupId>org.osgi</groupId>
218 <artifactId>org.osgi.core</artifactId>
219 <version>4.3.1</version>
220 <scope>provided</scope>
221 </dependency>
222 <dependency>
tomc16656f2014-10-15 18:30:31 -0700223 <groupId>org.osgi</groupId>
224 <artifactId>org.osgi.compendium</artifactId>
225 <version>4.3.1</version>
226 <scope>provided</scope>
227 </dependency>
228 <dependency>
tom0eb04ca2014-08-25 14:34:51 -0700229 <groupId>org.apache.felix</groupId>
230 <artifactId>org.apache.felix.scr.annotations</artifactId>
231 <version>1.9.8</version>
232 <scope>provided</scope>
233 </dependency>
234 <dependency>
235 <groupId>org.apache.karaf.shell</groupId>
236 <artifactId>org.apache.karaf.shell.console</artifactId>
Pavlin Radoslavovc5227052014-11-04 10:55:19 -0800237 <version>3.0.2</version>
tom0eb04ca2014-08-25 14:34:51 -0700238 <scope>provided</scope>
239 </dependency>
240
Yuta HIGUCHI24a086b2014-09-21 23:28:41 -0700241 <dependency>
tom14dc4d02014-09-26 12:43:14 -0700242 <groupId>org.livetribe.slp</groupId>
243 <artifactId>livetribe-slp</artifactId>
244 <version>2.2.1</version>
245 </dependency>
246
247 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700248 <groupId>com.hazelcast</groupId>
249 <artifactId>hazelcast</artifactId>
Yuta HIGUCHI9eedb462014-10-23 12:45:14 -0700250 <version>3.3.2</version>
Yuta HIGUCHI24a086b2014-09-21 23:28:41 -0700251 </dependency>
252 <dependency>
tomdc66b382014-09-22 17:05:47 -0700253 <groupId>com.eclipsesource.minimal-json</groupId>
254 <artifactId>minimal-json</artifactId>
255 <version>0.9.1</version>
256 </dependency>
257 <dependency>
Yuta HIGUCHI8ee7d4c2014-10-09 23:09:41 -0700258 <groupId>com.esotericsoftware</groupId>
259 <artifactId>kryo</artifactId>
260 <version>3.0.0</version>
261 </dependency>
262 <dependency>
263 <groupId>com.esotericsoftware</groupId>
264 <artifactId>reflectasm</artifactId>
265 <version>1.10.0</version>
266 <type>bundle</type>
267 </dependency>
268 <dependency>
269 <groupId>org.ow2.asm</groupId>
270 <artifactId>asm</artifactId>
271 <version>4.2</version>
Yuta HIGUCHI24a086b2014-09-21 23:28:41 -0700272 </dependency>
273 <dependency>
tom66a7eb22014-09-22 11:58:56 -0700274 <groupId>com.esotericsoftware</groupId>
275 <artifactId>minlog</artifactId>
276 <version>1.3.0</version>
277 </dependency>
278 <dependency>
279 <groupId>org.objenesis</groupId>
280 <artifactId>objenesis</artifactId>
281 <version>2.1</version>
282 </dependency>
Yuta HIGUCHI24a086b2014-09-21 23:28:41 -0700283
tom0eb04ca2014-08-25 14:34:51 -0700284 <!-- ONOS related -->
285 <dependency>
Brian O'Connorabafb502014-12-02 22:26:20 -0800286 <groupId>org.onosproject</groupId>
tom5f38b3a2014-08-27 23:50:54 -0700287 <artifactId>onlab-misc</artifactId>
288 <version>${project.version}</version>
289 </dependency>
tom931af4e2014-09-13 12:00:57 -0700290 <dependency>
Brian O'Connorabafb502014-12-02 22:26:20 -0800291 <groupId>org.onosproject</groupId>
tomf110fff2014-09-26 00:38:18 -0700292 <artifactId>onlab-nio</artifactId>
293 <version>${project.version}</version>
294 </dependency>
295 <dependency>
Brian O'Connorabafb502014-12-02 22:26:20 -0800296 <groupId>org.onosproject</groupId>
tom0872a172014-09-23 11:24:26 -0700297 <artifactId>onlab-osgi</artifactId>
298 <version>${project.version}</version>
299 </dependency>
300 <dependency>
Brian O'Connorabafb502014-12-02 22:26:20 -0800301 <groupId>org.onosproject</groupId>
tom931af4e2014-09-13 12:00:57 -0700302 <artifactId>onlab-junit</artifactId>
Pavlin Radoslavovd26f57a2014-10-23 17:19:45 -0700303 <version>${project.version}</version>
tom931af4e2014-09-13 12:00:57 -0700304 <scope>test</scope>
305 </dependency>
tom5f38b3a2014-08-27 23:50:54 -0700306
307 <dependency>
Brian O'Connorabafb502014-12-02 22:26:20 -0800308 <groupId>org.onosproject</groupId>
tom0eb04ca2014-08-25 14:34:51 -0700309 <artifactId>onos-api</artifactId>
310 <version>${project.version}</version>
311 </dependency>
312 <dependency>
Brian O'Connorabafb502014-12-02 22:26:20 -0800313 <groupId>org.onosproject</groupId>
tom61359e92014-09-16 15:50:27 -0700314 <artifactId>onos-api</artifactId>
315 <version>${project.version}</version>
316 <classifier>tests</classifier>
317 <scope>test</scope>
318 </dependency>
319
320 <dependency>
Brian O'Connorabafb502014-12-02 22:26:20 -0800321 <groupId>org.onosproject</groupId>
tom0eb04ca2014-08-25 14:34:51 -0700322 <artifactId>onos-of-api</artifactId>
323 <version>${project.version}</version>
324 </dependency>
Jonathan Hart335ef462014-10-16 08:20:46 -0700325
326 <dependency>
Brian O'Connorabafb502014-12-02 22:26:20 -0800327 <groupId>org.onosproject</groupId>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700328 <artifactId>onlab-thirdparty</artifactId>
329 <version>${project.version}</version>
Jonathan Hart335ef462014-10-16 08:20:46 -0700330 </dependency>
331
tom61359e92014-09-16 15:50:27 -0700332 <dependency>
Brian O'Connorabafb502014-12-02 22:26:20 -0800333 <groupId>org.onosproject</groupId>
tom61359e92014-09-16 15:50:27 -0700334 <artifactId>onos-of-api</artifactId>
335 <version>${project.version}</version>
336 <classifier>tests</classifier>
337 <scope>test</scope>
338 </dependency>
Yuta HIGUCHI707a7e62014-10-02 16:35:49 -0700339 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700340 <groupId>commons-pool</groupId>
341 <artifactId>commons-pool</artifactId>
342 <version>1.6</version>
Yuta HIGUCHI707a7e62014-10-02 16:35:49 -0700343 </dependency>
Yuta HIGUCHIceff7b02014-10-20 18:32:25 -0700344 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700345 <groupId>io.netty</groupId>
346 <artifactId>netty-common</artifactId>
347 <version>${netty4.version}</version>
Yuta HIGUCHIceff7b02014-10-20 18:32:25 -0700348 </dependency>
349 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700350 <groupId>io.netty</groupId>
351 <artifactId>netty-buffer</artifactId>
352 <version>${netty4.version}</version>
Yuta HIGUCHIceff7b02014-10-20 18:32:25 -0700353 </dependency>
354 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700355 <groupId>io.netty</groupId>
356 <artifactId>netty-transport</artifactId>
357 <version>${netty4.version}</version>
Yuta HIGUCHIceff7b02014-10-20 18:32:25 -0700358 </dependency>
359 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700360 <groupId>io.netty</groupId>
361 <artifactId>netty-handler</artifactId>
362 <version>${netty4.version}</version>
Yuta HIGUCHIceff7b02014-10-20 18:32:25 -0700363 </dependency>
364 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700365 <groupId>io.netty</groupId>
366 <artifactId>netty-codec</artifactId>
367 <version>${netty4.version}</version>
Yuta HIGUCHIceff7b02014-10-20 18:32:25 -0700368 </dependency>
Madan Jampani824a7c12014-10-21 09:46:15 -0700369 <dependency>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700370 <groupId>io.netty</groupId>
371 <artifactId>netty-transport-native-epoll</artifactId>
372 <version>${netty4.version}</version>
Madan Jampani1c7b8782014-11-03 12:14:29 -0800373 <classifier>${os.detected.classifier}</classifier>
Madan Jampani824a7c12014-10-21 09:46:15 -0700374 </dependency>
Yuta HIGUCHIb87ef952014-10-28 23:34:23 -0700375 <dependency>
376 <groupId>joda-time</groupId>
377 <artifactId>joda-time</artifactId>
378 <version>2.5</version>
379 </dependency>
tom0eb04ca2014-08-25 14:34:51 -0700380 </dependencies>
381 </dependencyManagement>
382
383 <dependencies>
384 <dependency>
385 <groupId>junit</groupId>
386 <artifactId>junit</artifactId>
387 </dependency>
388 <dependency>
Brian O'Connorf3d06162014-10-02 15:54:12 -0700389 <groupId>org.hamcrest</groupId>
390 <artifactId>hamcrest-core</artifactId>
391 </dependency>
392 <dependency>
393 <groupId>org.hamcrest</groupId>
394 <artifactId>hamcrest-library</artifactId>
395 </dependency>
396 <dependency>
tom0eb04ca2014-08-25 14:34:51 -0700397 <groupId>org.slf4j</groupId>
Yuta HIGUCHI0390ffb2014-10-09 23:45:16 -0700398 <artifactId>slf4j-api</artifactId>
399 </dependency>
400 <dependency>
401 <groupId>org.slf4j</groupId>
tom0eb04ca2014-08-25 14:34:51 -0700402 <artifactId>slf4j-jdk14</artifactId>
403 </dependency>
404 </dependencies>
tom09419512014-08-15 11:28:43 -0700405
406 <build>
407 <pluginManagement>
408 <plugins>
409 <plugin>
410 <groupId>org.apache.maven.plugins</groupId>
411 <artifactId>maven-compiler-plugin</artifactId>
Yuta HIGUCHIea90aa62014-10-13 15:57:55 -0700412 <!-- TODO: update once following issue is fixed. -->
413 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
414 <version>2.5.1</version>
tom09419512014-08-15 11:28:43 -0700415 <configuration>
Yuta HIGUCHIf2548cb2014-11-03 18:02:25 -0800416 <source>1.8</source>
417 <target>1.8</target>
tom09419512014-08-15 11:28:43 -0700418 </configuration>
419 </plugin>
420
421 <plugin>
422 <groupId>org.apache.maven.plugins</groupId>
423 <artifactId>maven-surefire-plugin</artifactId>
424 <version>2.17</version>
tom64888122014-08-27 21:47:46 -0700425 <configuration>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700426 <redirectTestOutputToFile>true
427 </redirectTestOutputToFile>
tom64888122014-08-27 21:47:46 -0700428 <printSummary>true</printSummary>
Pingping32fa30c2014-10-23 15:24:26 -0700429 <excludedGroups>org.onlab.junit.IntegrationTest</excludedGroups>
tom64888122014-08-27 21:47:46 -0700430 </configuration>
tom09419512014-08-15 11:28:43 -0700431 </plugin>
432
433 <plugin>
434 <groupId>org.apache.maven.plugins</groupId>
435 <artifactId>maven-jar-plugin</artifactId>
436 <version>2.3.1</version>
437 <executions>
438 <execution>
439 <phase>package</phase>
440 <goals>
441 <goal>test-jar</goal>
442 </goals>
443 </execution>
444 </executions>
445 </plugin>
446
447 <plugin>
tom0eb04ca2014-08-25 14:34:51 -0700448 <groupId>org.apache.maven.plugins</groupId>
449 <artifactId>maven-resources-plugin</artifactId>
450 <version>2.6</version>
451 </plugin>
452
453 <plugin>
tom09419512014-08-15 11:28:43 -0700454 <groupId>org.apache.felix</groupId>
455 <artifactId>maven-bundle-plugin</artifactId>
Madan Jampani08822c42014-11-04 17:17:46 -0800456 <version>2.5.3</version>
tom09419512014-08-15 11:28:43 -0700457 <extensions>true</extensions>
458 </plugin>
459
460 <plugin>
Thomas Vachuska01a6ec02014-11-05 09:54:09 -0800461 <groupId>org.apache.maven.plugins</groupId>
462 <artifactId>maven-shade-plugin</artifactId>
463 <version>2.3</version>
464 </plugin>
465
466 <plugin>
tom09419512014-08-15 11:28:43 -0700467 <groupId>org.apache.felix</groupId>
468 <artifactId>maven-scr-plugin</artifactId>
Yuta HIGUCHIf2548cb2014-11-03 18:02:25 -0800469 <version>1.20.0</version>
tom09419512014-08-15 11:28:43 -0700470 <executions>
471 <execution>
472 <id>generate-scr-srcdescriptor</id>
473 <goals>
474 <goal>scr</goal>
475 </goals>
476 </execution>
477 </executions>
478 <configuration>
479 <supportedProjectTypes>
480 <supportedProjectType>bundle</supportedProjectType>
481 <supportedProjectType>war</supportedProjectType>
482 </supportedProjectTypes>
483 </configuration>
484 </plugin>
Ray Milkey241b96a2014-11-17 13:08:20 -0800485 <plugin>
486 <groupId>org.codehaus.mojo</groupId>
487 <artifactId>findbugs-maven-plugin</artifactId>
488 <version>3.0.0</version>
489 <dependencies>
490 <dependency>
Brian O'Connorabafb502014-12-02 22:26:20 -0800491 <groupId>org.onosproject</groupId>
Ray Milkey241b96a2014-11-17 13:08:20 -0800492 <artifactId>onos-build-conf</artifactId>
493 <version>1.0</version>
494 </dependency>
495 </dependencies>
496 <configuration>
497 <effort>Max</effort>
498 <excludeFilterFile>onos/findbugs-suppressions.xml</excludeFilterFile>
499 </configuration>
500 </plugin>
tom09419512014-08-15 11:28:43 -0700501
tom09419512014-08-15 11:28:43 -0700502 <!-- TODO: add findbugs plugin for static code analysis; for explicit invocation only -->
Brian O'Connorf3d06162014-10-02 15:54:12 -0700503 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
504 <plugin>
Thomas Vachuska5d42c6b2014-10-21 23:52:28 -0700505 <groupId>org.eclipse.m2e</groupId>
506 <artifactId>lifecycle-mapping</artifactId>
507 <version>1.0.0</version>
508 <configuration>
509 <lifecycleMappingMetadata>
510 <pluginExecutions>
511 <pluginExecution>
512 <pluginExecutionFilter>
513 <groupId>org.jacoco</groupId>
514 <artifactId>
515 jacoco-maven-plugin
516 </artifactId>
517 <versionRange>
518 [0.7.1.201405082137,)
519 </versionRange>
520 <goals>
521 <goal>prepare-agent</goal>
522 </goals>
523 </pluginExecutionFilter>
524 <action>
525 <ignore></ignore>
526 </action>
527 </pluginExecution>
528 </pluginExecutions>
529 </lifecycleMappingMetadata>
530 </configuration>
Brian O'Connorf3d06162014-10-02 15:54:12 -0700531 </plugin>
tom09419512014-08-15 11:28:43 -0700532 </plugins>
tom09419512014-08-15 11:28:43 -0700533 </pluginManagement>
tom0eb04ca2014-08-25 14:34:51 -0700534
535 <plugins>
536 <plugin>
537 <groupId>org.apache.maven.plugins</groupId>
tome33cc1a2014-08-25 21:59:41 -0700538 <artifactId>maven-jar-plugin</artifactId>
539 </plugin>
540
541 <plugin>
542 <groupId>org.apache.maven.plugins</groupId>
tom0eb04ca2014-08-25 14:34:51 -0700543 <artifactId>maven-checkstyle-plugin</artifactId>
Yuta HIGUCHIee0ae6c2014-10-18 18:11:57 -0700544 <version>2.13</version>
tom0eb04ca2014-08-25 14:34:51 -0700545 <dependencies>
546 <dependency>
Brian O'Connorabafb502014-12-02 22:26:20 -0800547 <groupId>org.onosproject</groupId>
tom0eb04ca2014-08-25 14:34:51 -0700548 <artifactId>onos-build-conf</artifactId>
549 <version>1.0</version>
550 </dependency>
Madan Jampani08822c42014-11-04 17:17:46 -0800551 <!-- For Java 8 lambda support-->
552 <dependency>
553 <groupId>com.puppycrawl.tools</groupId>
554 <artifactId>checkstyle</artifactId>
555 <version>5.9</version>
556 </dependency>
tom0eb04ca2014-08-25 14:34:51 -0700557 </dependencies>
558 <configuration>
Toshio Koided7d96412014-11-05 11:56:07 -0800559 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
560 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
561 <testSourceDirectory>${project.build.testSourceDirectory}</testSourceDirectory>
562 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
tom0eb04ca2014-08-25 14:34:51 -0700563 <configLocation>onos/checkstyle.xml</configLocation>
564 <suppressionsLocation>onos/suppressions.xml
565 </suppressionsLocation>
566 <failsOnError>false</failsOnError>
567 <logViolationsToConsole>true</logViolationsToConsole>
568 <includeTestSourceDirectory>true
569 </includeTestSourceDirectory>
570 </configuration>
571 <executions>
572 <execution>
573 <id>validate-checkstyle</id>
574 <phase>verify</phase>
575 <goals>
576 <goal>check</goal>
577 </goals>
578 </execution>
579 </executions>
580 </plugin>
581
582 <plugin>
tom50a76dd2014-09-02 15:18:35 -0700583 <groupId>org.apache.maven.plugins</groupId>
584 <artifactId>maven-pmd-plugin</artifactId>
585 <version>3.2</version>
586 <configuration>
587 <excludes>
tom50a76dd2014-09-02 15:18:35 -0700588 </excludes>
589 <rulesets>
590 <ruleset>onos/pmd.xml</ruleset>
591 </rulesets>
592 </configuration>
593 <executions>
594 <execution>
595 <id>validate-pmd</id>
596 <phase>verify</phase>
597 <goals>
598 <!-- Uncomment this goal to make the build fail on pmd errors -->
599 <!--<goal>check</goal>-->
600 </goals>
601 </execution>
602 </executions>
603 </plugin>
604
605 <plugin>
tom4f3b18b2014-08-28 14:38:47 -0700606 <groupId>org.jacoco</groupId>
607 <artifactId>jacoco-maven-plugin</artifactId>
608 <version>0.7.1.201405082137</version>
609 <executions>
610 <execution>
611 <id>default-prepare-agent</id>
612 <goals>
613 <goal>prepare-agent</goal>
614 </goals>
615 </execution>
616 <execution>
617 <id>default-report</id>
618 <phase>prepare-package</phase>
619 <goals>
620 <goal>report</goal>
621 </goals>
622 </execution>
623 </executions>
624 </plugin>
tom0eb04ca2014-08-25 14:34:51 -0700625 </plugins>
tom09419512014-08-15 11:28:43 -0700626 </build>
alshabib522d9872014-08-15 10:35:16 -0700627
tom0eb04ca2014-08-25 14:34:51 -0700628 <reporting>
629 <plugins>
630 <plugin>
631 <groupId>org.apache.maven.plugins</groupId>
632 <artifactId>maven-checkstyle-plugin</artifactId>
633 <version>2.12.1</version>
634 <configuration>
Ray Milkey0f98ca22014-11-17 17:12:38 -0800635 <configLocation>onos/checkstyle.xml</configLocation>
tom0eb04ca2014-08-25 14:34:51 -0700636 </configuration>
637 </plugin>
tom50a76dd2014-09-02 15:18:35 -0700638
639 <plugin>
640 <groupId>org.apache.maven.plugins</groupId>
641 <artifactId>maven-pmd-plugin</artifactId>
642 <version>3.2</version>
643 <configuration>
644 <excludes>
tom50a76dd2014-09-02 15:18:35 -0700645 </excludes>
646 <rulesets>
Ray Milkey0f98ca22014-11-17 17:12:38 -0800647 <ruleset>onos/pmd.xml</ruleset>
tom50a76dd2014-09-02 15:18:35 -0700648 </rulesets>
649 </configuration>
650 </plugin>
tom0eb04ca2014-08-25 14:34:51 -0700651 </plugins>
tom0eb04ca2014-08-25 14:34:51 -0700652 </reporting>
alshabib522d9872014-08-15 10:35:16 -0700653</project>