blob: af013eab856849532767e947f12efb79f2f91015 [file] [log] [blame]
Thomas Vachuska43977572016-06-02 13:48:55 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07003 ~ Copyright 2016-present Open Networking Foundation
Thomas Vachuska43977572016-06-02 13:48:55 -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
Thomas Vachuska43977572016-06-02 13:48:55 -070022 <parent>
23 <groupId>org.onosproject</groupId>
24 <artifactId>onos-base</artifactId>
25 <version>1</version>
26 <relativePath>../tools/build/pom.xml</relativePath>
27 </parent>
28
29 <groupId>org.onosproject</groupId>
30 <artifactId>onos-dependencies</artifactId>
31 <packaging>pom</packaging>
Ray Milkeyaa279c02017-08-16 13:23:59 -070032 <version>1.12.0-SNAPSHOT</version>
Thomas Vachuska43977572016-06-02 13:48:55 -070033
34 <name>${project.artifactId}</name>
35 <description>Open Network Operating System shared dependencies</description>
36
37 <properties>
38 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Ray Milkeyaa279c02017-08-16 13:23:59 -070039 <onos-build-conf.version>1.12.0-SNAPSHOT</onos-build-conf.version>
Aaron Kruglikov0c9b9ae2017-06-13 18:31:59 -070040 <netty4.version>4.1.8.Final</netty4.version>
Yuta HIGUCHI8ce28c02017-05-19 09:51:55 -070041 <openflowj.version>3.2.0.onos</openflowj.version>
Thomas Vachuskae5428c52016-08-09 13:27:06 -070042 <onos-maven-plugin.version>1.10</onos-maven-plugin.version>
Ray Milkeyef3968b2017-08-24 14:49:55 -070043 <onos-yang-tools.version>2.2.0-b6</onos-yang-tools.version>
Thomas Vachuska43977572016-06-02 13:48:55 -070044 <osgi.version>5.0.0</osgi.version>
Jon Hallb84df5d2017-01-31 11:19:48 -080045 <karaf.version>3.0.8</karaf.version>
Jian Li112890b2017-04-25 22:27:49 +090046 <jersey.version>2.25.1</jersey.version>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -070047 <jetty.version>9.2.21.v20170120</jetty.version>
Jian Li7afc1722017-05-23 01:20:27 +090048 <jackson.version>2.8.8</jackson.version>
Thomas Vachuska43977572016-06-02 13:48:55 -070049 <slf4j.version>1.7.21</slf4j.version>
Yuta HIGUCHI16b6efd2017-05-23 11:28:38 -070050 <guava.version>22.0</guava.version>
Thomas Vachuska43977572016-06-02 13:48:55 -070051 <commons.io.version>2.4</commons.io.version>
52 <!-- TODO argLine was originally added maven-surfire-plugin configuration
53 to fix locale errors for non-US developers. However, it breaks
54 SonarQube's test coverage, so moving here for now. -->
55 <argLine>-Duser.language=en -Duser.region=US</argLine>
56 </properties>
57
58 <dependencyManagement>
59 <dependencies>
60 <dependency>
61 <groupId>junit</groupId>
62 <artifactId>junit</artifactId>
63 <version>4.12</version>
64 <scope>test</scope>
65 </dependency>
66
67 <dependency>
68 <groupId>org.hamcrest</groupId>
69 <artifactId>hamcrest-core</artifactId>
70 <version>1.3</version>
71 <scope>test</scope>
72 </dependency>
73 <dependency>
74 <groupId>org.hamcrest</groupId>
75 <artifactId>hamcrest-library</artifactId>
76 <version>1.3</version>
77 <scope>test</scope>
78 </dependency>
79
80 <dependency>
81 <groupId>org.slf4j</groupId>
82 <artifactId>slf4j-api</artifactId>
83 <version>${slf4j.version}</version>
84 <scope>provided</scope>
85 </dependency>
86
87 <dependency>
88 <groupId>org.slf4j</groupId>
89 <artifactId>slf4j-core</artifactId>
90 <version>${slf4j.version}</version>
91 <scope>test</scope>
92 </dependency>
93
94 <dependency>
95 <groupId>org.slf4j</groupId>
96 <artifactId>slf4j-jdk14</artifactId>
97 <version>${slf4j.version}</version>
98 <scope>test</scope>
99 </dependency>
100
101 <dependency>
102 <groupId>com.google.guava</groupId>
103 <artifactId>guava</artifactId>
104 <version>${guava.version}</version>
105 </dependency>
106
107 <dependency>
108 <groupId>com.google.guava</groupId>
109 <artifactId>guava-testlib</artifactId>
110 <version>${guava.version}</version>
111 <scope>test</scope>
112 </dependency>
113
114 <dependency>
115 <groupId>com.googlecode.concurrent-trees</groupId>
116 <artifactId>concurrent-trees</artifactId>
Yuta HIGUCHI9da68452017-01-06 11:45:02 -0800117 <version>2.6.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700118 </dependency>
119
120 <dependency>
Yuta HIGUCHI4b662e12017-08-14 17:34:42 -0700121 <groupId>commons-collections</groupId>
122 <artifactId>commons-collections</artifactId>
123 <version>3.2.2</version>
124 </dependency>
125
126 <dependency>
127 <groupId>commons-configuration</groupId>
128 <artifactId>commons-configuration</artifactId>
129 <version>1.10</version>
130 </dependency>
131
132 <dependency>
133 <groupId>commons-io</groupId>
134 <artifactId>commons-io</artifactId>
135 <version>2.4</version>
136 </dependency>
137
138 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700139 <groupId>commons-lang</groupId>
140 <artifactId>commons-lang</artifactId>
141 <version>2.6</version>
142 </dependency>
143
144 <dependency>
145 <groupId>org.apache.commons</groupId>
146 <artifactId>commons-lang3</artifactId>
Yuta HIGUCHI5fd61a82017-02-02 12:30:38 -0800147 <version>3.5</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700148 </dependency>
149
150 <dependency>
Yuta HIGUCHI4b662e12017-08-14 17:34:42 -0700151 <groupId>commons-logging</groupId>
152 <artifactId>commons-logging</artifactId>
153 <version>1.2</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700154 </dependency>
155
156 <dependency>
Yuta HIGUCHI4b662e12017-08-14 17:34:42 -0700157 <groupId>org.apache.commons</groupId>
158 <artifactId>commons-math3</artifactId>
159 <version>3.6.1</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700160 </dependency>
161
162 <dependency>
163 <groupId>commons-pool</groupId>
164 <artifactId>commons-pool</artifactId>
165 <version>1.6</version>
166 </dependency>
167
168 <dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700169 <groupId>io.dropwizard.metrics</groupId>
170 <artifactId>metrics-core</artifactId>
171 <version>3.2.2</version>
172 </dependency>
173
174 <dependency>
175 <groupId>io.dropwizard.metrics</groupId>
176 <artifactId>metrics-json</artifactId>
177 <version>3.2.2</version>
178 </dependency>
179
180 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700181 <groupId>org.easymock</groupId>
182 <artifactId>easymock</artifactId>
183 <version>3.4</version>
184 <scope>test</scope>
185 </dependency>
186
187 <!-- Web related -->
188 <dependency>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700189 <groupId>javax.servlet</groupId>
190 <artifactId>javax.servlet-api</artifactId>
191 <version>3.1.0</version>
192 <scope>test</scope>
193 </dependency>
194 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700195 <groupId>org.glassfish.jersey.core</groupId>
196 <artifactId>jersey-client</artifactId>
197 <version>${jersey.version}</version>
198 </dependency>
199 <dependency>
200 <groupId>org.glassfish.jersey.containers</groupId>
201 <artifactId>jersey-container-servlet</artifactId>
202 <version>${jersey.version}</version>
203 <scope>provided</scope>
204 </dependency>
205 <dependency>
206 <groupId>org.glassfish.jersey.containers</groupId>
207 <artifactId>jersey-container-servlet-core</artifactId>
208 <version>${jersey.version}</version>
209 <scope>provided</scope>
210 </dependency>
211 <dependency>
212 <groupId>org.glassfish.jersey.media</groupId>
213 <artifactId>jersey-media-multipart</artifactId>
214 <version>${jersey.version}</version>
215 <scope>provided</scope>
216 </dependency>
217 <dependency>
218 <groupId>org.glassfish.jersey.test-framework</groupId>
219 <artifactId>jersey-test-framework-core</artifactId>
220 <version>${jersey.version}</version>
221 <scope>test</scope>
222 </dependency>
223 <dependency>
224 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
225 <artifactId>jersey-test-framework-provider-jetty</artifactId>
226 <version>${jersey.version}</version>
227 <scope>test</scope>
228 </dependency>
229 <dependency>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700230 <groupId>org.eclipse.jetty</groupId>
231 <artifactId>jetty-server</artifactId>
232 <version>${jetty.version}</version>
233 <scope>test</scope>
234 </dependency>
235 <dependency>
236 <groupId>org.eclipse.jetty</groupId>
237 <artifactId>jetty-util</artifactId>
238 <version>${jetty.version}</version>
239 </dependency>
240 <dependency>
241 <groupId>org.eclipse.jetty</groupId>
242 <artifactId>jetty-io</artifactId>
243 <version>${jetty.version}</version>
244 </dependency>
245 <dependency>
246 <groupId>org.eclipse.jetty</groupId>
247 <artifactId>jetty-http</artifactId>
248 <version>${jetty.version}</version>
249 </dependency>
250 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700251 <groupId>com.fasterxml.jackson.core</groupId>
252 <artifactId>jackson-databind</artifactId>
253 <version>${jackson.version}</version>
254 <scope>provided</scope>
255 </dependency>
256 <dependency>
257 <groupId>com.fasterxml.jackson.core</groupId>
258 <artifactId>jackson-annotations</artifactId>
259 <version>${jackson.version}</version>
260 <scope>provided</scope>
261 </dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700262 <dependency>
263 <groupId>com.fasterxml.jackson.core</groupId>
264 <artifactId>jackson-core</artifactId>
265 <version>${jackson.version}</version>
266 <scope>provided</scope>
267 </dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700268
269 <!-- OSGi related -->
270 <dependency>
271 <groupId>org.osgi</groupId>
272 <artifactId>org.osgi.core</artifactId>
273 <version>${osgi.version}</version>
274 <scope>provided</scope>
275 </dependency>
276 <dependency>
277 <groupId>org.osgi</groupId>
278 <artifactId>org.osgi.compendium</artifactId>
279 <version>${osgi.version}</version>
280 <scope>provided</scope>
281 </dependency>
282 <dependency>
283 <groupId>org.apache.felix</groupId>
284 <artifactId>org.apache.felix.scr.annotations</artifactId>
285 <version>1.9.12</version>
286 <scope>provided</scope>
287 </dependency>
288 <dependency>
289 <groupId>org.apache.felix</groupId>
290 <artifactId>org.apache.felix.scr</artifactId>
291 <version>1.8.2</version>
292 </dependency>
293
294 <dependency>
295 <groupId>org.apache.karaf.features</groupId>
296 <artifactId>org.apache.karaf.features.core</artifactId>
297 <version>${karaf.version}</version>
298 <scope>provided</scope>
299 </dependency>
300 <dependency>
301 <groupId>org.apache.karaf.system</groupId>
302 <artifactId>org.apache.karaf.system.core</artifactId>
303 <version>${karaf.version}</version>
304 <scope>provided</scope>
305 </dependency>
306 <dependency>
307 <groupId>org.apache.karaf.shell</groupId>
308 <artifactId>org.apache.karaf.shell.console</artifactId>
309 <version>${karaf.version}</version>
310 <scope>provided</scope>
311 </dependency>
312
313 <dependency>
314 <groupId>org.livetribe.slp</groupId>
315 <artifactId>livetribe-slp</artifactId>
316 <version>2.2.1</version>
317 </dependency>
318
319 <dependency>
320 <groupId>com.eclipsesource.minimal-json</groupId>
321 <artifactId>minimal-json</artifactId>
322 <version>0.9.4</version>
323 </dependency>
324 <dependency>
325 <groupId>com.esotericsoftware</groupId>
326 <artifactId>kryo</artifactId>
Yuta HIGUCHI86f142f2016-07-09 17:44:09 -0700327 <version>4.0.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700328 </dependency>
329 <dependency>
330 <groupId>com.esotericsoftware</groupId>
331 <artifactId>reflectasm</artifactId>
Yuta HIGUCHI86f142f2016-07-09 17:44:09 -0700332 <version>1.11.3</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700333 </dependency>
334 <dependency>
335 <groupId>org.ow2.asm</groupId>
336 <artifactId>asm</artifactId>
Yuta HIGUCHI86f142f2016-07-09 17:44:09 -0700337 <version>5.0.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700338 </dependency>
339 <dependency>
340 <groupId>com.esotericsoftware</groupId>
341 <artifactId>minlog</artifactId>
342 <version>1.3.0</version>
343 </dependency>
344 <dependency>
345 <groupId>org.objenesis</groupId>
346 <artifactId>objenesis</artifactId>
347 <version>2.2</version>
348 </dependency>
349
350 <!-- Netty related; for now we require both 3.10.x and 4 -->
351 <dependency>
352 <groupId>io.netty</groupId>
353 <artifactId>netty</artifactId>
354 <version>3.10.5.Final</version>
355 </dependency>
356
357 <dependency>
358 <groupId>io.netty</groupId>
359 <artifactId>netty-common</artifactId>
360 <version>${netty4.version}</version>
361 </dependency>
362 <dependency>
363 <groupId>io.netty</groupId>
364 <artifactId>netty-buffer</artifactId>
365 <version>${netty4.version}</version>
366 </dependency>
367 <dependency>
368 <groupId>io.netty</groupId>
369 <artifactId>netty-transport</artifactId>
370 <version>${netty4.version}</version>
371 </dependency>
372 <dependency>
373 <groupId>io.netty</groupId>
374 <artifactId>netty-handler</artifactId>
375 <version>${netty4.version}</version>
376 </dependency>
377
378 <dependency>
379 <groupId>io.netty</groupId>
380 <artifactId>netty-codec</artifactId>
381 <version>${netty4.version}</version>
382 </dependency>
383
384 <dependency>
385 <groupId>io.netty</groupId>
386 <artifactId>netty-transport-native-epoll</artifactId>
387 <version>${netty4.version}</version>
388 <classifier>${os.detected.classifier}</classifier>
389 </dependency>
390
391 <dependency>
Jonathan Hart5dc9a4e2017-01-13 09:09:57 -0800392 <groupId>io.netty</groupId>
393 <artifactId>netty-resolver</artifactId>
394 <version>${netty4.version}</version>
395 </dependency>
396
397 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700398 <groupId>joda-time</groupId>
399 <artifactId>joda-time</artifactId>
400 <version>2.9.3</version>
401 </dependency>
402
403 <dependency>
404 <groupId>com.google.code.findbugs</groupId>
405 <artifactId>jsr305</artifactId>
406 <version>3.0.1</version>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700407 <scope>provided</scope>
Thomas Vachuska43977572016-06-02 13:48:55 -0700408 </dependency>
409
410 <dependency>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700411 <groupId>com.google.errorprone</groupId>
412 <artifactId>error_prone_annotations</artifactId>
413 <version>2.0.11</version>
414 </dependency>
415
416 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700417 <groupId>org.onosproject</groupId>
418 <artifactId>openflowj</artifactId>
419 <version>${openflowj.version}</version>
420 <scope>provided</scope>
421 </dependency>
Ray Milkey86d1b0a2017-05-16 15:15:08 -0700422
423 <dependency>
424 <groupId>org.onosproject</groupId>
425 <artifactId>onos-yang-model</artifactId>
426 <version>${onos-yang-tools.version}</version>
427 </dependency>
428 <dependency>
429 <groupId>org.onosproject</groupId>
430 <artifactId>onos-yang-runtime</artifactId>
431 <version>${onos-yang-tools.version}</version>
432 </dependency>
Yuta HIGUCHIb8dae872017-06-27 20:06:48 -0700433 <dependency>
434 <groupId>org.onosproject</groupId>
435 <artifactId>onos-yang-serializers-xml</artifactId>
436 <version>${onos-yang-tools.version}</version>
437 </dependency>
438 <dependency>
439 <groupId>org.onosproject</groupId>
440 <artifactId>onos-yang-serializers-json</artifactId>
441 <version>${onos-yang-tools.version}</version>
442 </dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700443 </dependencies>
444 </dependencyManagement>
445
446 <dependencies>
Yuta HIGUCHI4b662e12017-08-14 17:34:42 -0700447
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700448 <!-- COMPILE -->
Yuta HIGUCHI4b662e12017-08-14 17:34:42 -0700449 <dependency>
450 <groupId>joda-time</groupId>
451 <artifactId>joda-time</artifactId>
452 </dependency>
453
454 <dependency>
455 <groupId>commons-configuration</groupId>
456 <artifactId>commons-configuration</artifactId>
457 </dependency>
458
459 <dependency>
460 <groupId>commons-logging</groupId>
461 <artifactId>commons-logging</artifactId>
462 </dependency>
463
464 <dependency>
465 <groupId>commons-collections</groupId>
466 <artifactId>commons-collections</artifactId>
467 </dependency>
468
469 <dependency>
470 <groupId>commons-lang</groupId>
471 <artifactId>commons-lang</artifactId>
472 </dependency>
473
474 <dependency>
475 <groupId>org.apache.commons</groupId>
476 <artifactId>commons-lang3</artifactId>
477 </dependency>
478
479 <dependency>
480 <groupId>commons-io</groupId>
481 <artifactId>commons-io</artifactId>
482 </dependency>
483
484 <dependency>
485 <groupId>commons-pool</groupId>
486 <artifactId>commons-pool</artifactId>
487 </dependency>
488
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700489<!-- transitive Kryo dependency.
Thomas Vachuska43977572016-06-02 13:48:55 -0700490 <dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700491 <groupId>org.objenesis</groupId>
492 <artifactId>objenesis</artifactId>
Thomas Vachuska43977572016-06-02 13:48:55 -0700493 </dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700494 -->
Thomas Vachuska43977572016-06-02 13:48:55 -0700495 <dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700496 <groupId>com.google.guava</groupId>
497 <artifactId>guava</artifactId>
Thomas Vachuska43977572016-06-02 13:48:55 -0700498 </dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700499
500<!-- Fix buck? everyone depending on netty doesn't sound right.
Thomas Vachuska43977572016-06-02 13:48:55 -0700501 <dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700502 <groupId>io.netty</groupId>
503 <artifactId>netty</artifactId>
Thomas Vachuska43977572016-06-02 13:48:55 -0700504 </dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700505
506 <dependency>
507 <groupId>io.netty</groupId>
508 <artifactId>netty-buffer</artifactId>
509 </dependency>
510
511 <dependency>
512 <groupId>io.netty</groupId>
513 <artifactId>netty-common</artifactId>
514 </dependency>
515 -->
516
517 <dependency>
518 <groupId>com.eclipsesource.minimal-json</groupId>
519 <artifactId>minimal-json</artifactId>
520 </dependency>
521
522<!-- Fix buck? Kryo and transitive dependency.
523 <dependency>
524 <groupId>com.esotericsoftware</groupId>
525 <artifactId>kryo</artifactId>
526 </dependency>
527
528 <dependency>
529 <groupId>com.esotericsoftware</groupId>
530 <artifactId>reflectasm</artifactId>
531 </dependency>
532
533 <dependency>
534 <groupId>org.ow2.asm</groupId>
535 <artifactId>asm</artifactId>
536 </dependency>
537
538 <dependency>
539 <groupId>com.esotericsoftware</groupId>
540 <artifactId>minlog</artifactId>
541 </dependency>
542 -->
543<!-- Fix buck? everyone depending on metrics doesn't sound right.
544 <dependency>
545 <groupId>io.dropwizard.metrics</groupId>
546 <artifactId>metrics-core</artifactId>
547 </dependency>
548
549 <dependency>
550 <groupId>io.dropwizard.metrics</groupId>
551 <artifactId>metrics-json</artifactId>
552 </dependency>
553 -->
554
Thomas Vachuska43977572016-06-02 13:48:55 -0700555 <dependency>
556 <groupId>org.slf4j</groupId>
557 <artifactId>slf4j-api</artifactId>
558 </dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700559
560 <dependency>
561 <groupId>org.osgi</groupId>
562 <artifactId>org.osgi.core</artifactId>
563 </dependency>
564
565 <dependency>
566 <groupId>org.osgi</groupId>
567 <artifactId>org.osgi.compendium</artifactId>
568 </dependency>
569
570 <dependency>
571 <groupId>org.apache.felix</groupId>
572 <artifactId>org.apache.felix.scr.annotations</artifactId>
573 </dependency>
574
575 <dependency>
576 <groupId>org.apache.felix</groupId>
577 <artifactId>org.apache.felix.scr</artifactId>
578 </dependency>
579
580 <dependency>
581 <groupId>com.fasterxml.jackson.core</groupId>
582 <artifactId>jackson-annotations</artifactId>
583 </dependency>
584
585 <dependency>
586 <groupId>com.fasterxml.jackson.core</groupId>
587 <artifactId>jackson-core</artifactId>
588 </dependency>
589
590 <dependency>
591 <groupId>com.fasterxml.jackson.core</groupId>
592 <artifactId>jackson-databind</artifactId>
593 </dependency>
594
595 <dependency>
596 <groupId>org.apache.karaf.features</groupId>
597 <artifactId>org.apache.karaf.features.core</artifactId>
598 </dependency>
599
600 <dependency>
601 <groupId>org.apache.karaf.system</groupId>
602 <artifactId>org.apache.karaf.system.core</artifactId>
603 </dependency>
604
605 <!-- YANG stuff here? Fix buck?-->
606
607 <!-- TEST -->
608 <dependency>
609 <groupId>junit</groupId>
610 <artifactId>junit</artifactId>
611 <scope>test</scope>
612 </dependency>
613
614 <dependency>
615 <groupId>org.easymock</groupId>
616 <artifactId>easymock</artifactId>
617 <scope>test</scope>
618 </dependency>
619
620 <dependency>
621 <groupId>org.hamcrest</groupId>
622 <artifactId>hamcrest-core</artifactId>
623 <scope>test</scope>
624 </dependency>
625
626 <dependency>
627 <groupId>org.hamcrest</groupId>
628 <artifactId>hamcrest-library</artifactId>
629 <scope>test</scope>
630 </dependency>
631
632 <dependency>
633 <groupId>com.google.guava</groupId>
634 <artifactId>guava-testlib</artifactId>
635 <scope>test</scope>
636 </dependency>
637
638 <!-- revisit if this is really needed -->
Thomas Vachuska43977572016-06-02 13:48:55 -0700639 <dependency>
640 <groupId>org.slf4j</groupId>
641 <artifactId>slf4j-jdk14</artifactId>
642 </dependency>
643 <!-- TODO sonar-maven-plugin prints the following ERROR many times:
644 Class not found: javax.annotation.Nullable
645 The following dependency alleviates this problem, but perhaps
646 it can be better located in the future. -->
647 <dependency>
648 <groupId>com.google.code.findbugs</groupId>
649 <artifactId>jsr305</artifactId>
Thomas Vachuska43977572016-06-02 13:48:55 -0700650 </dependency>
651 </dependencies>
652
653 <build>
654 <pluginManagement>
655 <plugins>
656 <plugin>
657 <groupId>org.apache.maven.plugins</groupId>
658 <artifactId>maven-compiler-plugin</artifactId>
659 <!-- TODO: update once following issue is fixed. -->
660 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
661 <version>2.5.1</version>
662 <configuration>
663 <source>1.8</source>
664 <target>1.8</target>
665 </configuration>
666 </plugin>
667
668 <plugin>
669 <groupId>org.apache.maven.plugins</groupId>
670 <artifactId>maven-surefire-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700671 <version>2.20</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700672 <configuration>
673 <redirectTestOutputToFile>true</redirectTestOutputToFile>
674 <printSummary>true</printSummary>
675 <excludedGroups>org.onlab.junit.IntegrationTest
676 </excludedGroups>
677 <rerunFailingTestsCount>1</rerunFailingTestsCount>
678 </configuration>
679 </plugin>
680 <plugin>
681 <groupId>org.apache.maven.plugins</groupId>
682 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700683 <version>2.10.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700684 <configuration>
685 <tags>
686 <tag>
687 <name>onos.rsModel</name>
688 <placement>m</placement>
689 <head>Json model for REST api:</head>
690 </tag>
691 </tags>
692 </configuration>
693 </plugin>
694 <plugin>
695 <groupId>org.apache.maven.plugins</groupId>
696 <artifactId>maven-jar-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700697 <version>3.0.2</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700698 <configuration>
699 <skipIfEmpty>true</skipIfEmpty>
700 </configuration>
701 <executions>
702 <execution>
703 <id>default</id>
704 <goals>
705 <goal>test-jar</goal>
706 </goals>
707 </execution>
708 </executions>
709 </plugin>
710
711 <plugin>
712 <groupId>org.apache.maven.plugins</groupId>
713 <artifactId>maven-resources-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700714 <version>3.0.2</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700715 </plugin>
716
717 <plugin>
718 <groupId>org.apache.felix</groupId>
719 <artifactId>maven-bundle-plugin</artifactId>
Yuta HIGUCHIe6d3adf2017-05-22 16:31:58 -0700720 <version>3.3.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700721 <extensions>true</extensions>
722 <configuration>
723 <niceManifest>true</niceManifest>
724 </configuration>
725 </plugin>
726
727 <plugin>
728 <groupId>org.apache.maven.plugins</groupId>
729 <artifactId>maven-shade-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700730 <version>3.0.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700731 </plugin>
732
733 <plugin>
734 <groupId>org.apache.felix</groupId>
735 <artifactId>maven-scr-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700736 <version>1.24.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700737 <executions>
738 <execution>
739 <id>generate-scr-srcdescriptor</id>
740 <goals>
741 <goal>scr</goal>
742 </goals>
743 </execution>
744 </executions>
745 <configuration>
746 <supportedProjectTypes>
747 <supportedProjectType>bundle</supportedProjectType>
748 <supportedProjectType>war</supportedProjectType>
749 </supportedProjectTypes>
750 </configuration>
751 </plugin>
752 <plugin>
753 <groupId>org.codehaus.mojo</groupId>
754 <artifactId>findbugs-maven-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700755 <version>3.0.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700756 <dependencies>
757 <dependency>
758 <groupId>org.onosproject</groupId>
759 <artifactId>onos-build-conf</artifactId>
760 <version>${onos-build-conf.version}</version>
761 </dependency>
762 </dependencies>
763 <configuration>
764 <effort>Max</effort>
765 <excludeFilterFile>onos/findbugs-suppressions.xml
766 </excludeFilterFile>
767 </configuration>
768 </plugin>
769
770 <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
771 <plugin>
772 <groupId>org.onosproject</groupId>
773 <artifactId>onos-maven-plugin</artifactId>
774 <version>${onos-maven-plugin.version}</version>
775 <executions>
776 <execution>
777 <id>cfg</id>
778 <phase>generate-resources</phase>
779 <goals>
780 <goal>cfg</goal>
781 </goals>
782 </execution>
783 <execution>
784 <id>swagger</id>
785 <phase>generate-sources</phase>
786 <goals>
787 <goal>swagger</goal>
788 </goals>
789 </execution>
790 <execution>
791 <id>app</id>
792 <phase>package</phase>
793 <goals>
794 <goal>app</goal>
795 </goals>
796 </execution>
797 </executions>
798 </plugin>
Ray Milkey86d1b0a2017-05-16 15:15:08 -0700799
800 <plugin>
801 <groupId>org.onosproject</groupId>
802 <artifactId>onos-yang-compiler-maven-plugin</artifactId>
803 <version>${onos-yang-tools.version}</version>
804 <executions>
805 <execution>
806 <goals>
807 <goal>yang2java</goal>
808 </goals>
809 </execution>
810 </executions>
811 </plugin>
Thomas Vachuska43977572016-06-02 13:48:55 -0700812 </plugins>
813 </pluginManagement>
814
815 <plugins>
816 <plugin>
817 <groupId>org.apache.maven.plugins</groupId>
818 <artifactId>maven-jar-plugin</artifactId>
819 </plugin>
820
821 <plugin>
822 <groupId>org.apache.maven.plugins</groupId>
823 <artifactId>maven-checkstyle-plugin</artifactId>
824 <version>2.17</version>
825 <dependencies>
826 <dependency>
827 <groupId>org.onosproject</groupId>
828 <artifactId>onos-build-conf</artifactId>
829 <version>${onos-build-conf.version}</version>
830 </dependency>
Ray Milkey2d572dd2017-04-14 10:01:24 -0700831 <dependency>
832 <groupId>com.puppycrawl.tools</groupId>
833 <artifactId>checkstyle</artifactId>
834 <version>6.19</version>
835 </dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700836 </dependencies>
837 <configuration>
838 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
839 <sourceDirectory>${project.build.sourceDirectory}
840 </sourceDirectory>
841 <testSourceDirectory>${project.build.testSourceDirectory}
842 </testSourceDirectory>
843 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
Ray Milkey2d572dd2017-04-14 10:01:24 -0700844 <configLocation>onos/checkstyle-mvn.xml</configLocation>
Thomas Vachuska43977572016-06-02 13:48:55 -0700845 <suppressionsLocation>onos/suppressions.xml
846 </suppressionsLocation>
Yuta HIGUCHI002f3942017-08-18 10:54:26 -0700847 <headerLocation>onos/onos-java.header</headerLocation>
Thomas Vachuska43977572016-06-02 13:48:55 -0700848 <failsOnError>false</failsOnError>
849 <logViolationsToConsole>true</logViolationsToConsole>
Yuta HIGUCHId919d9b2017-06-26 11:10:20 -0700850 <includeTestSourceDirectory>true</includeTestSourceDirectory>
851 <includeResources>false</includeResources>
Thomas Vachuska43977572016-06-02 13:48:55 -0700852 </configuration>
853 <executions>
854 <execution>
855 <id>validate-checkstyle</id>
856 <phase>verify</phase>
857 <goals>
858 <goal>check</goal>
859 </goals>
860 </execution>
861 </executions>
862 </plugin>
863
864 <plugin>
865 <groupId>org.apache.maven.plugins</groupId>
866 <artifactId>maven-pmd-plugin</artifactId>
Yuta HIGUCHIe6d3adf2017-05-22 16:31:58 -0700867 <version>3.8</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700868 <configuration>
869 <excludes>
870 </excludes>
871 <rulesets>
872 <ruleset>onos/pmd.xml</ruleset>
873 </rulesets>
874 </configuration>
875 <executions>
876 <execution>
877 <id>validate-pmd</id>
878 <phase>verify</phase>
879 <goals>
880 <!-- Uncomment this goal to make the build fail on pmd errors -->
881 <!--<goal>check</goal>-->
882 </goals>
883 </execution>
884 </executions>
885 </plugin>
886
887 <plugin>
888 <groupId>org.jacoco</groupId>
889 <artifactId>jacoco-maven-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700890 <version>0.7.9</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700891 <executions>
892 <execution>
893 <id>default-prepare-agent</id>
894 <goals>
895 <goal>prepare-agent</goal>
896 </goals>
897 </execution>
898 <execution>
899 <id>default-report</id>
900 <phase>prepare-package</phase>
901 <goals>
902 <goal>report</goal>
903 </goals>
904 </execution>
905 </executions>
906 </plugin>
907 </plugins>
908 </build>
909
910 <reporting>
911 <plugins>
912 <plugin>
913 <groupId>org.apache.maven.plugins</groupId>
914 <artifactId>maven-checkstyle-plugin</artifactId>
915 <configuration>
916 <configLocation>onos/checkstyle.xml</configLocation>
917 </configuration>
918 </plugin>
919
920 <plugin>
921 <groupId>org.apache.maven.plugins</groupId>
922 <artifactId>maven-pmd-plugin</artifactId>
923 <configuration>
924 <excludes>
925 </excludes>
926 <rulesets>
927 <ruleset>onos/pmd.xml</ruleset>
928 </rulesets>
929 </configuration>
930 </plugin>
931 </plugins>
932 </reporting>
933</project>