blob: 4a9d96eb6cf43c8267ff858cb1639f3d76459ad2 [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 Milkeydc48fb22017-09-26 14:42:24 -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 Milkeydc48fb22017-09-26 14:42:24 -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 Milkey8e2c3392017-10-16 14:57:02 -070043 <onos-yang-tools.version>2.3.0-b2</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>
Yuta HIGUCHI923a7782017-09-05 13:04:47 -070052 <bouncycastle.version>1.58</bouncycastle.version>
Thomas Vachuska43977572016-06-02 13:48:55 -070053 <!-- TODO argLine was originally added maven-surfire-plugin configuration
54 to fix locale errors for non-US developers. However, it breaks
55 SonarQube's test coverage, so moving here for now. -->
56 <argLine>-Duser.language=en -Duser.region=US</argLine>
57 </properties>
58
59 <dependencyManagement>
60 <dependencies>
61 <dependency>
62 <groupId>junit</groupId>
63 <artifactId>junit</artifactId>
64 <version>4.12</version>
65 <scope>test</scope>
66 </dependency>
67
68 <dependency>
69 <groupId>org.hamcrest</groupId>
70 <artifactId>hamcrest-core</artifactId>
71 <version>1.3</version>
72 <scope>test</scope>
73 </dependency>
74 <dependency>
75 <groupId>org.hamcrest</groupId>
76 <artifactId>hamcrest-library</artifactId>
77 <version>1.3</version>
78 <scope>test</scope>
79 </dependency>
Ray Milkeyec253f82017-09-20 16:29:19 +090080 <dependency>
81 <groupId>com.spotify</groupId>
82 <artifactId>hamcrest-optional</artifactId>
83 <version>1.1.0</version>
84 <scope>test</scope>
85 </dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -070086
87 <dependency>
88 <groupId>org.slf4j</groupId>
89 <artifactId>slf4j-api</artifactId>
90 <version>${slf4j.version}</version>
91 <scope>provided</scope>
92 </dependency>
93
94 <dependency>
95 <groupId>org.slf4j</groupId>
96 <artifactId>slf4j-core</artifactId>
97 <version>${slf4j.version}</version>
98 <scope>test</scope>
99 </dependency>
100
101 <dependency>
102 <groupId>org.slf4j</groupId>
103 <artifactId>slf4j-jdk14</artifactId>
104 <version>${slf4j.version}</version>
105 <scope>test</scope>
106 </dependency>
107
108 <dependency>
109 <groupId>com.google.guava</groupId>
110 <artifactId>guava</artifactId>
111 <version>${guava.version}</version>
112 </dependency>
113
114 <dependency>
115 <groupId>com.google.guava</groupId>
116 <artifactId>guava-testlib</artifactId>
117 <version>${guava.version}</version>
118 <scope>test</scope>
119 </dependency>
120
121 <dependency>
122 <groupId>com.googlecode.concurrent-trees</groupId>
123 <artifactId>concurrent-trees</artifactId>
Yuta HIGUCHI9da68452017-01-06 11:45:02 -0800124 <version>2.6.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700125 </dependency>
126
127 <dependency>
Yuta HIGUCHI4b662e12017-08-14 17:34:42 -0700128 <groupId>commons-collections</groupId>
129 <artifactId>commons-collections</artifactId>
130 <version>3.2.2</version>
131 </dependency>
132
133 <dependency>
134 <groupId>commons-configuration</groupId>
135 <artifactId>commons-configuration</artifactId>
136 <version>1.10</version>
137 </dependency>
138
139 <dependency>
140 <groupId>commons-io</groupId>
141 <artifactId>commons-io</artifactId>
142 <version>2.4</version>
143 </dependency>
144
145 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700146 <groupId>commons-lang</groupId>
147 <artifactId>commons-lang</artifactId>
148 <version>2.6</version>
149 </dependency>
150
151 <dependency>
152 <groupId>org.apache.commons</groupId>
153 <artifactId>commons-lang3</artifactId>
Yuta HIGUCHI5fd61a82017-02-02 12:30:38 -0800154 <version>3.5</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700155 </dependency>
156
157 <dependency>
Yuta HIGUCHI4b662e12017-08-14 17:34:42 -0700158 <groupId>commons-logging</groupId>
159 <artifactId>commons-logging</artifactId>
160 <version>1.2</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700161 </dependency>
162
163 <dependency>
Yuta HIGUCHI4b662e12017-08-14 17:34:42 -0700164 <groupId>org.apache.commons</groupId>
165 <artifactId>commons-math3</artifactId>
166 <version>3.6.1</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700167 </dependency>
168
169 <dependency>
170 <groupId>commons-pool</groupId>
171 <artifactId>commons-pool</artifactId>
172 <version>1.6</version>
173 </dependency>
174
175 <dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700176 <groupId>io.dropwizard.metrics</groupId>
177 <artifactId>metrics-core</artifactId>
178 <version>3.2.2</version>
179 </dependency>
180
181 <dependency>
182 <groupId>io.dropwizard.metrics</groupId>
183 <artifactId>metrics-json</artifactId>
184 <version>3.2.2</version>
185 </dependency>
186
187 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700188 <groupId>org.easymock</groupId>
189 <artifactId>easymock</artifactId>
190 <version>3.4</version>
191 <scope>test</scope>
192 </dependency>
193
Yuta HIGUCHI923a7782017-09-05 13:04:47 -0700194 <dependency>
195 <groupId>org.apache.sshd</groupId>
196 <artifactId>sshd-core</artifactId>
197 <version>1.4.0</version>
198 </dependency>
199
200 <dependency>
201 <groupId>org.bouncycastle</groupId>
202 <artifactId>bcpkix-jdk15on</artifactId>
203 <version>${bouncycastle.version}</version>
204 </dependency>
205
206 <dependency>
207 <groupId>org.bouncycastle</groupId>
208 <artifactId>bcprov-jdk15on</artifactId>
209 <version>${bouncycastle.version}</version>
210 </dependency>
211
212
Thomas Vachuska43977572016-06-02 13:48:55 -0700213 <!-- Web related -->
214 <dependency>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700215 <groupId>javax.servlet</groupId>
216 <artifactId>javax.servlet-api</artifactId>
217 <version>3.1.0</version>
218 <scope>test</scope>
219 </dependency>
220 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700221 <groupId>org.glassfish.jersey.core</groupId>
222 <artifactId>jersey-client</artifactId>
223 <version>${jersey.version}</version>
224 </dependency>
225 <dependency>
226 <groupId>org.glassfish.jersey.containers</groupId>
227 <artifactId>jersey-container-servlet</artifactId>
228 <version>${jersey.version}</version>
229 <scope>provided</scope>
230 </dependency>
231 <dependency>
232 <groupId>org.glassfish.jersey.containers</groupId>
233 <artifactId>jersey-container-servlet-core</artifactId>
234 <version>${jersey.version}</version>
235 <scope>provided</scope>
236 </dependency>
237 <dependency>
238 <groupId>org.glassfish.jersey.media</groupId>
239 <artifactId>jersey-media-multipart</artifactId>
240 <version>${jersey.version}</version>
241 <scope>provided</scope>
242 </dependency>
243 <dependency>
244 <groupId>org.glassfish.jersey.test-framework</groupId>
245 <artifactId>jersey-test-framework-core</artifactId>
246 <version>${jersey.version}</version>
247 <scope>test</scope>
248 </dependency>
249 <dependency>
250 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
251 <artifactId>jersey-test-framework-provider-jetty</artifactId>
252 <version>${jersey.version}</version>
253 <scope>test</scope>
254 </dependency>
255 <dependency>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700256 <groupId>org.eclipse.jetty</groupId>
257 <artifactId>jetty-server</artifactId>
258 <version>${jetty.version}</version>
259 <scope>test</scope>
260 </dependency>
261 <dependency>
262 <groupId>org.eclipse.jetty</groupId>
263 <artifactId>jetty-util</artifactId>
264 <version>${jetty.version}</version>
265 </dependency>
266 <dependency>
267 <groupId>org.eclipse.jetty</groupId>
268 <artifactId>jetty-io</artifactId>
269 <version>${jetty.version}</version>
270 </dependency>
271 <dependency>
272 <groupId>org.eclipse.jetty</groupId>
273 <artifactId>jetty-http</artifactId>
274 <version>${jetty.version}</version>
275 </dependency>
276 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700277 <groupId>com.fasterxml.jackson.core</groupId>
278 <artifactId>jackson-databind</artifactId>
279 <version>${jackson.version}</version>
280 <scope>provided</scope>
281 </dependency>
282 <dependency>
283 <groupId>com.fasterxml.jackson.core</groupId>
284 <artifactId>jackson-annotations</artifactId>
285 <version>${jackson.version}</version>
286 <scope>provided</scope>
287 </dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700288 <dependency>
289 <groupId>com.fasterxml.jackson.core</groupId>
290 <artifactId>jackson-core</artifactId>
291 <version>${jackson.version}</version>
292 <scope>provided</scope>
293 </dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700294
295 <!-- OSGi related -->
296 <dependency>
297 <groupId>org.osgi</groupId>
298 <artifactId>org.osgi.core</artifactId>
299 <version>${osgi.version}</version>
300 <scope>provided</scope>
301 </dependency>
302 <dependency>
303 <groupId>org.osgi</groupId>
304 <artifactId>org.osgi.compendium</artifactId>
305 <version>${osgi.version}</version>
306 <scope>provided</scope>
307 </dependency>
308 <dependency>
309 <groupId>org.apache.felix</groupId>
310 <artifactId>org.apache.felix.scr.annotations</artifactId>
311 <version>1.9.12</version>
312 <scope>provided</scope>
313 </dependency>
314 <dependency>
315 <groupId>org.apache.felix</groupId>
316 <artifactId>org.apache.felix.scr</artifactId>
317 <version>1.8.2</version>
318 </dependency>
319
320 <dependency>
321 <groupId>org.apache.karaf.features</groupId>
322 <artifactId>org.apache.karaf.features.core</artifactId>
323 <version>${karaf.version}</version>
324 <scope>provided</scope>
325 </dependency>
326 <dependency>
327 <groupId>org.apache.karaf.system</groupId>
328 <artifactId>org.apache.karaf.system.core</artifactId>
329 <version>${karaf.version}</version>
330 <scope>provided</scope>
331 </dependency>
332 <dependency>
333 <groupId>org.apache.karaf.shell</groupId>
334 <artifactId>org.apache.karaf.shell.console</artifactId>
335 <version>${karaf.version}</version>
336 <scope>provided</scope>
337 </dependency>
338
339 <dependency>
340 <groupId>org.livetribe.slp</groupId>
341 <artifactId>livetribe-slp</artifactId>
342 <version>2.2.1</version>
343 </dependency>
344
345 <dependency>
346 <groupId>com.eclipsesource.minimal-json</groupId>
347 <artifactId>minimal-json</artifactId>
348 <version>0.9.4</version>
349 </dependency>
350 <dependency>
351 <groupId>com.esotericsoftware</groupId>
352 <artifactId>kryo</artifactId>
Yuta HIGUCHI86f142f2016-07-09 17:44:09 -0700353 <version>4.0.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700354 </dependency>
355 <dependency>
356 <groupId>com.esotericsoftware</groupId>
357 <artifactId>reflectasm</artifactId>
Yuta HIGUCHI86f142f2016-07-09 17:44:09 -0700358 <version>1.11.3</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700359 </dependency>
360 <dependency>
361 <groupId>org.ow2.asm</groupId>
362 <artifactId>asm</artifactId>
Yuta HIGUCHI86f142f2016-07-09 17:44:09 -0700363 <version>5.0.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700364 </dependency>
365 <dependency>
366 <groupId>com.esotericsoftware</groupId>
367 <artifactId>minlog</artifactId>
368 <version>1.3.0</version>
369 </dependency>
370 <dependency>
371 <groupId>org.objenesis</groupId>
372 <artifactId>objenesis</artifactId>
373 <version>2.2</version>
374 </dependency>
375
376 <!-- Netty related; for now we require both 3.10.x and 4 -->
377 <dependency>
378 <groupId>io.netty</groupId>
379 <artifactId>netty</artifactId>
380 <version>3.10.5.Final</version>
381 </dependency>
382
383 <dependency>
384 <groupId>io.netty</groupId>
385 <artifactId>netty-common</artifactId>
386 <version>${netty4.version}</version>
387 </dependency>
388 <dependency>
389 <groupId>io.netty</groupId>
390 <artifactId>netty-buffer</artifactId>
391 <version>${netty4.version}</version>
392 </dependency>
393 <dependency>
394 <groupId>io.netty</groupId>
395 <artifactId>netty-transport</artifactId>
396 <version>${netty4.version}</version>
397 </dependency>
398 <dependency>
399 <groupId>io.netty</groupId>
400 <artifactId>netty-handler</artifactId>
401 <version>${netty4.version}</version>
402 </dependency>
403
404 <dependency>
405 <groupId>io.netty</groupId>
406 <artifactId>netty-codec</artifactId>
407 <version>${netty4.version}</version>
408 </dependency>
409
410 <dependency>
411 <groupId>io.netty</groupId>
412 <artifactId>netty-transport-native-epoll</artifactId>
413 <version>${netty4.version}</version>
414 <classifier>${os.detected.classifier}</classifier>
415 </dependency>
416
417 <dependency>
Jonathan Hart5dc9a4e2017-01-13 09:09:57 -0800418 <groupId>io.netty</groupId>
419 <artifactId>netty-resolver</artifactId>
420 <version>${netty4.version}</version>
421 </dependency>
422
423 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700424 <groupId>com.google.code.findbugs</groupId>
425 <artifactId>jsr305</artifactId>
426 <version>3.0.1</version>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700427 <scope>provided</scope>
Thomas Vachuska43977572016-06-02 13:48:55 -0700428 </dependency>
429
430 <dependency>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700431 <groupId>com.google.errorprone</groupId>
432 <artifactId>error_prone_annotations</artifactId>
433 <version>2.0.11</version>
434 </dependency>
435
436 <dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700437 <groupId>org.onosproject</groupId>
438 <artifactId>openflowj</artifactId>
439 <version>${openflowj.version}</version>
440 <scope>provided</scope>
441 </dependency>
Ray Milkey86d1b0a2017-05-16 15:15:08 -0700442
443 <dependency>
444 <groupId>org.onosproject</groupId>
445 <artifactId>onos-yang-model</artifactId>
446 <version>${onos-yang-tools.version}</version>
447 </dependency>
448 <dependency>
449 <groupId>org.onosproject</groupId>
450 <artifactId>onos-yang-runtime</artifactId>
451 <version>${onos-yang-tools.version}</version>
452 </dependency>
Yuta HIGUCHIb8dae872017-06-27 20:06:48 -0700453 <dependency>
454 <groupId>org.onosproject</groupId>
455 <artifactId>onos-yang-serializers-xml</artifactId>
456 <version>${onos-yang-tools.version}</version>
457 </dependency>
458 <dependency>
459 <groupId>org.onosproject</groupId>
460 <artifactId>onos-yang-serializers-json</artifactId>
461 <version>${onos-yang-tools.version}</version>
462 </dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700463 </dependencies>
464 </dependencyManagement>
465
466 <dependencies>
Yuta HIGUCHI4b662e12017-08-14 17:34:42 -0700467
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700468 <!-- COMPILE -->
Yuta HIGUCHI4b662e12017-08-14 17:34:42 -0700469 <dependency>
Yuta HIGUCHI4b662e12017-08-14 17:34:42 -0700470 <groupId>commons-configuration</groupId>
471 <artifactId>commons-configuration</artifactId>
472 </dependency>
473
474 <dependency>
475 <groupId>commons-logging</groupId>
476 <artifactId>commons-logging</artifactId>
477 </dependency>
478
479 <dependency>
480 <groupId>commons-collections</groupId>
481 <artifactId>commons-collections</artifactId>
482 </dependency>
483
484 <dependency>
485 <groupId>commons-lang</groupId>
486 <artifactId>commons-lang</artifactId>
487 </dependency>
488
489 <dependency>
490 <groupId>org.apache.commons</groupId>
491 <artifactId>commons-lang3</artifactId>
492 </dependency>
493
494 <dependency>
495 <groupId>commons-io</groupId>
496 <artifactId>commons-io</artifactId>
497 </dependency>
498
499 <dependency>
500 <groupId>commons-pool</groupId>
501 <artifactId>commons-pool</artifactId>
502 </dependency>
503
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700504<!-- transitive Kryo dependency.
Thomas Vachuska43977572016-06-02 13:48:55 -0700505 <dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700506 <groupId>org.objenesis</groupId>
507 <artifactId>objenesis</artifactId>
Thomas Vachuska43977572016-06-02 13:48:55 -0700508 </dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700509 -->
Thomas Vachuska43977572016-06-02 13:48:55 -0700510 <dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700511 <groupId>com.google.guava</groupId>
512 <artifactId>guava</artifactId>
Thomas Vachuska43977572016-06-02 13:48:55 -0700513 </dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700514
515<!-- Fix buck? everyone depending on netty doesn't sound right.
Thomas Vachuska43977572016-06-02 13:48:55 -0700516 <dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700517 <groupId>io.netty</groupId>
518 <artifactId>netty</artifactId>
Thomas Vachuska43977572016-06-02 13:48:55 -0700519 </dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700520
521 <dependency>
522 <groupId>io.netty</groupId>
523 <artifactId>netty-buffer</artifactId>
524 </dependency>
525
526 <dependency>
527 <groupId>io.netty</groupId>
528 <artifactId>netty-common</artifactId>
529 </dependency>
530 -->
531
532 <dependency>
533 <groupId>com.eclipsesource.minimal-json</groupId>
534 <artifactId>minimal-json</artifactId>
535 </dependency>
536
537<!-- Fix buck? Kryo and transitive dependency.
538 <dependency>
539 <groupId>com.esotericsoftware</groupId>
540 <artifactId>kryo</artifactId>
541 </dependency>
542
543 <dependency>
544 <groupId>com.esotericsoftware</groupId>
545 <artifactId>reflectasm</artifactId>
546 </dependency>
547
548 <dependency>
549 <groupId>org.ow2.asm</groupId>
550 <artifactId>asm</artifactId>
551 </dependency>
552
553 <dependency>
554 <groupId>com.esotericsoftware</groupId>
555 <artifactId>minlog</artifactId>
556 </dependency>
557 -->
558<!-- Fix buck? everyone depending on metrics doesn't sound right.
559 <dependency>
560 <groupId>io.dropwizard.metrics</groupId>
561 <artifactId>metrics-core</artifactId>
562 </dependency>
563
564 <dependency>
565 <groupId>io.dropwizard.metrics</groupId>
566 <artifactId>metrics-json</artifactId>
567 </dependency>
568 -->
569
Thomas Vachuska43977572016-06-02 13:48:55 -0700570 <dependency>
571 <groupId>org.slf4j</groupId>
572 <artifactId>slf4j-api</artifactId>
573 </dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700574
575 <dependency>
576 <groupId>org.osgi</groupId>
577 <artifactId>org.osgi.core</artifactId>
578 </dependency>
579
580 <dependency>
581 <groupId>org.osgi</groupId>
582 <artifactId>org.osgi.compendium</artifactId>
583 </dependency>
584
585 <dependency>
586 <groupId>org.apache.felix</groupId>
587 <artifactId>org.apache.felix.scr.annotations</artifactId>
588 </dependency>
589
590 <dependency>
591 <groupId>org.apache.felix</groupId>
592 <artifactId>org.apache.felix.scr</artifactId>
593 </dependency>
594
595 <dependency>
596 <groupId>com.fasterxml.jackson.core</groupId>
597 <artifactId>jackson-annotations</artifactId>
598 </dependency>
599
600 <dependency>
601 <groupId>com.fasterxml.jackson.core</groupId>
602 <artifactId>jackson-core</artifactId>
603 </dependency>
604
605 <dependency>
606 <groupId>com.fasterxml.jackson.core</groupId>
607 <artifactId>jackson-databind</artifactId>
608 </dependency>
609
610 <dependency>
611 <groupId>org.apache.karaf.features</groupId>
612 <artifactId>org.apache.karaf.features.core</artifactId>
613 </dependency>
614
615 <dependency>
616 <groupId>org.apache.karaf.system</groupId>
617 <artifactId>org.apache.karaf.system.core</artifactId>
618 </dependency>
619
620 <!-- YANG stuff here? Fix buck?-->
621
622 <!-- TEST -->
623 <dependency>
624 <groupId>junit</groupId>
625 <artifactId>junit</artifactId>
626 <scope>test</scope>
627 </dependency>
628
629 <dependency>
630 <groupId>org.easymock</groupId>
631 <artifactId>easymock</artifactId>
632 <scope>test</scope>
633 </dependency>
634
635 <dependency>
636 <groupId>org.hamcrest</groupId>
637 <artifactId>hamcrest-core</artifactId>
638 <scope>test</scope>
639 </dependency>
640
641 <dependency>
642 <groupId>org.hamcrest</groupId>
643 <artifactId>hamcrest-library</artifactId>
644 <scope>test</scope>
645 </dependency>
646
647 <dependency>
Ray Milkeyec253f82017-09-20 16:29:19 +0900648 <groupId>com.spotify</groupId>
649 <artifactId>hamcrest-optional</artifactId>
650 <scope>test</scope>
651 </dependency>
652
653 <dependency>
Yuta HIGUCHIef9fccf2017-08-16 23:36:31 -0700654 <groupId>com.google.guava</groupId>
655 <artifactId>guava-testlib</artifactId>
656 <scope>test</scope>
657 </dependency>
658
659 <!-- revisit if this is really needed -->
Thomas Vachuska43977572016-06-02 13:48:55 -0700660 <dependency>
661 <groupId>org.slf4j</groupId>
662 <artifactId>slf4j-jdk14</artifactId>
663 </dependency>
664 <!-- TODO sonar-maven-plugin prints the following ERROR many times:
665 Class not found: javax.annotation.Nullable
666 The following dependency alleviates this problem, but perhaps
667 it can be better located in the future. -->
668 <dependency>
669 <groupId>com.google.code.findbugs</groupId>
670 <artifactId>jsr305</artifactId>
Thomas Vachuska43977572016-06-02 13:48:55 -0700671 </dependency>
672 </dependencies>
673
674 <build>
675 <pluginManagement>
676 <plugins>
677 <plugin>
678 <groupId>org.apache.maven.plugins</groupId>
679 <artifactId>maven-compiler-plugin</artifactId>
680 <!-- TODO: update once following issue is fixed. -->
681 <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
682 <version>2.5.1</version>
683 <configuration>
684 <source>1.8</source>
685 <target>1.8</target>
686 </configuration>
687 </plugin>
688
689 <plugin>
690 <groupId>org.apache.maven.plugins</groupId>
691 <artifactId>maven-surefire-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700692 <version>2.20</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700693 <configuration>
694 <redirectTestOutputToFile>true</redirectTestOutputToFile>
695 <printSummary>true</printSummary>
696 <excludedGroups>org.onlab.junit.IntegrationTest
697 </excludedGroups>
698 <rerunFailingTestsCount>1</rerunFailingTestsCount>
699 </configuration>
700 </plugin>
701 <plugin>
702 <groupId>org.apache.maven.plugins</groupId>
703 <artifactId>maven-javadoc-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700704 <version>2.10.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700705 <configuration>
706 <tags>
707 <tag>
708 <name>onos.rsModel</name>
709 <placement>m</placement>
710 <head>Json model for REST api:</head>
711 </tag>
712 </tags>
713 </configuration>
714 </plugin>
715 <plugin>
716 <groupId>org.apache.maven.plugins</groupId>
717 <artifactId>maven-jar-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700718 <version>3.0.2</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700719 <configuration>
720 <skipIfEmpty>true</skipIfEmpty>
721 </configuration>
722 <executions>
723 <execution>
724 <id>default</id>
725 <goals>
726 <goal>test-jar</goal>
727 </goals>
728 </execution>
729 </executions>
730 </plugin>
731
732 <plugin>
733 <groupId>org.apache.maven.plugins</groupId>
734 <artifactId>maven-resources-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700735 <version>3.0.2</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700736 </plugin>
737
738 <plugin>
739 <groupId>org.apache.felix</groupId>
740 <artifactId>maven-bundle-plugin</artifactId>
Yuta HIGUCHIe6d3adf2017-05-22 16:31:58 -0700741 <version>3.3.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700742 <extensions>true</extensions>
743 <configuration>
744 <niceManifest>true</niceManifest>
745 </configuration>
746 </plugin>
747
748 <plugin>
749 <groupId>org.apache.maven.plugins</groupId>
750 <artifactId>maven-shade-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700751 <version>3.0.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700752 </plugin>
753
754 <plugin>
755 <groupId>org.apache.felix</groupId>
756 <artifactId>maven-scr-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700757 <version>1.24.0</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700758 <executions>
759 <execution>
760 <id>generate-scr-srcdescriptor</id>
761 <goals>
762 <goal>scr</goal>
763 </goals>
764 </execution>
765 </executions>
766 <configuration>
767 <supportedProjectTypes>
768 <supportedProjectType>bundle</supportedProjectType>
769 <supportedProjectType>war</supportedProjectType>
770 </supportedProjectTypes>
771 </configuration>
772 </plugin>
773 <plugin>
774 <groupId>org.codehaus.mojo</groupId>
775 <artifactId>findbugs-maven-plugin</artifactId>
Yuta HIGUCHI86fbe142016-07-20 15:22:00 -0700776 <version>3.0.4</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700777 <dependencies>
778 <dependency>
779 <groupId>org.onosproject</groupId>
780 <artifactId>onos-build-conf</artifactId>
781 <version>${onos-build-conf.version}</version>
782 </dependency>
783 </dependencies>
784 <configuration>
785 <effort>Max</effort>
786 <excludeFilterFile>onos/findbugs-suppressions.xml
787 </excludeFilterFile>
788 </configuration>
789 </plugin>
790
791 <!-- This version needs to be updated manually when changes are made to onos-maven-plugin -->
792 <plugin>
793 <groupId>org.onosproject</groupId>
794 <artifactId>onos-maven-plugin</artifactId>
795 <version>${onos-maven-plugin.version}</version>
796 <executions>
797 <execution>
798 <id>cfg</id>
799 <phase>generate-resources</phase>
800 <goals>
801 <goal>cfg</goal>
802 </goals>
803 </execution>
804 <execution>
805 <id>swagger</id>
806 <phase>generate-sources</phase>
807 <goals>
808 <goal>swagger</goal>
809 </goals>
810 </execution>
811 <execution>
812 <id>app</id>
813 <phase>package</phase>
814 <goals>
815 <goal>app</goal>
816 </goals>
817 </execution>
818 </executions>
819 </plugin>
Ray Milkey86d1b0a2017-05-16 15:15:08 -0700820
821 <plugin>
822 <groupId>org.onosproject</groupId>
823 <artifactId>onos-yang-compiler-maven-plugin</artifactId>
824 <version>${onos-yang-tools.version}</version>
825 <executions>
826 <execution>
827 <goals>
828 <goal>yang2java</goal>
829 </goals>
830 </execution>
831 </executions>
832 </plugin>
Thomas Vachuska43977572016-06-02 13:48:55 -0700833 </plugins>
834 </pluginManagement>
835
836 <plugins>
837 <plugin>
838 <groupId>org.apache.maven.plugins</groupId>
839 <artifactId>maven-jar-plugin</artifactId>
840 </plugin>
841
842 <plugin>
843 <groupId>org.apache.maven.plugins</groupId>
844 <artifactId>maven-checkstyle-plugin</artifactId>
845 <version>2.17</version>
846 <dependencies>
847 <dependency>
848 <groupId>org.onosproject</groupId>
849 <artifactId>onos-build-conf</artifactId>
850 <version>${onos-build-conf.version}</version>
851 </dependency>
Ray Milkey2d572dd2017-04-14 10:01:24 -0700852 <dependency>
853 <groupId>com.puppycrawl.tools</groupId>
854 <artifactId>checkstyle</artifactId>
855 <version>6.19</version>
856 </dependency>
Thomas Vachuska43977572016-06-02 13:48:55 -0700857 </dependencies>
858 <configuration>
859 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
860 <sourceDirectory>${project.build.sourceDirectory}
861 </sourceDirectory>
862 <testSourceDirectory>${project.build.testSourceDirectory}
863 </testSourceDirectory>
864 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
Ray Milkey2d572dd2017-04-14 10:01:24 -0700865 <configLocation>onos/checkstyle-mvn.xml</configLocation>
Thomas Vachuska43977572016-06-02 13:48:55 -0700866 <suppressionsLocation>onos/suppressions.xml
867 </suppressionsLocation>
Yuta HIGUCHI002f3942017-08-18 10:54:26 -0700868 <headerLocation>onos/onos-java.header</headerLocation>
Thomas Vachuska43977572016-06-02 13:48:55 -0700869 <failsOnError>false</failsOnError>
870 <logViolationsToConsole>true</logViolationsToConsole>
Yuta HIGUCHId919d9b2017-06-26 11:10:20 -0700871 <includeTestSourceDirectory>true</includeTestSourceDirectory>
872 <includeResources>false</includeResources>
Thomas Vachuska43977572016-06-02 13:48:55 -0700873 </configuration>
874 <executions>
875 <execution>
876 <id>validate-checkstyle</id>
877 <phase>verify</phase>
878 <goals>
879 <goal>check</goal>
880 </goals>
881 </execution>
882 </executions>
883 </plugin>
884
885 <plugin>
886 <groupId>org.apache.maven.plugins</groupId>
887 <artifactId>maven-pmd-plugin</artifactId>
Yuta HIGUCHIe6d3adf2017-05-22 16:31:58 -0700888 <version>3.8</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700889 <configuration>
890 <excludes>
891 </excludes>
892 <rulesets>
893 <ruleset>onos/pmd.xml</ruleset>
894 </rulesets>
895 </configuration>
896 <executions>
897 <execution>
898 <id>validate-pmd</id>
899 <phase>verify</phase>
900 <goals>
901 <!-- Uncomment this goal to make the build fail on pmd errors -->
902 <!--<goal>check</goal>-->
903 </goals>
904 </execution>
905 </executions>
906 </plugin>
907
908 <plugin>
909 <groupId>org.jacoco</groupId>
910 <artifactId>jacoco-maven-plugin</artifactId>
Yuta HIGUCHIf5e7ef82017-04-21 11:12:52 -0700911 <version>0.7.9</version>
Thomas Vachuska43977572016-06-02 13:48:55 -0700912 <executions>
913 <execution>
914 <id>default-prepare-agent</id>
915 <goals>
916 <goal>prepare-agent</goal>
917 </goals>
918 </execution>
919 <execution>
920 <id>default-report</id>
921 <phase>prepare-package</phase>
922 <goals>
923 <goal>report</goal>
924 </goals>
925 </execution>
926 </executions>
927 </plugin>
928 </plugins>
929 </build>
930
931 <reporting>
932 <plugins>
933 <plugin>
934 <groupId>org.apache.maven.plugins</groupId>
935 <artifactId>maven-checkstyle-plugin</artifactId>
936 <configuration>
937 <configLocation>onos/checkstyle.xml</configLocation>
938 </configuration>
939 </plugin>
940
941 <plugin>
942 <groupId>org.apache.maven.plugins</groupId>
943 <artifactId>maven-pmd-plugin</artifactId>
944 <configuration>
945 <excludes>
946 </excludes>
947 <rulesets>
948 <ruleset>onos/pmd.xml</ruleset>
949 </rulesets>
950 </configuration>
951 </plugin>
952 </plugins>
953 </reporting>
954</project>