blob: d0ca5449f9c523cd35dda17637a218e09f4a656a [file] [log] [blame]
Brian O'Connor354cab92015-08-27 11:55:27 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Thejaswi N K6a4cd002015-09-21 17:19:55 +05303 ~ Copyright 2015 Open Networking Laboratory
Brian O'Connor354cab92015-08-27 11:55:27 -07004 ~
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 -->
17<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>
21
22 <prerequisites>
23 <maven>3.0.1</maven>
24 </prerequisites>
25
26 <parent>
27 <groupId>org.onosproject</groupId>
28 <artifactId>onos-base</artifactId>
29 <version>1</version>
30 <relativePath>tools/build/pom.xml</relativePath>
31 </parent>
32
Brian O'Connor1cda9312015-09-04 20:19:16 -070033 <groupId>org.onosproject</groupId>
Brian O'Connor354cab92015-08-27 11:55:27 -070034 <artifactId>onos</artifactId>
35 <packaging>pom</packaging>
Brian O'Connor955c3162016-03-10 15:27:19 -080036 <version>1.6.0-SNAPSHOT</version>
Brian O'Connor354cab92015-08-27 11:55:27 -070037
38 <name>${project.artifactId}</name>
39 <description>Open Network Operating System root project</description>
40
41 <modules>
42 <module>utils</module>
43 <module>core</module>
44 <module>web</module>
45 <module>cli</module>
46
Thomas Vachuskadc240022015-11-19 14:45:03 -080047 <module>protocols</module>
Brian O'Connor354cab92015-08-27 11:55:27 -070048 <module>providers</module>
49 <module>drivers</module>
50
51 <module>apps</module>
52 <module>incubator</module>
53 <module>features</module>
54
55 <module>tools/package/archetypes</module>
56 <module>tools/package/branding</module>
57 </modules>
58
59 <url>http://onosproject.org/</url>
60
61 <scm>
62 <connection>scm:git:https://gerrit.onosproject.org/onos</connection>
63 <developerConnection>scm:git:https://gerrit.onosproject.org/onos
64 </developerConnection>
65 <url>http://gerrit.onosproject.org/</url>
66 </scm>
67
68 <licenses>
69 <license>
70 <name>Apache License, Version 2.0</name>
71 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
72 </license>
73 </licenses>
74
75 <properties>
76 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Thomas Vachuskac7e94632016-03-01 20:25:53 -080077 <onos-build-conf.version>1.2</onos-build-conf.version>
Jian Lic0c36a42016-01-08 13:41:27 -080078 <netty4.version>4.0.33.Final</netty4.version>
Madan Jampani3289fbf2016-01-13 14:14:27 -080079 <!-- TODO: replace with final release version when it is out -->
Madan Jampani65f24bb2016-03-15 15:16:18 -070080 <atomix.version>1.0.0-rc3</atomix.version>
Brian O'Connor47196c52015-12-15 14:21:47 -080081 <copycat.version>0.5.1.onos</copycat.version>
Thomas Vachuska1893d442016-03-03 16:34:46 -080082 <openflowj.version>0.9.2.onos</openflowj.version>
Thomas Vachuskaf10c7222016-03-07 17:04:17 -080083 <onos-maven-plugin.version>1.9</onos-maven-plugin.version>
Jian Lic0c36a42016-01-08 13:41:27 -080084 <osgi.version>4.3.1</osgi.version>
Jian Li11599162016-01-15 15:46:16 -080085 <karaf.version>3.0.5</karaf.version>
Jian Li9d616492016-03-09 10:52:49 -080086 <jersey.version>2.22.2</jersey.version>
Jian Lia9a1bbd2016-01-22 00:34:49 -080087 <jackson.version>2.7.0</jackson.version>
Jian Lie4583fd2016-01-22 10:02:43 -080088 <slf4j.version>1.7.13</slf4j.version>
Jian Lic0c36a42016-01-08 13:41:27 -080089 <guava.version>19.0</guava.version>
Madan Jampani3289fbf2016-01-13 14:14:27 -080090 <commons.io.version>2.4</commons.io.version>
Brian O'Connor89957a32015-12-08 18:37:04 -080091 <!-- TODO argLine was originally added maven-surfire-plugin configuration
92 to fix locale errors for non-US developers. However, it breaks
93 SonarQube's test coverage, so moving here for now. -->
94 <argLine>-Duser.language=en -Duser.region=US</argLine>
Brian O'Connor354cab92015-08-27 11:55:27 -070095 </properties>
96
97 <distributionManagement>
98 <snapshotRepository>
99 <id>ossrh</id>
100 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
101 </snapshotRepository>
102 </distributionManagement>
Brian O'Connor372658e2015-12-04 23:17:41 -0800103
Brian O'Connor354cab92015-08-27 11:55:27 -0700104 <dependencyManagement>
105 <dependencies>
106 <dependency>
107 <groupId>junit</groupId>
108 <artifactId>junit</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800109 <version>4.12</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700110 <scope>test</scope>
111 </dependency>
112
113 <dependency>
114 <groupId>org.hamcrest</groupId>
115 <artifactId>hamcrest-core</artifactId>
116 <version>1.3</version>
117 <scope>test</scope>
118 </dependency>
119 <dependency>
120 <groupId>org.hamcrest</groupId>
121 <artifactId>hamcrest-library</artifactId>
122 <version>1.3</version>
123 <scope>test</scope>
124 </dependency>
125
126 <dependency>
127 <groupId>org.slf4j</groupId>
128 <artifactId>slf4j-api</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800129 <version>${slf4j.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700130 <scope>provided</scope>
131 </dependency>
132
133 <dependency>
134 <groupId>org.slf4j</groupId>
135 <artifactId>slf4j-core</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800136 <version>${slf4j.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700137 <scope>test</scope>
138 </dependency>
139
140 <dependency>
141 <groupId>org.slf4j</groupId>
142 <artifactId>slf4j-jdk14</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800143 <version>${slf4j.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700144 <scope>test</scope>
145 </dependency>
146
147 <dependency>
148 <groupId>com.google.guava</groupId>
149 <artifactId>guava</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800150 <version>${guava.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700151 </dependency>
152
153 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700154 <groupId>com.google.guava</groupId>
155 <artifactId>guava-testlib</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800156 <version>${guava.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700157 <scope>test</scope>
158 </dependency>
159
160 <dependency>
161 <groupId>com.googlecode.concurrent-trees</groupId>
162 <artifactId>concurrent-trees</artifactId>
163 <version>2.4.0</version>
164 </dependency>
165
166 <dependency>
167 <groupId>commons-lang</groupId>
168 <artifactId>commons-lang</artifactId>
169 <version>2.6</version>
170 </dependency>
171
172 <dependency>
173 <groupId>org.apache.commons</groupId>
174 <artifactId>commons-lang3</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800175 <version>3.4</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700176 </dependency>
177
178 <dependency>
179 <groupId>commons-configuration</groupId>
180 <artifactId>commons-configuration</artifactId>
181 <version>1.10</version>
182 </dependency>
183
184 <dependency>
185 <groupId>commons-collections</groupId>
186 <artifactId>commons-collections</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800187 <version>3.2.2</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700188 </dependency>
189
190 <dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800191 <groupId>commons-pool</groupId>
192 <artifactId>commons-pool</artifactId>
193 <version>1.6</version>
194 </dependency>
195
196 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700197 <groupId>org.easymock</groupId>
198 <artifactId>easymock</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800199 <version>3.4</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700200 <scope>test</scope>
201 </dependency>
202
203 <!-- Web related -->
204 <dependency>
Jian Li9d616492016-03-09 10:52:49 -0800205 <groupId>org.glassfish.jersey.core</groupId>
206 <artifactId>jersey-client</artifactId>
207 <version>${jersey.version}</version>
208 </dependency>
209 <dependency>
210 <groupId>org.glassfish.jersey.containers</groupId>
211 <artifactId>jersey-container-servlet</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700212 <version>${jersey.version}</version>
213 <scope>provided</scope>
214 </dependency>
215 <dependency>
Jian Li9d616492016-03-09 10:52:49 -0800216 <groupId>org.glassfish.jersey.containers</groupId>
217 <artifactId>jersey-container-servlet-core</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700218 <version>${jersey.version}</version>
219 <scope>provided</scope>
220 </dependency>
221 <dependency>
Jian Li9d616492016-03-09 10:52:49 -0800222 <groupId>org.glassfish.jersey.media</groupId>
223 <artifactId>jersey-media-multipart</artifactId>
224 <version>${jersey.version}</version>
225 <scope>provided</scope>
226 </dependency>
227 <dependency>
228 <groupId>org.glassfish.jersey.test-framework</groupId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700229 <artifactId>jersey-test-framework-core</artifactId>
230 <version>${jersey.version}</version>
231 <scope>test</scope>
232 </dependency>
233 <dependency>
Jian Li9d616492016-03-09 10:52:49 -0800234 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
235 <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700236 <version>${jersey.version}</version>
237 <scope>test</scope>
238 </dependency>
239 <dependency>
240 <groupId>com.fasterxml.jackson.core</groupId>
241 <artifactId>jackson-databind</artifactId>
Jian Lia5a312b2016-01-15 17:59:12 -0800242 <version>${jackson.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700243 <scope>provided</scope>
244 </dependency>
245 <dependency>
246 <groupId>com.fasterxml.jackson.core</groupId>
247 <artifactId>jackson-annotations</artifactId>
Jian Lia5a312b2016-01-15 17:59:12 -0800248 <version>${jackson.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700249 <scope>provided</scope>
250 </dependency>
251
252 <!-- OSGi related -->
253 <dependency>
254 <groupId>org.osgi</groupId>
255 <artifactId>org.osgi.core</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800256 <version>${osgi.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700257 <scope>provided</scope>
258 </dependency>
259 <dependency>
260 <groupId>org.osgi</groupId>
261 <artifactId>org.osgi.compendium</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800262 <version>${osgi.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700263 <scope>provided</scope>
264 </dependency>
265 <dependency>
266 <groupId>org.apache.felix</groupId>
267 <artifactId>org.apache.felix.scr.annotations</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800268 <version>1.9.12</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700269 <scope>provided</scope>
270 </dependency>
Thomas Vachuska7a8de842016-03-07 20:56:35 -0800271 <dependency>
272 <groupId>org.apache.felix</groupId>
273 <artifactId>org.apache.felix.scr</artifactId>
274 <version>1.8.2</version>
275 </dependency>
276
Brian O'Connor354cab92015-08-27 11:55:27 -0700277
278 <dependency>
279 <groupId>org.apache.karaf.features</groupId>
280 <artifactId>org.apache.karaf.features.core</artifactId>
281 <version>${karaf.version}</version>
282 <scope>provided</scope>
283 </dependency>
284 <dependency>
285 <groupId>org.apache.karaf.system</groupId>
286 <artifactId>org.apache.karaf.system.core</artifactId>
287 <version>${karaf.version}</version>
288 <scope>provided</scope>
289 </dependency>
290 <dependency>
291 <groupId>org.apache.karaf.shell</groupId>
292 <artifactId>org.apache.karaf.shell.console</artifactId>
293 <version>${karaf.version}</version>
294 <scope>provided</scope>
295 </dependency>
296
297 <dependency>
298 <groupId>org.livetribe.slp</groupId>
299 <artifactId>livetribe-slp</artifactId>
300 <version>2.2.1</version>
301 </dependency>
302
303 <dependency>
304 <groupId>com.eclipsesource.minimal-json</groupId>
305 <artifactId>minimal-json</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800306 <version>0.9.4</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700307 </dependency>
308 <dependency>
309 <groupId>com.esotericsoftware</groupId>
310 <artifactId>kryo</artifactId>
Jonathan Harte65a8f62016-03-25 19:19:41 +0000311 <version>3.0.0</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700312 </dependency>
313 <dependency>
314 <groupId>com.esotericsoftware</groupId>
315 <artifactId>reflectasm</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800316 <version>1.11.0</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700317 <type>bundle</type>
318 </dependency>
319 <dependency>
320 <groupId>org.ow2.asm</groupId>
321 <artifactId>asm</artifactId>
322 <version>4.2</version>
323 </dependency>
324 <dependency>
325 <groupId>com.esotericsoftware</groupId>
326 <artifactId>minlog</artifactId>
327 <version>1.3.0</version>
328 </dependency>
329 <dependency>
330 <groupId>org.objenesis</groupId>
331 <artifactId>objenesis</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800332 <version>2.2</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700333 </dependency>
334
335 <!-- ONOS related -->
336 <dependency>
337 <groupId>org.onosproject</groupId>
338 <artifactId>onlab-misc</artifactId>
339 <version>${project.version}</version>
340 </dependency>
341 <dependency>
342 <groupId>org.onosproject</groupId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700343 <artifactId>onlab-osgi</artifactId>
344 <version>${project.version}</version>
345 </dependency>
346 <dependency>
347 <groupId>org.onosproject</groupId>
348 <artifactId>onlab-osgi</artifactId>
349 <version>${project.version}</version>
350 <classifier>tests</classifier>
351 <scope>test</scope>
352 </dependency>
353 <dependency>
354 <groupId>org.onosproject</groupId>
355 <artifactId>onlab-junit</artifactId>
356 <version>${project.version}</version>
357 <scope>test</scope>
358 </dependency>
359
360 <dependency>
361 <groupId>org.onosproject</groupId>
362 <artifactId>onos-api</artifactId>
363 <version>${project.version}</version>
364 </dependency>
365 <dependency>
366 <groupId>org.onosproject</groupId>
367 <artifactId>onos-api</artifactId>
368 <version>${project.version}</version>
369 <classifier>tests</classifier>
370 <scope>test</scope>
371 </dependency>
372
373 <dependency>
374 <groupId>org.onosproject</groupId>
375 <artifactId>onos-incubator-api</artifactId>
376 <version>${project.version}</version>
377 </dependency>
378
379 <dependency>
380 <groupId>org.onosproject</groupId>
381 <artifactId>onos-core-common</artifactId>
382 <version>${project.version}</version>
383 </dependency>
384 <dependency>
385 <groupId>org.onosproject</groupId>
386 <artifactId>onos-core-common</artifactId>
387 <version>${project.version}</version>
388 <classifier>tests</classifier>
389 <scope>test</scope>
390 </dependency>
391
392 <dependency>
393 <groupId>org.onosproject</groupId>
394 <artifactId>onos-of-api</artifactId>
395 <version>${project.version}</version>
396 </dependency>
397 <dependency>
398 <groupId>org.onosproject</groupId>
399 <artifactId>onos-ovsdb-rfc</artifactId>
400 <version>${project.version}</version>
401 </dependency>
402 <dependency>
403 <groupId>org.onosproject</groupId>
404 <artifactId>onos-ovsdb-api</artifactId>
405 <version>${project.version}</version>
406 </dependency>
407 <dependency>
408 <groupId>org.onosproject</groupId>
Phanendra Manda5e895872015-08-26 20:11:58 +0530409 <artifactId>onos-app-pcep-api</artifactId>
410 <version>${project.version}</version>
411 </dependency>
412 <dependency>
413 <groupId>org.onosproject</groupId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700414 <artifactId>onos-pcepio</artifactId>
415 <version>${project.version}</version>
416 </dependency>
417
418 <dependency>
419 <groupId>org.onosproject</groupId>
420 <artifactId>onos-pcep-controller-api</artifactId>
421 <version>${project.version}</version>
422 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700423 <dependency>
424 <groupId>org.onosproject</groupId>
425 <artifactId>onlab-thirdparty</artifactId>
426 <version>${project.version}</version>
427 </dependency>
428
429 <dependency>
430 <groupId>org.onosproject</groupId>
431 <artifactId>onos-of-api</artifactId>
432 <version>${project.version}</version>
433 <classifier>tests</classifier>
434 <scope>test</scope>
435 </dependency>
436 <dependency>
Phanendra Manda5e895872015-08-26 20:11:58 +0530437 <groupId>org.onosproject</groupId>
438 <artifactId>onos-pcep-controller-api</artifactId>
439 <version>${project.version}</version>
440 <classifier>tests</classifier>
441 <scope>test</scope>
442 </dependency>
443 <dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530444 <groupId>org.onosproject</groupId>
445 <artifactId>onos-bgpio</artifactId>
446 <version>${project.version}</version>
447 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800448
Brian O'Connor354cab92015-08-27 11:55:27 -0700449 <dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530450 <groupId>org.onosproject</groupId>
451 <artifactId>onos-bgp-api</artifactId>
452 <version>${project.version}</version>
453 </dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530454 <dependency>
455 <groupId>org.onosproject</groupId>
456 <artifactId>onos-app-bgp-api</artifactId>
457 <version>${project.version}</version>
458 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800459
460
461 <!-- Netty related; for now we require both 3.9 and 4 -->
462 <dependency>
463 <groupId>io.netty</groupId>
464 <artifactId>netty</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800465 <version>3.10.5.Final</version>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800466 </dependency>
467
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530468 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700469 <groupId>io.netty</groupId>
470 <artifactId>netty-common</artifactId>
471 <version>${netty4.version}</version>
472 </dependency>
473 <dependency>
474 <groupId>io.netty</groupId>
475 <artifactId>netty-buffer</artifactId>
476 <version>${netty4.version}</version>
477 </dependency>
478 <dependency>
479 <groupId>io.netty</groupId>
480 <artifactId>netty-transport</artifactId>
481 <version>${netty4.version}</version>
482 </dependency>
483 <dependency>
484 <groupId>io.netty</groupId>
485 <artifactId>netty-handler</artifactId>
486 <version>${netty4.version}</version>
487 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800488
Brian O'Connor354cab92015-08-27 11:55:27 -0700489 <dependency>
490 <groupId>io.netty</groupId>
491 <artifactId>netty-codec</artifactId>
492 <version>${netty4.version}</version>
493 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800494
Brian O'Connor354cab92015-08-27 11:55:27 -0700495 <dependency>
496 <groupId>io.netty</groupId>
497 <artifactId>netty-transport-native-epoll</artifactId>
498 <version>${netty4.version}</version>
499 <classifier>${os.detected.classifier}</classifier>
500 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800501
Brian O'Connor354cab92015-08-27 11:55:27 -0700502 <dependency>
503 <groupId>joda-time</groupId>
504 <artifactId>joda-time</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800505 <version>2.9</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700506 </dependency>
Brian O'Connor89957a32015-12-08 18:37:04 -0800507
508 <dependency>
509 <groupId>com.google.code.findbugs</groupId>
510 <artifactId>jsr305</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800511 <version>3.0.1</version>
Brian O'Connor89957a32015-12-08 18:37:04 -0800512 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700513 </dependencies>
514 </dependencyManagement>
515
516 <dependencies>
517 <dependency>
518 <groupId>junit</groupId>
519 <artifactId>junit</artifactId>
520 </dependency>
521 <dependency>
522 <groupId>org.hamcrest</groupId>
523 <artifactId>hamcrest-core</artifactId>
524 </dependency>
525 <dependency>
526 <groupId>org.hamcrest</groupId>
527 <artifactId>hamcrest-library</artifactId>
528 </dependency>
529 <dependency>
530 <groupId>org.slf4j</groupId>
531 <artifactId>slf4j-api</artifactId>
532 </dependency>
533 <dependency>
534 <groupId>org.slf4j</groupId>
535 <artifactId>slf4j-jdk14</artifactId>
536 </dependency>
Brian O'Connor89957a32015-12-08 18:37:04 -0800537 <!-- TODO sonar-maven-plugin prints the following ERROR many times:
538 Class not found: javax.annotation.Nullable
539 The following dependency alleviates this problem, but perhaps
540 it can be better located in the future. -->
541 <dependency>
542 <groupId>com.google.code.findbugs</groupId>
543 <artifactId>jsr305</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800544 <version>3.0.1</version>
Brian O'Connor89957a32015-12-08 18:37:04 -0800545 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700546 </dependencies>
547
548 <build>
549 <pluginManagement>
550 <plugins>
551 <plugin>
552 <groupId>org.apache.maven.plugins</groupId>
553 <artifactId>maven-compiler-plugin</artifactId>
554 <!-- TODO: update once following issue is fixed. -->
555 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
556 <version>2.5.1</version>
557 <configuration>
558 <source>1.8</source>
559 <target>1.8</target>
560 </configuration>
561 </plugin>
562
563 <plugin>
564 <groupId>org.apache.maven.plugins</groupId>
565 <artifactId>maven-surefire-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800566 <version>2.19.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700567 <configuration>
Brian O'Connor89957a32015-12-08 18:37:04 -0800568 <redirectTestOutputToFile>true</redirectTestOutputToFile>
Brian O'Connor354cab92015-08-27 11:55:27 -0700569 <printSummary>true</printSummary>
570 <excludedGroups>org.onlab.junit.IntegrationTest
571 </excludedGroups>
572 <rerunFailingTestsCount>1</rerunFailingTestsCount>
573 </configuration>
574 </plugin>
andreafaa2c4b2015-11-16 13:48:39 -0800575 <plugin>
576 <groupId>org.apache.maven.plugins</groupId>
577 <artifactId>maven-javadoc-plugin</artifactId>
578 <version>2.10.3</version>
579 <configuration>
580 <tags>
581 <tag>
Andrea Campanella10c4adc2015-12-03 15:27:54 -0800582 <name>onos.rsModel</name>
andreafaa2c4b2015-11-16 13:48:39 -0800583 <placement>m</placement>
584 <head>Json model for REST api:</head>
585 </tag>
586 </tags>
587 </configuration>
588 </plugin>
Brian O'Connor354cab92015-08-27 11:55:27 -0700589 <plugin>
590 <groupId>org.apache.maven.plugins</groupId>
591 <artifactId>maven-jar-plugin</artifactId>
Brian O'Connor89957a32015-12-08 18:37:04 -0800592 <version>2.6</version>
593 <configuration>
594 <skipIfEmpty>true</skipIfEmpty>
595 </configuration>
Brian O'Connor354cab92015-08-27 11:55:27 -0700596 <executions>
597 <execution>
Brian O'Connor00e4ee22015-12-08 15:45:12 -0800598 <id>default</id>
Brian O'Connor354cab92015-08-27 11:55:27 -0700599 <goals>
600 <goal>test-jar</goal>
601 </goals>
602 </execution>
603 </executions>
604 </plugin>
605
606 <plugin>
607 <groupId>org.apache.maven.plugins</groupId>
608 <artifactId>maven-resources-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800609 <version>2.7</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700610 </plugin>
611
612 <plugin>
613 <groupId>org.apache.felix</groupId>
614 <artifactId>maven-bundle-plugin</artifactId>
Brian O'Connor0c548212015-12-08 15:30:49 -0800615 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700616 <extensions>true</extensions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700617 </plugin>
618
619 <plugin>
620 <groupId>org.apache.maven.plugins</groupId>
621 <artifactId>maven-shade-plugin</artifactId>
Brian O'Connor00e4ee22015-12-08 15:45:12 -0800622 <version>2.4.2</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700623 </plugin>
624
625 <plugin>
626 <groupId>org.apache.felix</groupId>
627 <artifactId>maven-scr-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800628 <version>1.21.0</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700629 <executions>
630 <execution>
631 <id>generate-scr-srcdescriptor</id>
632 <goals>
633 <goal>scr</goal>
634 </goals>
635 </execution>
636 </executions>
637 <configuration>
638 <supportedProjectTypes>
639 <supportedProjectType>bundle</supportedProjectType>
640 <supportedProjectType>war</supportedProjectType>
641 </supportedProjectTypes>
642 </configuration>
643 </plugin>
644 <plugin>
645 <groupId>org.codehaus.mojo</groupId>
646 <artifactId>findbugs-maven-plugin</artifactId>
HIGUCHI Yuta8aa86112015-09-22 15:05:35 -0700647 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700648 <dependencies>
649 <dependency>
650 <groupId>org.onosproject</groupId>
651 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700652 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700653 </dependency>
654 </dependencies>
655 <configuration>
656 <effort>Max</effort>
657 <excludeFilterFile>onos/findbugs-suppressions.xml
658 </excludeFilterFile>
659 </configuration>
660 </plugin>
661
662 <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
663 <plugin>
664 <groupId>org.onosproject</groupId>
665 <artifactId>onos-maven-plugin</artifactId>
Andrea Campanella260645b2015-12-06 10:24:18 -0800666 <version>${onos-maven-plugin.version}</version>
andreafaa2c4b2015-11-16 13:48:39 -0800667 <executions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700668 <execution>
669 <id>cfg</id>
670 <phase>generate-resources</phase>
671 <goals>
672 <goal>cfg</goal>
673 </goals>
674 </execution>
675 <execution>
676 <id>swagger</id>
677 <phase>generate-sources</phase>
678 <goals>
679 <goal>swagger</goal>
680 </goals>
681 </execution>
682 <execution>
683 <id>app</id>
684 <phase>package</phase>
685 <goals>
686 <goal>app</goal>
687 </goals>
688 </execution>
689 </executions>
690 </plugin>
691 </plugins>
692 </pluginManagement>
693
694 <plugins>
695 <plugin>
696 <groupId>org.apache.maven.plugins</groupId>
697 <artifactId>maven-jar-plugin</artifactId>
698 </plugin>
699
700 <plugin>
701 <groupId>org.apache.maven.plugins</groupId>
702 <artifactId>maven-checkstyle-plugin</artifactId>
Jian Li68c4fc42016-01-11 16:07:03 -0800703 <version>2.17</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700704 <dependencies>
705 <dependency>
706 <groupId>org.onosproject</groupId>
707 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700708 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700709 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700710 </dependencies>
711 <configuration>
712 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
713 <sourceDirectory>${project.build.sourceDirectory}
714 </sourceDirectory>
715 <testSourceDirectory>${project.build.testSourceDirectory}
716 </testSourceDirectory>
717 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
718 <configLocation>onos/checkstyle.xml</configLocation>
719 <suppressionsLocation>onos/suppressions.xml
720 </suppressionsLocation>
721 <failsOnError>false</failsOnError>
722 <logViolationsToConsole>true</logViolationsToConsole>
723 <includeTestSourceDirectory>true
724 </includeTestSourceDirectory>
725 </configuration>
726 <executions>
727 <execution>
728 <id>validate-checkstyle</id>
729 <phase>verify</phase>
730 <goals>
731 <goal>check</goal>
732 </goals>
733 </execution>
734 </executions>
735 </plugin>
736
737 <plugin>
738 <groupId>org.apache.maven.plugins</groupId>
739 <artifactId>maven-pmd-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800740 <version>3.6</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700741 <configuration>
742 <excludes>
743 </excludes>
744 <rulesets>
745 <ruleset>onos/pmd.xml</ruleset>
746 </rulesets>
747 </configuration>
748 <executions>
749 <execution>
750 <id>validate-pmd</id>
751 <phase>verify</phase>
752 <goals>
753 <!-- Uncomment this goal to make the build fail on pmd errors -->
754 <!--<goal>check</goal>-->
755 </goals>
756 </execution>
757 </executions>
758 </plugin>
759
760 <plugin>
761 <groupId>org.jacoco</groupId>
762 <artifactId>jacoco-maven-plugin</artifactId>
HIGUCHI Yuta4303ac22015-11-23 11:29:21 -0800763 <version>0.7.5.201505241946</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700764 <executions>
765 <execution>
766 <id>default-prepare-agent</id>
767 <goals>
768 <goal>prepare-agent</goal>
769 </goals>
770 </execution>
771 <execution>
772 <id>default-report</id>
773 <phase>prepare-package</phase>
774 <goals>
775 <goal>report</goal>
776 </goals>
777 </execution>
778 </executions>
779 </plugin>
780 </plugins>
781 </build>
782
783 <reporting>
784 <plugins>
785 <plugin>
786 <groupId>org.apache.maven.plugins</groupId>
787 <artifactId>maven-checkstyle-plugin</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700788 <configuration>
789 <configLocation>onos/checkstyle.xml</configLocation>
790 </configuration>
791 </plugin>
792
793 <plugin>
794 <groupId>org.apache.maven.plugins</groupId>
795 <artifactId>maven-pmd-plugin</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700796 <configuration>
797 <excludes>
798 </excludes>
799 <rulesets>
800 <ruleset>onos/pmd.xml</ruleset>
801 </rulesets>
802 </configuration>
803 </plugin>
804 </plugins>
805 </reporting>
Madan Jampani3289fbf2016-01-13 14:14:27 -0800806</project>