blob: 29e9711b7cc4d51dac004b5ceaf6c07232df3327 [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>
Brian O'Connor354cab92015-08-27 11:55:27 -070086 <jersey.version>1.19</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>
205 <groupId>com.sun.jersey</groupId>
206 <artifactId>jersey-servlet</artifactId>
207 <version>${jersey.version}</version>
208 <scope>provided</scope>
209 </dependency>
210 <dependency>
211 <groupId>com.sun.jersey.contribs</groupId>
212 <artifactId>jersey-multipart</artifactId>
213 <version>${jersey.version}</version>
214 <scope>provided</scope>
215 </dependency>
216 <dependency>
217 <groupId>com.sun.jersey.jersey-test-framework</groupId>
218 <artifactId>jersey-test-framework-core</artifactId>
219 <version>${jersey.version}</version>
220 <scope>test</scope>
221 </dependency>
222 <dependency>
223 <groupId>com.sun.jersey.jersey-test-framework</groupId>
224 <artifactId>jersey-test-framework-grizzly2</artifactId>
225 <version>${jersey.version}</version>
226 <scope>test</scope>
227 </dependency>
228 <dependency>
Andrea Campanella945ded22016-01-07 13:17:43 -0800229 <groupId>com.sun.jersey</groupId>
230 <artifactId>jersey-client</artifactId>
231 <version>${jersey.version}</version>
232 </dependency>
233 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700234 <groupId>com.fasterxml.jackson.core</groupId>
235 <artifactId>jackson-databind</artifactId>
Jian Lia5a312b2016-01-15 17:59:12 -0800236 <version>${jackson.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700237 <scope>provided</scope>
238 </dependency>
239 <dependency>
240 <groupId>com.fasterxml.jackson.core</groupId>
241 <artifactId>jackson-annotations</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
246 <!-- OSGi related -->
247 <dependency>
248 <groupId>org.osgi</groupId>
249 <artifactId>org.osgi.core</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800250 <version>${osgi.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700251 <scope>provided</scope>
252 </dependency>
253 <dependency>
254 <groupId>org.osgi</groupId>
255 <artifactId>org.osgi.compendium</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.apache.felix</groupId>
261 <artifactId>org.apache.felix.scr.annotations</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800262 <version>1.9.12</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700263 <scope>provided</scope>
264 </dependency>
Thomas Vachuska7a8de842016-03-07 20:56:35 -0800265 <dependency>
266 <groupId>org.apache.felix</groupId>
267 <artifactId>org.apache.felix.scr</artifactId>
268 <version>1.8.2</version>
269 </dependency>
270
Brian O'Connor354cab92015-08-27 11:55:27 -0700271
272 <dependency>
273 <groupId>org.apache.karaf.features</groupId>
274 <artifactId>org.apache.karaf.features.core</artifactId>
275 <version>${karaf.version}</version>
276 <scope>provided</scope>
277 </dependency>
278 <dependency>
279 <groupId>org.apache.karaf.system</groupId>
280 <artifactId>org.apache.karaf.system.core</artifactId>
281 <version>${karaf.version}</version>
282 <scope>provided</scope>
283 </dependency>
284 <dependency>
285 <groupId>org.apache.karaf.shell</groupId>
286 <artifactId>org.apache.karaf.shell.console</artifactId>
287 <version>${karaf.version}</version>
288 <scope>provided</scope>
289 </dependency>
290
291 <dependency>
292 <groupId>org.livetribe.slp</groupId>
293 <artifactId>livetribe-slp</artifactId>
294 <version>2.2.1</version>
295 </dependency>
296
297 <dependency>
298 <groupId>com.eclipsesource.minimal-json</groupId>
299 <artifactId>minimal-json</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800300 <version>0.9.4</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700301 </dependency>
302 <dependency>
303 <groupId>com.esotericsoftware</groupId>
304 <artifactId>kryo</artifactId>
305 <version>3.0.0</version>
306 </dependency>
307 <dependency>
308 <groupId>com.esotericsoftware</groupId>
309 <artifactId>reflectasm</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800310 <version>1.11.0</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700311 <type>bundle</type>
312 </dependency>
313 <dependency>
314 <groupId>org.ow2.asm</groupId>
315 <artifactId>asm</artifactId>
316 <version>4.2</version>
317 </dependency>
318 <dependency>
319 <groupId>com.esotericsoftware</groupId>
320 <artifactId>minlog</artifactId>
321 <version>1.3.0</version>
322 </dependency>
323 <dependency>
324 <groupId>org.objenesis</groupId>
325 <artifactId>objenesis</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800326 <version>2.2</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700327 </dependency>
328
329 <!-- ONOS related -->
330 <dependency>
331 <groupId>org.onosproject</groupId>
332 <artifactId>onlab-misc</artifactId>
333 <version>${project.version}</version>
334 </dependency>
335 <dependency>
336 <groupId>org.onosproject</groupId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700337 <artifactId>onlab-osgi</artifactId>
338 <version>${project.version}</version>
339 </dependency>
340 <dependency>
341 <groupId>org.onosproject</groupId>
342 <artifactId>onlab-osgi</artifactId>
343 <version>${project.version}</version>
344 <classifier>tests</classifier>
345 <scope>test</scope>
346 </dependency>
347 <dependency>
348 <groupId>org.onosproject</groupId>
349 <artifactId>onlab-junit</artifactId>
350 <version>${project.version}</version>
351 <scope>test</scope>
352 </dependency>
353
354 <dependency>
355 <groupId>org.onosproject</groupId>
356 <artifactId>onos-api</artifactId>
357 <version>${project.version}</version>
358 </dependency>
359 <dependency>
360 <groupId>org.onosproject</groupId>
361 <artifactId>onos-api</artifactId>
362 <version>${project.version}</version>
363 <classifier>tests</classifier>
364 <scope>test</scope>
365 </dependency>
366
367 <dependency>
368 <groupId>org.onosproject</groupId>
369 <artifactId>onos-incubator-api</artifactId>
370 <version>${project.version}</version>
371 </dependency>
372
373 <dependency>
374 <groupId>org.onosproject</groupId>
375 <artifactId>onos-core-common</artifactId>
376 <version>${project.version}</version>
377 </dependency>
378 <dependency>
379 <groupId>org.onosproject</groupId>
380 <artifactId>onos-core-common</artifactId>
381 <version>${project.version}</version>
382 <classifier>tests</classifier>
383 <scope>test</scope>
384 </dependency>
385
386 <dependency>
387 <groupId>org.onosproject</groupId>
388 <artifactId>onos-of-api</artifactId>
389 <version>${project.version}</version>
390 </dependency>
391 <dependency>
392 <groupId>org.onosproject</groupId>
393 <artifactId>onos-ovsdb-rfc</artifactId>
394 <version>${project.version}</version>
395 </dependency>
396 <dependency>
397 <groupId>org.onosproject</groupId>
398 <artifactId>onos-ovsdb-api</artifactId>
399 <version>${project.version}</version>
400 </dependency>
401 <dependency>
402 <groupId>org.onosproject</groupId>
Phanendra Manda5e895872015-08-26 20:11:58 +0530403 <artifactId>onos-app-pcep-api</artifactId>
404 <version>${project.version}</version>
405 </dependency>
406 <dependency>
407 <groupId>org.onosproject</groupId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700408 <artifactId>onos-pcepio</artifactId>
409 <version>${project.version}</version>
410 </dependency>
411
412 <dependency>
413 <groupId>org.onosproject</groupId>
414 <artifactId>onos-pcep-controller-api</artifactId>
415 <version>${project.version}</version>
416 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700417 <dependency>
418 <groupId>org.onosproject</groupId>
419 <artifactId>onlab-thirdparty</artifactId>
420 <version>${project.version}</version>
421 </dependency>
422
423 <dependency>
424 <groupId>org.onosproject</groupId>
425 <artifactId>onos-of-api</artifactId>
426 <version>${project.version}</version>
427 <classifier>tests</classifier>
428 <scope>test</scope>
429 </dependency>
430 <dependency>
Phanendra Manda5e895872015-08-26 20:11:58 +0530431 <groupId>org.onosproject</groupId>
432 <artifactId>onos-pcep-controller-api</artifactId>
433 <version>${project.version}</version>
434 <classifier>tests</classifier>
435 <scope>test</scope>
436 </dependency>
437 <dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530438 <groupId>org.onosproject</groupId>
439 <artifactId>onos-bgpio</artifactId>
440 <version>${project.version}</version>
441 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800442
Brian O'Connor354cab92015-08-27 11:55:27 -0700443 <dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530444 <groupId>org.onosproject</groupId>
445 <artifactId>onos-bgp-api</artifactId>
446 <version>${project.version}</version>
447 </dependency>
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530448 <dependency>
449 <groupId>org.onosproject</groupId>
450 <artifactId>onos-app-bgp-api</artifactId>
451 <version>${project.version}</version>
452 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800453
454
455 <!-- Netty related; for now we require both 3.9 and 4 -->
456 <dependency>
457 <groupId>io.netty</groupId>
458 <artifactId>netty</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800459 <version>3.10.5.Final</version>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800460 </dependency>
461
Thejaswi N K6a4cd002015-09-21 17:19:55 +0530462 <dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700463 <groupId>io.netty</groupId>
464 <artifactId>netty-common</artifactId>
465 <version>${netty4.version}</version>
466 </dependency>
467 <dependency>
468 <groupId>io.netty</groupId>
469 <artifactId>netty-buffer</artifactId>
470 <version>${netty4.version}</version>
471 </dependency>
472 <dependency>
473 <groupId>io.netty</groupId>
474 <artifactId>netty-transport</artifactId>
475 <version>${netty4.version}</version>
476 </dependency>
477 <dependency>
478 <groupId>io.netty</groupId>
479 <artifactId>netty-handler</artifactId>
480 <version>${netty4.version}</version>
481 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800482
Brian O'Connor354cab92015-08-27 11:55:27 -0700483 <dependency>
484 <groupId>io.netty</groupId>
485 <artifactId>netty-codec</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-transport-native-epoll</artifactId>
492 <version>${netty4.version}</version>
493 <classifier>${os.detected.classifier}</classifier>
494 </dependency>
Thomas Vachuska47e2fcc2015-11-23 11:51:24 -0800495
Brian O'Connor354cab92015-08-27 11:55:27 -0700496 <dependency>
497 <groupId>joda-time</groupId>
498 <artifactId>joda-time</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800499 <version>2.9</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700500 </dependency>
Brian O'Connor89957a32015-12-08 18:37:04 -0800501
502 <dependency>
503 <groupId>com.google.code.findbugs</groupId>
504 <artifactId>jsr305</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800505 <version>3.0.1</version>
Brian O'Connor89957a32015-12-08 18:37:04 -0800506 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700507 </dependencies>
508 </dependencyManagement>
509
510 <dependencies>
511 <dependency>
512 <groupId>junit</groupId>
513 <artifactId>junit</artifactId>
514 </dependency>
515 <dependency>
516 <groupId>org.hamcrest</groupId>
517 <artifactId>hamcrest-core</artifactId>
518 </dependency>
519 <dependency>
520 <groupId>org.hamcrest</groupId>
521 <artifactId>hamcrest-library</artifactId>
522 </dependency>
523 <dependency>
524 <groupId>org.slf4j</groupId>
525 <artifactId>slf4j-api</artifactId>
526 </dependency>
527 <dependency>
528 <groupId>org.slf4j</groupId>
529 <artifactId>slf4j-jdk14</artifactId>
530 </dependency>
Brian O'Connor89957a32015-12-08 18:37:04 -0800531 <!-- TODO sonar-maven-plugin prints the following ERROR many times:
532 Class not found: javax.annotation.Nullable
533 The following dependency alleviates this problem, but perhaps
534 it can be better located in the future. -->
535 <dependency>
536 <groupId>com.google.code.findbugs</groupId>
537 <artifactId>jsr305</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800538 <version>3.0.1</version>
Brian O'Connor89957a32015-12-08 18:37:04 -0800539 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700540 </dependencies>
541
542 <build>
543 <pluginManagement>
544 <plugins>
545 <plugin>
546 <groupId>org.apache.maven.plugins</groupId>
547 <artifactId>maven-compiler-plugin</artifactId>
548 <!-- TODO: update once following issue is fixed. -->
549 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
550 <version>2.5.1</version>
551 <configuration>
552 <source>1.8</source>
553 <target>1.8</target>
554 </configuration>
555 </plugin>
556
557 <plugin>
558 <groupId>org.apache.maven.plugins</groupId>
559 <artifactId>maven-surefire-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800560 <version>2.19.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700561 <configuration>
Brian O'Connor89957a32015-12-08 18:37:04 -0800562 <redirectTestOutputToFile>true</redirectTestOutputToFile>
Brian O'Connor354cab92015-08-27 11:55:27 -0700563 <printSummary>true</printSummary>
564 <excludedGroups>org.onlab.junit.IntegrationTest
565 </excludedGroups>
566 <rerunFailingTestsCount>1</rerunFailingTestsCount>
567 </configuration>
568 </plugin>
andreafaa2c4b2015-11-16 13:48:39 -0800569 <plugin>
570 <groupId>org.apache.maven.plugins</groupId>
571 <artifactId>maven-javadoc-plugin</artifactId>
572 <version>2.10.3</version>
573 <configuration>
574 <tags>
575 <tag>
Andrea Campanella10c4adc2015-12-03 15:27:54 -0800576 <name>onos.rsModel</name>
andreafaa2c4b2015-11-16 13:48:39 -0800577 <placement>m</placement>
578 <head>Json model for REST api:</head>
579 </tag>
580 </tags>
581 </configuration>
582 </plugin>
Brian O'Connor354cab92015-08-27 11:55:27 -0700583 <plugin>
584 <groupId>org.apache.maven.plugins</groupId>
585 <artifactId>maven-jar-plugin</artifactId>
Brian O'Connor89957a32015-12-08 18:37:04 -0800586 <version>2.6</version>
587 <configuration>
588 <skipIfEmpty>true</skipIfEmpty>
589 </configuration>
Brian O'Connor354cab92015-08-27 11:55:27 -0700590 <executions>
591 <execution>
Brian O'Connor00e4ee22015-12-08 15:45:12 -0800592 <id>default</id>
Brian O'Connor354cab92015-08-27 11:55:27 -0700593 <goals>
594 <goal>test-jar</goal>
595 </goals>
596 </execution>
597 </executions>
598 </plugin>
599
600 <plugin>
601 <groupId>org.apache.maven.plugins</groupId>
602 <artifactId>maven-resources-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800603 <version>2.7</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700604 </plugin>
605
606 <plugin>
607 <groupId>org.apache.felix</groupId>
608 <artifactId>maven-bundle-plugin</artifactId>
Brian O'Connor0c548212015-12-08 15:30:49 -0800609 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700610 <extensions>true</extensions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700611 </plugin>
612
613 <plugin>
614 <groupId>org.apache.maven.plugins</groupId>
615 <artifactId>maven-shade-plugin</artifactId>
Brian O'Connor00e4ee22015-12-08 15:45:12 -0800616 <version>2.4.2</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700617 </plugin>
618
619 <plugin>
620 <groupId>org.apache.felix</groupId>
621 <artifactId>maven-scr-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800622 <version>1.21.0</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700623 <executions>
624 <execution>
625 <id>generate-scr-srcdescriptor</id>
626 <goals>
627 <goal>scr</goal>
628 </goals>
629 </execution>
630 </executions>
631 <configuration>
632 <supportedProjectTypes>
633 <supportedProjectType>bundle</supportedProjectType>
634 <supportedProjectType>war</supportedProjectType>
635 </supportedProjectTypes>
636 </configuration>
637 </plugin>
638 <plugin>
639 <groupId>org.codehaus.mojo</groupId>
640 <artifactId>findbugs-maven-plugin</artifactId>
HIGUCHI Yuta8aa86112015-09-22 15:05:35 -0700641 <version>3.0.1</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700642 <dependencies>
643 <dependency>
644 <groupId>org.onosproject</groupId>
645 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700646 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700647 </dependency>
648 </dependencies>
649 <configuration>
650 <effort>Max</effort>
651 <excludeFilterFile>onos/findbugs-suppressions.xml
652 </excludeFilterFile>
653 </configuration>
654 </plugin>
655
656 <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
657 <plugin>
658 <groupId>org.onosproject</groupId>
659 <artifactId>onos-maven-plugin</artifactId>
Andrea Campanella260645b2015-12-06 10:24:18 -0800660 <version>${onos-maven-plugin.version}</version>
andreafaa2c4b2015-11-16 13:48:39 -0800661 <executions>
Brian O'Connor354cab92015-08-27 11:55:27 -0700662 <execution>
663 <id>cfg</id>
664 <phase>generate-resources</phase>
665 <goals>
666 <goal>cfg</goal>
667 </goals>
668 </execution>
669 <execution>
670 <id>swagger</id>
671 <phase>generate-sources</phase>
672 <goals>
673 <goal>swagger</goal>
674 </goals>
675 </execution>
676 <execution>
677 <id>app</id>
678 <phase>package</phase>
679 <goals>
680 <goal>app</goal>
681 </goals>
682 </execution>
683 </executions>
684 </plugin>
685 </plugins>
686 </pluginManagement>
687
688 <plugins>
689 <plugin>
690 <groupId>org.apache.maven.plugins</groupId>
691 <artifactId>maven-jar-plugin</artifactId>
692 </plugin>
693
694 <plugin>
695 <groupId>org.apache.maven.plugins</groupId>
696 <artifactId>maven-checkstyle-plugin</artifactId>
Jian Li68c4fc42016-01-11 16:07:03 -0800697 <version>2.17</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700698 <dependencies>
699 <dependency>
700 <groupId>org.onosproject</groupId>
701 <artifactId>onos-build-conf</artifactId>
HIGUCHI Yuta94a9eed2015-09-25 15:20:04 -0700702 <version>${onos-build-conf.version}</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700703 </dependency>
Brian O'Connor354cab92015-08-27 11:55:27 -0700704 </dependencies>
705 <configuration>
706 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
707 <sourceDirectory>${project.build.sourceDirectory}
708 </sourceDirectory>
709 <testSourceDirectory>${project.build.testSourceDirectory}
710 </testSourceDirectory>
711 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
712 <configLocation>onos/checkstyle.xml</configLocation>
713 <suppressionsLocation>onos/suppressions.xml
714 </suppressionsLocation>
715 <failsOnError>false</failsOnError>
716 <logViolationsToConsole>true</logViolationsToConsole>
717 <includeTestSourceDirectory>true
718 </includeTestSourceDirectory>
719 </configuration>
720 <executions>
721 <execution>
722 <id>validate-checkstyle</id>
723 <phase>verify</phase>
724 <goals>
725 <goal>check</goal>
726 </goals>
727 </execution>
728 </executions>
729 </plugin>
730
731 <plugin>
732 <groupId>org.apache.maven.plugins</groupId>
733 <artifactId>maven-pmd-plugin</artifactId>
Jian Lic0c36a42016-01-08 13:41:27 -0800734 <version>3.6</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700735 <configuration>
736 <excludes>
737 </excludes>
738 <rulesets>
739 <ruleset>onos/pmd.xml</ruleset>
740 </rulesets>
741 </configuration>
742 <executions>
743 <execution>
744 <id>validate-pmd</id>
745 <phase>verify</phase>
746 <goals>
747 <!-- Uncomment this goal to make the build fail on pmd errors -->
748 <!--<goal>check</goal>-->
749 </goals>
750 </execution>
751 </executions>
752 </plugin>
753
754 <plugin>
755 <groupId>org.jacoco</groupId>
756 <artifactId>jacoco-maven-plugin</artifactId>
HIGUCHI Yuta4303ac22015-11-23 11:29:21 -0800757 <version>0.7.5.201505241946</version>
Brian O'Connor354cab92015-08-27 11:55:27 -0700758 <executions>
759 <execution>
760 <id>default-prepare-agent</id>
761 <goals>
762 <goal>prepare-agent</goal>
763 </goals>
764 </execution>
765 <execution>
766 <id>default-report</id>
767 <phase>prepare-package</phase>
768 <goals>
769 <goal>report</goal>
770 </goals>
771 </execution>
772 </executions>
773 </plugin>
774 </plugins>
775 </build>
776
777 <reporting>
778 <plugins>
779 <plugin>
780 <groupId>org.apache.maven.plugins</groupId>
781 <artifactId>maven-checkstyle-plugin</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700782 <configuration>
783 <configLocation>onos/checkstyle.xml</configLocation>
784 </configuration>
785 </plugin>
786
787 <plugin>
788 <groupId>org.apache.maven.plugins</groupId>
789 <artifactId>maven-pmd-plugin</artifactId>
Brian O'Connor354cab92015-08-27 11:55:27 -0700790 <configuration>
791 <excludes>
792 </excludes>
793 <rulesets>
794 <ruleset>onos/pmd.xml</ruleset>
795 </rulesets>
796 </configuration>
797 </plugin>
798 </plugins>
799 </reporting>
Madan Jampani3289fbf2016-01-13 14:14:27 -0800800</project>