Bump scala to 2.12.9
[odlparent.git] / odlparent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=2 tabstop=2: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11   <modelVersion>4.0.0</modelVersion>
12
13   <parent>
14     <groupId>org.opendaylight.odlparent</groupId>
15     <artifactId>odlparent-lite</artifactId>
16     <version>6.0.0-SNAPSHOT</version>
17     <relativePath>../odlparent-lite</relativePath>
18   </parent>
19
20   <artifactId>odlparent</artifactId>
21   <packaging>pom</packaging>
22   <name>ODL :: odlparent :: ${project.artifactId}</name>
23
24   <scm>
25     <connection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</connection>
26     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</developerConnection>
27     <tag>HEAD</tag>
28     <url>https://wiki.opendaylight.org/view/ODL_Root_Parent:Main</url>
29   </scm>
30
31   <!-- Variables should only be used where genuinely useful (to avoid
32        repetition); in general versions should be specified in the
33        corresponding dependencyManagement or pluginManagement element, not as
34        a variable. Duplication within odlparent doesn't count if it can be
35        managed using maven-versions-plugin. -->
36   <properties>
37     <nexus.repository.release>opendaylight.release</nexus.repository.release>
38     <nexus.repository.snapshot>opendaylight.snapshot</nexus.repository.snapshot>
39
40     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
42
43     <!-- Java Versions -->
44     <maven.compiler.release>11</maven.compiler.release>
45
46     <!-- Used in openflowplugin -->
47     <enforcer.version>3.0.0-M2</enforcer.version>
48     <!-- Used in controller, genius, infrautils, netconf, netvirt, ovsdb, serviceutils -->
49     <karaf.version>4.2.2</karaf.version>
50     <!-- Used in bgpcep, lispflowmapping -->
51     <projectinfo>2.8.1</projectinfo>
52
53     <!-- Supporting Libraries -->
54     <!-- Only used internally -->
55     <bouncycastle.version>1.62</bouncycastle.version>
56
57     <!-- JaCoCo configuration, by default tied to Sonar configuration, but can be overridden separately
58          to allow projects to report Sonar values from the entire project. -->
59     <jacoco.destFile>${project.build.directory}/code-coverage/jacoco.exec</jacoco.destFile>
60
61     <!-- Default Sonar configuration -->
62     <sonar-jacoco-listeners.version>3.8</sonar-jacoco-listeners.version>
63     <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
64     <sonar.jacoco.reportPath>${jacoco.destFile}</sonar.jacoco.reportPath>
65     <sonar.jacoco.itReportPath>${project.build.directory}/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
66
67     <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
68     <sonar.exclusions>**/gen/**,**/generated-sources/**,**/generated-test-sources/**,**/yang-gen/**,**/yang-gen-config/**,**/yang-gen-sal/**,**/yang-gen-code/**,**/pax/**</sonar.exclusions>
69
70     <!-- Opt-in code quality checks -->
71     <pmd.cpd.fail>false</pmd.cpd.fail>                  <!-- Copy/paste detection -->
72     <duplicate-finder.skip>true</duplicate-finder.skip> <!-- Classpath duplicates -->
73
74     <!-- Redirect test output to files (overridable) -->
75     <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
76   </properties>
77
78   <dependencyManagement>
79     <dependencies>
80
81       <dependency>
82         <groupId>org.opendaylight.odlparent</groupId>
83         <artifactId>odlparent-artifacts</artifactId>
84         <version>6.0.0-SNAPSHOT</version>
85         <scope>import</scope>
86         <type>pom</type>
87       </dependency>
88
89       <!-- We import Karaf dependencies to ensure we converge by default on the versions used there -->
90       <dependency>
91         <groupId>org.apache.karaf.features</groupId>
92         <artifactId>framework</artifactId>
93         <version>${karaf.version}</version>
94         <scope>import</scope>
95         <type>pom</type>
96       </dependency>
97
98       <!-- Build tool dependencies (normally not here in <dependencies>,
99            but in a <dependency> in <pluginManagement> but for Checkstyle this
100            is required so that we can share the same version of Checkstyle
101            for both the Maven plugin below as well as  for custom Checkstyle
102            check rule projects, such as yangtools' checkstyle-logging) -->
103       <dependency>
104         <groupId>com.puppycrawl.tools</groupId>
105         <artifactId>checkstyle</artifactId>
106         <!-- This should match the plugin management on maven-checkstyle-plugin below -->
107         <version>8.20</version>
108       </dependency>
109
110       <!-- Testing Dependencies -->
111       <!-- JUnit, Hamcrest, Mockito and PowerMock need to be kept in sync -->
112       <!-- Need to stick to JUnit 4.11 until
113            https://github.com/jayway/powermock/issues/560 is fixed (either in
114            PowerMock or with a new JUnit release) -->
115       <dependency>
116         <groupId>junit</groupId>
117         <artifactId>junit</artifactId>
118         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
119         <version>4.11</version>
120         <scope>test</scope>
121       </dependency>
122       <dependency>
123          <groupId>org.skyscreamer</groupId>
124          <artifactId>jsonassert</artifactId>
125          <version>1.5.0</version>
126          <scope>test</scope>
127       </dependency>
128       <dependency>
129         <groupId>org.mockito</groupId>
130         <artifactId>mockito-core</artifactId>
131         <version>2.25.1</version>
132         <scope>test</scope>
133       </dependency>
134       <dependency>
135         <groupId>org.mockito</groupId>
136         <artifactId>mockito-inline</artifactId>
137         <version>2.25.1</version>
138         <scope>test</scope>
139       </dependency>
140       <dependency>
141         <groupId>org.hamcrest</groupId>
142         <artifactId>hamcrest</artifactId>
143         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
144         <version>2.1</version>
145         <scope>test</scope>
146       </dependency>
147       <dependency>
148         <groupId>org.hamcrest</groupId>
149         <artifactId>hamcrest-core</artifactId>
150         <version>2.1</version>
151         <scope>test</scope>
152       </dependency>
153       <dependency>
154         <groupId>org.hamcrest</groupId>
155         <artifactId>hamcrest-library</artifactId>
156         <version>2.1</version>
157         <scope>test</scope>
158       </dependency>
159       <dependency>
160         <groupId>com.google.truth</groupId>
161         <artifactId>truth</artifactId>
162         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
163         <version>0.43</version>
164         <scope>test</scope>
165       </dependency>
166       <dependency>
167         <groupId>com.google.truth.extensions</groupId>
168         <artifactId>truth-java8-extension</artifactId>
169         <version>0.43</version>
170         <scope>test</scope>
171       </dependency>
172       <dependency>
173         <groupId>org.awaitility</groupId>
174         <artifactId>awaitility</artifactId>
175         <version>3.0.0</version>
176         <scope>test</scope>
177       </dependency>
178       <dependency>
179         <groupId>org.awaitility</groupId>
180         <artifactId>awaitility-proxy</artifactId>
181         <version>3.0.0</version>
182         <scope>test</scope>
183       </dependency>
184       <dependency>
185         <groupId>org.powermock</groupId>
186         <artifactId>powermock-api-mockito2</artifactId>
187         <version>2.0.2</version>
188         <scope>test</scope>
189       </dependency>
190       <dependency>
191         <groupId>org.powermock</groupId>
192         <artifactId>powermock-api-support</artifactId>
193         <version>2.0.2</version>
194         <scope>test</scope>
195       </dependency>
196       <dependency>
197         <groupId>org.powermock</groupId>
198         <artifactId>powermock-core</artifactId>
199         <version>2.0.2</version>
200         <scope>test</scope>
201       </dependency>
202       <dependency>
203         <groupId>org.powermock</groupId>
204         <artifactId>powermock-module-junit4</artifactId>
205         <version>2.0.2</version>
206         <scope>test</scope>
207       </dependency>
208       <dependency>
209         <groupId>org.powermock</groupId>
210         <artifactId>powermock-reflect</artifactId>
211         <version>2.0.2</version>
212         <scope>test</scope>
213       </dependency>
214
215       <!--
216            Annotation Processors
217        -->
218       <dependency>
219         <!-- Generates immutable implementations, builders, the works -->
220         <groupId>org.immutables</groupId>
221         <artifactId>value</artifactId>
222         <version>2.7.5</version>
223         <!-- Must be provided; scope=test here breaks APT in Eclipse :( -->
224         <scope>provided</scope>
225       </dependency>
226       <dependency>
227         <!-- Generates META-INF/services entries for ServiceLoader -->
228         <groupId>org.kohsuke.metainf-services</groupId>
229         <artifactId>metainf-services</artifactId>
230         <version>1.8</version>
231         <optional>true</optional>
232         <scope>provided</scope>
233       </dependency>
234
235       <!--
236            Supporting Libraries
237        -->
238       <dependency>
239         <groupId>org.slf4j</groupId>
240         <artifactId>jcl-over-slf4j</artifactId>
241         <version>1.7.25</version>
242       </dependency>
243       <dependency>
244         <groupId>org.slf4j</groupId>
245         <artifactId>slf4j-api</artifactId>
246         <version>1.7.25</version>
247       </dependency>
248       <dependency>
249         <groupId>org.slf4j</groupId>
250         <artifactId>slf4j-log4j12</artifactId>
251         <version>1.7.25</version>
252       </dependency>
253       <dependency>
254         <groupId>org.slf4j</groupId>
255         <artifactId>log4j-over-slf4j</artifactId>
256         <version>1.7.25</version>
257       </dependency>
258       <dependency>
259         <groupId>org.slf4j</groupId>
260         <artifactId>slf4j-simple</artifactId>
261         <version>1.7.25</version>
262         <scope>test</scope>
263       </dependency>
264       <dependency>
265         <groupId>ch.qos.logback</groupId>
266         <artifactId>logback-core</artifactId>
267         <version>1.2.3</version>
268       </dependency>
269       <dependency>
270         <groupId>ch.qos.logback</groupId>
271         <artifactId>logback-classic</artifactId>
272         <version>1.2.3</version>
273       </dependency>
274
275       <!-- log4j2 -->
276       <dependency>
277         <groupId>org.apache.logging.log4j</groupId>
278         <artifactId>log4j-bom</artifactId>
279         <version>2.11.2</version>
280         <scope>import</scope>
281         <type>pom</type>
282       </dependency>
283
284       <dependency>
285         <groupId>com.google.guava</groupId>
286         <artifactId>guava</artifactId>
287         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
288         <version>27.1-jre</version>
289         <exclusions>
290           <exclusion>
291             <!-- Do not leak JSR305 onto the classpath by default -->
292             <groupId>com.google.code.findbugs</groupId>
293             <artifactId>jsr305</artifactId>
294           </exclusion>
295         </exclusions>
296       </dependency>
297       <dependency>
298         <groupId>com.google.guava</groupId>
299         <artifactId>guava-testlib</artifactId>
300         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
301         <version>27.1-jre</version>
302         <scope>test</scope>
303         <exclusions>
304           <exclusion>
305             <!-- Do not leak JSR305 onto the classpath by default -->
306             <groupId>com.google.code.findbugs</groupId>
307             <artifactId>jsr305</artifactId>
308           </exclusion>
309         </exclusions>
310       </dependency>
311
312       <!-- Caffeine plus bridges to Guava and JCache -->
313       <dependency>
314         <groupId>com.github.ben-manes.caffeine</groupId>
315         <artifactId>caffeine</artifactId>
316         <version>2.7.0</version>
317       </dependency>
318       <dependency>
319         <groupId>com.github.ben-manes.caffeine</groupId>
320         <artifactId>guava</artifactId>
321         <version>2.7.0</version>
322       </dependency>
323
324       <dependency>
325         <groupId>com.mycila.guice.extensions</groupId>
326         <artifactId>mycila-guice-jsr250</artifactId>
327         <!-- Make sure this version is in sync with the guice one below -->
328         <version>4.0.rc1</version>
329       </dependency>
330       <dependency>
331         <groupId>com.google.inject</groupId>
332         <artifactId>guice</artifactId>
333         <!-- Make sure this version is in sync with the one used by mycila-guice-jsr250 above
334              by checking it here: https://github.com/mycila/guice/blob/master/pom.xml#L103 -->
335         <version>4.1.0</version>
336       </dependency>
337       <dependency>
338         <groupId>commons-beanutils</groupId>
339         <artifactId>commons-beanutils</artifactId>
340         <version>1.9.3</version>
341       </dependency>
342       <dependency>
343         <groupId>org.apache.commons</groupId>
344         <artifactId>commons-lang3</artifactId>
345         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
346         <version>3.9</version>
347       </dependency>
348       <dependency>
349         <groupId>org.apache.commons</groupId>
350         <artifactId>commons-text</artifactId>
351         <version>1.7</version>
352       </dependency>
353       <dependency>
354         <groupId>commons-lang</groupId>
355         <artifactId>commons-lang</artifactId>
356         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
357         <version>2.6</version>
358       </dependency>
359       <dependency>
360         <groupId>commons-codec</groupId>
361         <artifactId>commons-codec</artifactId>
362         <version>1.12</version>
363       </dependency>
364       <!-- Jersey for JAXRS -->
365       <dependency>
366         <groupId>javax.ws.rs</groupId>
367         <artifactId>javax.ws.rs-api</artifactId>
368         <version>2.0.1</version>
369       </dependency>
370       <dependency>
371         <groupId>org.glassfish.jersey</groupId>
372         <artifactId>jersey-bom</artifactId>
373         <version>2.25.1</version>
374         <type>pom</type>
375         <scope>import</scope>
376       </dependency>
377       <dependency>
378         <groupId>org.glassfish</groupId>
379         <artifactId>javax.json</artifactId>
380         <version>1.1.2</version>
381       </dependency>
382
383       <dependency>
384         <groupId>org.checkerframework</groupId>
385         <artifactId>checker-qual</artifactId>
386         <version>2.5.8</version>
387       </dependency>
388       <dependency>
389         <groupId>com.google.errorprone</groupId>
390         <artifactId>error_prone_annotations</artifactId>
391         <version>2.3.3</version>
392       </dependency>
393
394       <dependency>
395         <groupId>javax.activation</groupId>
396         <artifactId>activation</artifactId>
397         <version>1.1.1</version>
398       </dependency>
399       <dependency>
400         <groupId>javax.annotation</groupId>
401         <artifactId>javax.annotation-api</artifactId>
402         <version>1.2</version>
403         <optional>true</optional>
404       </dependency>
405       <dependency>
406         <groupId>xml-apis</groupId>
407         <artifactId>xml-apis</artifactId>
408         <version>1.4.01</version>
409       </dependency>
410
411       <dependency>
412         <groupId>org.apache.shiro</groupId>
413         <artifactId>shiro-core</artifactId>
414         <version>1.3.2</version>
415       </dependency>
416       <dependency>
417         <groupId>org.apache.shiro</groupId>
418         <artifactId>shiro-web</artifactId>
419         <version>1.3.2</version>
420       </dependency>
421
422       <!-- Plugin integration -->
423       <dependency>
424         <groupId>net.java.dev.stax-utils</groupId>
425         <artifactId>stax-utils</artifactId>
426         <version>20070216</version>
427       </dependency>
428       <dependency>
429         <groupId>org.sonatype.plexus</groupId>
430         <artifactId>plexus-build-api</artifactId>
431         <version>0.0.7</version>
432       </dependency>
433       <dependency>
434         <groupId>org.codehaus.plexus</groupId>
435         <artifactId>plexus-slf4j-logging</artifactId>
436         <version>1.1</version>
437       </dependency>
438
439       <!-- These three need to be consistent:
440         jackson-2.9 needs woodstox-5.0.x
441         woodstox-5.0 needs stax2-api-3.1.x
442         -->
443       <dependency>
444         <groupId>org.codehaus.woodstox</groupId>
445         <artifactId>stax2-api</artifactId>
446         <version>3.1.4</version>
447       </dependency>
448       <dependency>
449         <groupId>com.fasterxml.woodstox</groupId>
450         <artifactId>woodstox-core</artifactId>
451         <version>5.0.3</version>
452       </dependency>
453       <dependency>
454         <groupId>com.fasterxml.jackson</groupId>
455         <artifactId>jackson-bom</artifactId>
456         <version>2.9.9</version>
457         <scope>import</scope>
458         <type>pom</type>
459       </dependency>
460
461       <dependency>
462         <groupId>com.github.spotbugs</groupId>
463         <artifactId>spotbugs-annotations</artifactId>
464         <version>3.1.12</version>
465         <scope>provided</scope>
466         <!-- Contains retention=RUNTIME annotations, which are not really needed -->
467         <optional>true</optional>
468         <exclusions>
469           <exclusion>
470             <groupId>com.google.code.findbugs</groupId>
471             <artifactId>jsr305</artifactId>
472           </exclusion>
473         </exclusions>
474       </dependency>
475
476       <dependency>
477         <groupId>org.eclipse.jdt</groupId>
478         <artifactId>org.eclipse.jdt.annotation</artifactId>
479         <version>2.2.100</version>
480         <scope>provided</scope>
481       </dependency>
482       <dependency>
483         <groupId>com.google.code.gson</groupId>
484         <artifactId>gson</artifactId>
485         <version>2.8.5</version>
486       </dependency>
487       <dependency>
488         <groupId>commons-fileupload</groupId>
489         <artifactId>commons-fileupload</artifactId>
490         <version>1.4</version>
491       </dependency>
492       <dependency>
493         <groupId>commons-io</groupId>
494         <artifactId>commons-io</artifactId>
495         <version>2.6</version>
496       </dependency>
497       <dependency>
498         <groupId>commons-net</groupId>
499         <artifactId>commons-net</artifactId>
500         <version>3.6</version>
501       </dependency>
502
503       <!-- Netty -->
504       <dependency>
505         <groupId>io.netty</groupId>
506         <artifactId>netty-all</artifactId>
507         <!-- If these are updated, the version in features.xml needs to be changed too -->
508         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
509         <version>4.1.36.Final</version>
510       </dependency>
511       <dependency>
512         <groupId>io.netty</groupId>
513         <artifactId>netty-buffer</artifactId>
514         <version>4.1.36.Final</version>
515       </dependency>
516       <dependency>
517         <groupId>io.netty</groupId>
518         <artifactId>netty-codec</artifactId>
519         <version>4.1.36.Final</version>
520       </dependency>
521       <dependency>
522         <groupId>io.netty</groupId>
523         <artifactId>netty-codec-http</artifactId>
524         <version>4.1.36.Final</version>
525       </dependency>
526       <dependency>
527         <groupId>io.netty</groupId>
528         <artifactId>netty-common</artifactId>
529         <version>4.1.36.Final</version>
530       </dependency>
531       <dependency>
532         <groupId>io.netty</groupId>
533         <artifactId>netty-handler</artifactId>
534         <version>4.1.36.Final</version>
535       </dependency>
536       <dependency>
537         <groupId>io.netty</groupId>
538         <artifactId>netty-transport</artifactId>
539         <version>4.1.36.Final</version>
540       </dependency>
541       <!-- Here we need to define all available native epoll implementations; we can't limit ourselves to the build
542       platform and we can't require the build platform to have an implementation (e.g. OS X) -->
543       <dependency>
544         <groupId>io.netty</groupId>
545         <artifactId>netty-transport-native-epoll</artifactId>
546         <classifier>linux-x86_64</classifier>
547         <version>4.1.36.Final</version>
548       </dependency>
549       <dependency>
550         <groupId>javax.ws.rs</groupId>
551         <artifactId>jsr311-api</artifactId>
552         <version>1.1.1</version>
553       </dependency>
554       <dependency>
555         <groupId>javax.servlet</groupId>
556         <artifactId>javax.servlet-api</artifactId>
557         <version>3.1.0</version>
558       </dependency>
559       <dependency>
560         <groupId>org.apache.felix</groupId>
561         <artifactId>org.apache.felix.dependencymanager</artifactId>
562         <version>4.4.1</version>
563       </dependency>
564       <dependency>
565         <groupId>org.apache.felix</groupId>
566         <artifactId>org.apache.felix.dependencymanager.shell</artifactId>
567         <version>4.0.6</version>
568       </dependency>
569       <dependency>
570         <groupId>org.apache.felix</groupId>
571         <artifactId>org.apache.felix.metatype</artifactId>
572         <version>1.2.2</version>
573       </dependency>
574       <dependency>
575         <groupId>org.bouncycastle</groupId>
576         <artifactId>bcpkix-jdk15on</artifactId>
577         <version>${bouncycastle.version}</version>
578       </dependency>
579       <dependency>
580         <groupId>org.bouncycastle</groupId>
581         <artifactId>bcprov-jdk15on</artifactId>
582         <version>${bouncycastle.version}</version>
583       </dependency>
584       <dependency>
585         <groupId>org.bouncycastle</groupId>
586         <artifactId>bcprov-ext-jdk15on</artifactId>
587         <version>${bouncycastle.version}</version>
588       </dependency>
589
590       <dependency>
591         <groupId>com.webcohesion.enunciate</groupId>
592         <artifactId>enunciate-core-annotations</artifactId>
593         <!-- This must be aligned with the version of enunciate-maven-plugin specified below -->
594         <version>2.11.1</version>
595       </dependency>
596
597       <dependency>
598         <groupId>org.codehaus.jettison</groupId>
599         <artifactId>jettison</artifactId>
600         <version>1.4.0</version>
601       </dependency>
602       <!-- To upgrade org.eclipse.persistence dependencies to 2.6.0+, we need to ensure all downstreams consumers
603          pull in javax.validation first:
604          http://stackoverflow.com/questions/28568154/how-to-get-eclipselink-2-6-0-m3-working-with-jersey-1-18-3 -->
605       <dependency>
606         <groupId>org.eclipse.persistence</groupId>
607         <artifactId>org.eclipse.persistence.antlr</artifactId>
608         <version>2.7.3</version>
609       </dependency>
610       <dependency>
611         <groupId>org.eclipse.persistence</groupId>
612         <artifactId>org.eclipse.persistence.core</artifactId>
613         <version>2.7.3</version>
614       </dependency>
615       <dependency>
616         <groupId>org.eclipse.persistence</groupId>
617         <artifactId>org.eclipse.persistence.moxy</artifactId>
618         <version>2.7.3</version>
619       </dependency>
620       <dependency>
621         <groupId>javax.validation</groupId>
622         <artifactId>validation-api</artifactId>
623         <version>1.1.0.Final</version>
624       </dependency>
625       <dependency>
626         <groupId>org.javassist</groupId>
627         <artifactId>javassist</artifactId>
628         <version>3.24.1-GA</version>
629       </dependency>
630       <dependency>
631         <groupId>org.jboss.spec.javax.transaction</groupId>
632         <artifactId>jboss-transaction-api_1.1_spec</artifactId>
633         <version>1.0.1.Final</version>
634       </dependency>
635       <dependency>
636         <groupId>org.jolokia</groupId>
637         <artifactId>jolokia-osgi</artifactId>
638         <version>1.6.2</version>
639       </dependency>
640       <dependency>
641         <groupId>org.osgi</groupId>
642         <artifactId>osgi.cmpn</artifactId>
643         <version>6.0.0</version>
644         <scope>provided</scope>
645       </dependency>
646       <dependency>
647         <groupId>org.osgi</groupId>
648         <artifactId>org.osgi.core</artifactId>
649         <version>6.0.0</version>
650         <scope>provided</scope>
651       </dependency>
652       <dependency>
653         <groupId>org.osgi</groupId>
654         <!-- for https://bugs.opendaylight.org/show_bug.cgi?id=4290 -->
655         <artifactId>org.osgi.service.event</artifactId>
656         <version>1.3.1</version>
657       </dependency>
658       <dependency>
659         <groupId>org.apache.aries.quiesce</groupId>
660         <artifactId>org.apache.aries.quiesce.api</artifactId>
661         <version>1.0.0</version>
662       </dependency>
663       <dependency>
664         <groupId>org.ow2.asm</groupId>
665         <artifactId>asm</artifactId>
666         <version>7.0</version>
667       </dependency>
668
669       <!-- Configuration library -->
670       <!-- This needs to be kept in sync with the version used by akka -->
671       <dependency>
672         <groupId>com.typesafe</groupId>
673         <artifactId>config</artifactId>
674         <version>1.3.3</version>
675       </dependency>
676
677       <!-- Reactive Streams, used by Akka -->
678       <dependency>
679         <groupId>org.reactivestreams</groupId>
680         <artifactId>reactive-streams</artifactId>
681         <version>1.0.2</version>
682       </dependency>
683
684       <!-- Akka -->
685       <dependency>
686         <groupId>com.typesafe</groupId>
687         <artifactId>ssl-config-core_2.12</artifactId>
688         <version>0.3.7</version>
689       </dependency>
690       <dependency>
691         <groupId>com.typesafe.akka</groupId>
692         <artifactId>akka-actor_2.12</artifactId>
693         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
694         <version>2.5.23</version>
695       </dependency>
696       <dependency>
697         <groupId>com.typesafe.akka</groupId>
698         <artifactId>akka-cluster_2.12</artifactId>
699         <version>2.5.23</version>
700       </dependency>
701       <dependency>
702         <groupId>com.typesafe.akka</groupId>
703         <artifactId>akka-osgi_2.12</artifactId>
704         <version>2.5.23</version>
705       </dependency>
706       <dependency>
707         <groupId>com.typesafe.akka</groupId>
708         <artifactId>akka-persistence_2.12</artifactId>
709         <version>2.5.23</version>
710       </dependency>
711       <dependency>
712         <groupId>com.typesafe.akka</groupId>
713         <artifactId>akka-persistence-tck_2.12</artifactId>
714         <version>2.5.23</version>
715         <scope>test</scope>
716       </dependency>
717       <dependency>
718         <groupId>com.typesafe.akka</groupId>
719         <artifactId>akka-protobuf_2.12</artifactId>
720         <version>2.5.23</version>
721       </dependency>
722       <dependency>
723         <groupId>com.typesafe.akka</groupId>
724         <artifactId>akka-remote_2.12</artifactId>
725         <version>2.5.23</version>
726       </dependency>
727       <dependency>
728         <groupId>com.typesafe.akka</groupId>
729         <artifactId>akka-slf4j_2.12</artifactId>
730         <version>2.5.23</version>
731       </dependency>
732       <dependency>
733         <groupId>com.typesafe.akka</groupId>
734         <artifactId>akka-stream_2.12</artifactId>
735         <version>2.5.23</version>
736       </dependency>
737       <dependency>
738         <groupId>com.typesafe.akka</groupId>
739         <artifactId>akka-testkit_2.12</artifactId>
740         <version>2.5.23</version>
741         <scope>test</scope>
742       </dependency>
743       <dependency>
744         <groupId>org.scala-lang.modules</groupId>
745         <artifactId>scala-java8-compat_2.12</artifactId>
746         <version>0.8.0</version>
747       </dependency>
748       <dependency>
749         <groupId>org.scala-lang.modules</groupId>
750         <artifactId>scala-parser-combinators_2.12</artifactId>
751         <version>1.1.2</version>
752       </dependency>
753       <dependency>
754         <groupId>org.uncommons.maths</groupId>
755         <artifactId>uncommons-maths</artifactId>
756         <version>1.2.2a</version>
757       </dependency>
758
759       <!-- Aeron, required by Akka -->
760       <dependency>
761         <groupId>org.agrona</groupId>
762         <artifactId>agrona</artifactId>
763         <version>0.9.33</version>
764       </dependency>
765       <dependency>
766         <groupId>io.aeron</groupId>
767         <artifactId>aeron-client</artifactId>
768         <version>1.15.3</version>
769       </dependency>
770       <dependency>
771         <groupId>io.aeron</groupId>
772         <artifactId>aeron-driver</artifactId>
773         <version>1.15.3</version>
774       </dependency>
775
776       <!-- Scala -->
777       <dependency>
778         <groupId>org.scala-lang</groupId>
779         <artifactId>scala-library</artifactId>
780         <version>2.12.9</version>
781       </dependency>
782       <dependency>
783         <groupId>org.scala-lang</groupId>
784         <artifactId>scala-reflect</artifactId>
785         <version>2.12.9</version>
786       </dependency>
787
788       <!-- LMAX Disruptor -->
789       <dependency>
790         <groupId>com.lmax</groupId>
791         <artifactId>disruptor</artifactId>
792         <version>3.4.2</version>
793       </dependency>
794
795       <!-- Add Pax Exam -->
796       <dependency>
797         <groupId>org.ops4j.pax.exam</groupId>
798         <artifactId>pax-exam</artifactId>
799         <version>4.13.1</version>
800         <scope>test</scope>
801       </dependency>
802       <dependency>
803         <groupId>org.ops4j.pax.exam</groupId>
804         <artifactId>pax-exam-container-forked</artifactId>
805         <version>4.13.1</version>
806         <scope>test</scope>
807       </dependency>
808       <dependency>
809         <groupId>org.ops4j.pax.exam</groupId>
810         <artifactId>pax-exam-container-karaf</artifactId>
811         <version>4.13.1</version>
812         <scope>test</scope>
813       </dependency>
814       <dependency>
815         <groupId>org.ops4j.pax.exam</groupId>
816         <artifactId>pax-exam-container-native</artifactId>
817         <version>4.13.1</version>
818         <scope>test</scope>
819       </dependency>
820       <dependency>
821         <groupId>org.ops4j.pax.exam</groupId>
822         <artifactId>pax-exam-extender-service</artifactId>
823         <version>4.13.1</version>
824         <scope>test</scope>
825       </dependency>
826       <dependency>
827         <groupId>org.ops4j.pax.exam</groupId>
828         <artifactId>pax-exam-inject</artifactId>
829         <version>4.13.1</version>
830         <scope>test</scope>
831       </dependency>
832       <dependency>
833         <groupId>org.ops4j.pax.exam</groupId>
834         <artifactId>pax-exam-invoker-junit</artifactId>
835         <version>4.13.1</version>
836         <scope>test</scope>
837       </dependency>
838       <dependency>
839         <groupId>org.ops4j.pax.exam</groupId>
840         <artifactId>pax-exam-features</artifactId>
841         <version>4.13.1</version>
842         <type>xml</type>
843         <scope>test</scope>
844       </dependency>
845       <dependency>
846         <groupId>org.ops4j.pax.exam</groupId>
847         <artifactId>pax-exam-junit4</artifactId>
848         <version>4.13.1</version>
849         <scope>test</scope>
850       </dependency>
851       <dependency>
852         <groupId>org.ops4j.pax.exam</groupId>
853         <artifactId>pax-exam-link-mvn</artifactId>
854         <version>4.13.1</version>
855         <scope>test</scope>
856       </dependency>
857       <dependency>
858         <groupId>org.ops4j.pax.exam</groupId>
859         <artifactId>pax-exam-link-assembly</artifactId>
860         <version>4.13.1</version>
861         <scope>test</scope>
862       </dependency>
863
864       <dependency>
865         <groupId>org.ops4j.pax.url</groupId>
866         <artifactId>pax-url-link</artifactId>
867         <version>2.5.4</version>
868         <scope>test</scope>
869       </dependency>
870       <dependency>
871         <groupId>org.ops4j.pax.url</groupId>
872         <artifactId>pax-url-aether</artifactId>
873         <version>2.5.4</version>
874         <scope>test</scope>
875       </dependency>
876       <dependency>
877         <groupId>org.ops4j.pax.url</groupId>
878         <artifactId>pax-url-wrap</artifactId>
879         <version>2.5.4</version>
880       </dependency>
881
882       <dependency>
883         <groupId>org.ops4j.pax.web</groupId>
884         <artifactId>pax-web-api</artifactId>
885         <!-- Note: keep this version synchronized with karaf -->
886         <version>7.2.5</version>
887       </dependency>
888
889       <dependency>
890         <groupId>org.springframework.osgi</groupId>
891         <artifactId>spring-osgi-mock</artifactId>
892         <version>1.2.1</version>
893         <scope>test</scope>
894       </dependency>
895
896       <dependency>
897         <groupId>org.xmlunit</groupId>
898         <artifactId>xmlunit-core</artifactId>
899         <version>2.6.3</version>
900         <scope>test</scope>
901       </dependency>
902       <dependency>
903         <groupId>org.xmlunit</groupId>
904         <artifactId>xmlunit-assertj</artifactId>
905         <version>2.6.3</version>
906         <scope>test</scope>
907       </dependency>
908       <dependency>
909         <groupId>org.xmlunit</groupId>
910         <artifactId>xmlunit-matchers</artifactId>
911         <version>2.6.3</version>
912         <scope>test</scope>
913       </dependency>
914       <!-- FIXME: remove this once we have migrated over -->
915       <dependency>
916         <groupId>org.xmlunit</groupId>
917         <artifactId>xmlunit-legacy</artifactId>
918         <version>2.6.3</version>
919         <scope>test</scope>
920       </dependency>
921
922       <!-- Annotations for modernizer-maven-plugin -->
923       <dependency>
924         <groupId>org.gaul</groupId>
925         <artifactId>modernizer-maven-annotations</artifactId>
926         <!-- This should match the plugin version below -->
927         <version>1.8.0</version>
928         <scope>provided</scope>
929       </dependency>
930
931       <dependency>
932         <groupId>org.eclipse.jetty</groupId>
933         <artifactId>jetty-bom</artifactId>
934         <version>9.4.12.v20180830</version>
935         <scope>import</scope>
936         <type>pom</type>
937       </dependency>
938
939       <dependency>
940         <groupId>com.h2database</groupId>
941         <artifactId>h2</artifactId>
942         <version>1.4.199</version>
943       </dependency>
944
945       <!-- Xtend http://xtend-lang.org
946            NOTE: When you increase the version here,
947            then remember to also increase it for the
948            xtend-maven-plugin below! (We don't want to
949            use a Maven property, in order not to "leak" that.)
950        -->
951       <dependency>
952           <groupId>org.eclipse.xtend</groupId>
953           <artifactId>org.eclipse.xtend.lib</artifactId>
954           <version>2.17.1</version>
955       </dependency>
956       <dependency>
957           <groupId>org.eclipse.xtend</groupId>
958           <artifactId>org.eclipse.xtend.lib.macro</artifactId>
959           <version>2.17.1</version>
960       </dependency>
961       <dependency>
962           <groupId>org.eclipse.xtext</groupId>
963           <artifactId>org.eclipse.xtext.xbase.lib</artifactId>
964           <version>2.17.1</version>
965       </dependency>
966
967       <!-- Annotations -->
968       <dependency>
969         <groupId>javax.inject</groupId>
970         <artifactId>javax.inject</artifactId>
971         <version>1</version>
972         <optional>true</optional>
973       </dependency>
974
975       <!-- jung, a graph library -->
976       <dependency>
977         <groupId>net.sf.jung</groupId>
978         <artifactId>jung-api</artifactId>
979         <version>2.1.1</version>
980       </dependency>
981       <dependency>
982         <groupId>net.sf.jung</groupId>
983         <artifactId>jung-algorithms</artifactId>
984         <version>2.1.1</version>
985       </dependency>
986       <dependency>
987         <groupId>net.sf.jung</groupId>
988         <artifactId>jung-graph-impl</artifactId>
989         <version>2.1.1</version>
990       </dependency>
991
992       <!-- Karaf console support -->
993       <dependency>
994         <groupId>org.apache.karaf.shell</groupId>
995         <artifactId>org.apache.karaf.shell.core</artifactId>
996         <version>${karaf.version}</version>
997       </dependency>
998       <dependency>
999         <groupId>org.apache.karaf.shell</groupId>
1000         <artifactId>org.apache.karaf.shell.console</artifactId>
1001         <version>${karaf.version}</version>
1002       </dependency>
1003
1004       <!-- ThreeTen-Extra, date/time complements -->
1005       <dependency>
1006         <groupId>org.threeten</groupId>
1007         <artifactId>threeten-extra</artifactId>
1008         <version>1.5.0</version>
1009       </dependency>
1010
1011       <!-- When updating this version, consider antl4-maven-plugin below -->
1012       <dependency>
1013         <groupId>org.antlr</groupId>
1014         <artifactId>antlr4-runtime</artifactId>
1015         <version>4.7.2</version>
1016       </dependency>
1017       <!-- Aries' Blueprint version should be kept in sync to the version actually
1018            used by our ${karaf[4].version} ... please bump this when increasing that.
1019            TODO Find a smarter way to inherit this from a (TBD..) Karaf artifacts BOM! -->
1020       <dependency>
1021         <groupId>org.apache.aries.blueprint</groupId>
1022         <artifactId>org.apache.aries.blueprint.core</artifactId>
1023         <version>1.10.1</version>
1024       </dependency>
1025       <dependency>
1026         <groupId>org.apache.aries.blueprint</groupId>
1027         <artifactId>blueprint-maven-plugin-annotation</artifactId>
1028         <version>1.3.0</version>
1029         <optional>true</optional>
1030       </dependency>
1031
1032       <!-- Apache SSHD with netty -->
1033       <dependency>
1034         <groupId>org.apache.sshd</groupId>
1035         <artifactId>sshd-netty</artifactId>
1036         <version>2.2.0</version>
1037         <exclusions>
1038           <exclusion>
1039             <!-- We provide sshd-osgi instead -->
1040             <groupId>org.apache.sshd</groupId>
1041             <artifactId>sshd-core</artifactId>
1042           </exclusion>
1043         </exclusions>
1044       </dependency>
1045       <dependency>
1046         <groupId>org.apache.sshd</groupId>
1047         <artifactId>sshd-osgi</artifactId>
1048         <version>2.2.0</version>
1049       </dependency>
1050       <dependency>
1051         <groupId>net.i2p.crypto</groupId>
1052         <artifactId>eddsa</artifactId>
1053         <version>0.3.0</version>
1054       </dependency>
1055
1056       <!-- TrieMap library -->
1057       <dependency>
1058         <groupId>tech.pantheon.triemap</groupId>
1059         <artifactId>bom</artifactId>
1060         <version>1.0.6</version>
1061         <scope>import</scope>
1062         <type>pom</type>
1063       </dependency>
1064
1065       <!-- Dropwizard metrics -->
1066       <dependency>
1067         <groupId>io.dropwizard.metrics</groupId>
1068         <artifactId>metrics-bom</artifactId>
1069         <version>4.0.5</version>
1070         <scope>import</scope>
1071         <type>pom</type>
1072       </dependency>
1073
1074       <!-- JAXB for Java 11+ -->
1075       <!--
1076            FIXME: bump this to 2.3.0 once we require Java 9+
1077            FIXME: bump this to whatever karaf provides once we require Java 11+
1078       -->
1079       <dependency>
1080         <groupId>javax.xml.bind</groupId>
1081         <artifactId>jaxb-api</artifactId>
1082         <version>2.2.8</version>
1083         <exclusions>
1084           <exclusion>
1085             <!-- Provided by JRE -->
1086             <groupId>javax.xml.stream</groupId>
1087             <artifactId>stax-api</artifactId>
1088           </exclusion>
1089         </exclusions>
1090       </dependency>
1091       <dependency>
1092         <groupId>com.sun.xml.bind</groupId>
1093         <artifactId>jaxb-core</artifactId>
1094         <version>2.2.11</version>
1095       </dependency>
1096       <dependency>
1097         <groupId>com.sun.xml.bind</groupId>
1098         <artifactId>jaxb-impl</artifactId>
1099         <version>2.2.11</version>
1100       </dependency>
1101     </dependencies>
1102   </dependencyManagement>
1103
1104   <dependencies>
1105     <!--
1106          We expect slf4j-api to be provided by the platform.
1107          Karaf provides it, other containers need to provide it themselves.
1108     -->
1109     <dependency>
1110       <groupId>org.slf4j</groupId>
1111       <artifactId>slf4j-api</artifactId>
1112       <scope>provided</scope>
1113     </dependency>
1114
1115     <!--
1116           Enable useful code quality annotations everywhere. Since these annotations
1117           are not required at runtime.
1118     -->
1119     <dependency>
1120       <groupId>org.eclipse.jdt</groupId>
1121       <artifactId>org.eclipse.jdt.annotation</artifactId>
1122       <scope>provided</scope>
1123     </dependency>
1124     <dependency>
1125       <groupId>com.github.spotbugs</groupId>
1126       <artifactId>spotbugs-annotations</artifactId>
1127       <scope>provided</scope>
1128       <optional>true</optional>
1129     </dependency>
1130     <dependency>
1131       <groupId>org.gaul</groupId>
1132       <artifactId>modernizer-maven-annotations</artifactId>
1133       <scope>provided</scope>
1134     </dependency>
1135
1136     <!--
1137           Testing output should be routed through slf4j-simple.
1138     -->
1139     <dependency>
1140       <groupId>org.slf4j</groupId>
1141       <artifactId>slf4j-simple</artifactId>
1142       <scope>test</scope>
1143     </dependency>
1144
1145     <!--
1146           Unit tests can use JUnit + Mockito + Hamcrest by default.
1147     -->
1148     <dependency>
1149       <groupId>org.hamcrest</groupId>
1150       <artifactId>hamcrest</artifactId>
1151       <scope>test</scope>
1152     </dependency>
1153     <dependency>
1154       <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
1155       <groupId>org.hamcrest</groupId>
1156       <artifactId>hamcrest-library</artifactId>
1157       <scope>test</scope>
1158     </dependency>
1159     <dependency>
1160       <groupId>junit</groupId>
1161       <artifactId>junit</artifactId>
1162       <scope>test</scope>
1163     </dependency>
1164     <dependency>
1165       <groupId>org.mockito</groupId>
1166       <artifactId>mockito-core</artifactId>
1167       <scope>test</scope>
1168     </dependency>
1169   </dependencies>
1170
1171   <build>
1172     <pluginManagement>
1173       <plugins>
1174         <!-- Official maven plugins, alpha-sorted by artifactId.
1175              We do not need to specify the groupId. -->
1176         <plugin>
1177           <artifactId>maven-antrun-plugin</artifactId>
1178           <version>1.8</version>
1179         </plugin>
1180         <plugin>
1181           <artifactId>maven-checkstyle-plugin</artifactId>
1182           <version>3.1.0</version>
1183           <dependencies>
1184             <dependency>
1185               <groupId>com.puppycrawl.tools</groupId>
1186               <artifactId>checkstyle</artifactId>
1187               <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
1188               <version>8.20</version>
1189             </dependency>
1190             <dependency>
1191               <groupId>org.opendaylight.odlparent</groupId>
1192               <artifactId>checkstyle</artifactId>
1193               <version>6.0.0-SNAPSHOT</version>
1194             </dependency>
1195             <dependency>
1196               <groupId>org.opendaylight.odlparent</groupId>
1197               <artifactId>odl-license</artifactId>
1198               <version>6.0.0-SNAPSHOT</version>
1199             </dependency>
1200             <dependency>
1201               <groupId>com.github.sevntu-checkstyle</groupId>
1202               <artifactId>sevntu-checkstyle-maven-plugin</artifactId>
1203               <version>1.34.1</version>
1204             </dependency>
1205           </dependencies>
1206           <configuration>
1207             <configLocation>odl_checks.xml</configLocation>
1208             <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
1209             <!-- <sourceDirectories> are needed so that checkstyle ignores the
1210                  generated sources directory -->
1211             <sourceDirectories>
1212               <directory>${project.build.sourceDirectory}</directory>
1213             </sourceDirectories>
1214             <includeResources>true</includeResources>
1215             <includeTestSourceDirectory>true</includeTestSourceDirectory>
1216             <includeTestResources>true</includeTestResources>
1217             <includes>**\/*.java, **\/*.xtend</includes>
1218             <excludes>
1219               org/opendaylight/yang/gen/**,
1220               **/protobuff/messages/**,
1221               **/thrift/gen/*.java,
1222               **/module-info.java
1223             </excludes>
1224             <failsOnError>false</failsOnError>
1225             <consoleOutput>true</consoleOutput>
1226           </configuration>
1227           <executions>
1228             <execution>
1229               <id>check-license</id>
1230               <goals>
1231                 <goal>check</goal>
1232               </goals>
1233               <phase>process-sources</phase>
1234               <configuration>
1235                 <configLocation>check-license.xml</configLocation>
1236                 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
1237                 <includeResources>false</includeResources>
1238                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
1239                 <includeTestResources>false</includeTestResources>
1240                 <sourceDirectories>
1241                   <directory>${project.build.sourceDirectory}</directory>
1242                 </sourceDirectories>
1243                 <excludes>
1244                   org/opendaylight/yang/gen/**,
1245                   **/protobuff/messages/**,
1246                   **/thrift/gen/*.java
1247                 </excludes>
1248                 <failsOnError>false</failsOnError>
1249                 <consoleOutput>true</consoleOutput>
1250               </configuration>
1251             </execution>
1252             <execution>
1253               <goals>
1254                 <goal>check</goal>
1255               </goals>
1256               <phase>process-sources</phase>
1257             </execution>
1258           </executions>
1259         </plugin>
1260         <plugin>
1261           <groupId>org.apache.maven.plugins</groupId>
1262           <artifactId>maven-pmd-plugin</artifactId>
1263           <version>3.11.0</version>
1264           <executions>
1265             <execution>
1266               <id>cpd</id>
1267               <phase>process-sources</phase>
1268               <goals>
1269                 <goal>cpd-check</goal>
1270               </goals>
1271               <configuration>
1272                 <failOnViolation>${pmd.cpd.fail}</failOnViolation>
1273                 <!-- 100 "tokens" here correspond to approx. 5-10 lines of code -->
1274                 <minimumTokens>101</minimumTokens>
1275                 <printFailingErrors>true</printFailingErrors>
1276                 <excludeRoots>
1277                   <!-- FIXME: this should be a wildcard, but PMD is brain-damaged and does
1278                               not understand path prefixes nor wildcards. Details are available
1279                               at http://stackoverflow.com/questions/15647771/pmd-exclude-not-working
1280                               Hence people introducing new generated sources have to include
1281                               PMD config too.
1282                    -->
1283                   <excludeRoot>${project.build.directory}/generated-sources</excludeRoot>
1284                   <excludeRoot>${project.build.directory}/generated-test-sources</excludeRoot>
1285                 </excludeRoots>
1286                 <linkXRef>false</linkXRef>
1287               </configuration>
1288             </execution>
1289           </executions>
1290         </plugin>
1291         <plugin>
1292           <artifactId>maven-compiler-plugin</artifactId>
1293           <version>3.8.1</version>
1294           <configuration>
1295             <showWarnings>true</showWarnings>
1296             <compilerArgs>
1297               <arg>-parameters</arg>
1298               <arg>-Xlint:deprecation</arg>
1299               <arg>-Xlint:unchecked</arg>
1300             </compilerArgs>
1301           </configuration>
1302         </plugin>
1303         <plugin>
1304           <artifactId>maven-enforcer-plugin</artifactId>
1305           <version>${enforcer.version}</version>
1306         </plugin>
1307         <plugin>
1308           <artifactId>maven-failsafe-plugin</artifactId>
1309           <version>2.22.2</version>
1310         </plugin>
1311         <plugin>
1312           <artifactId>maven-invoker-plugin</artifactId>
1313           <version>3.2.0</version>
1314         </plugin>
1315         <plugin>
1316           <artifactId>maven-jar-plugin</artifactId>
1317           <version>3.1.2</version>
1318         </plugin>
1319         <plugin>
1320           <artifactId>maven-dependency-plugin</artifactId>
1321           <executions>
1322             <execution>
1323               <id>unpack-license</id>
1324               <phase>generate-resources</phase>
1325               <goals><goal>unpack</goal></goals>
1326               <configuration>
1327                 <artifactItems>
1328                   <artifactItem>
1329                     <groupId>org.opendaylight.odlparent</groupId>
1330                     <artifactId>odl-license</artifactId>
1331                     <version>6.0.0-SNAPSHOT</version>
1332                   </artifactItem>
1333                 </artifactItems>
1334                 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1335                 <excludes>META-INF/**</excludes>
1336               </configuration>
1337             </execution>
1338           </executions>
1339         </plugin>
1340
1341         <plugin>
1342           <artifactId>maven-plugin-plugin</artifactId>
1343           <version>3.6.0</version>
1344         </plugin>
1345
1346         <plugin>
1347           <artifactId>maven-remote-resources-plugin</artifactId>
1348           <version>1.6.0</version>
1349         </plugin>
1350         <plugin>
1351           <artifactId>maven-resources-plugin</artifactId>
1352           <version>3.1.0</version>
1353         </plugin>
1354         <plugin>
1355           <artifactId>maven-shade-plugin</artifactId>
1356           <version>3.2.1</version>
1357         </plugin>
1358         <plugin>
1359           <artifactId>maven-source-plugin</artifactId>
1360           <version>3.1.0</version>
1361           <executions>
1362             <execution>
1363               <id>attach-sources</id>
1364               <phase>verify</phase>
1365               <goals>
1366                 <goal>jar-no-fork</goal>
1367               </goals>
1368             </execution>
1369           </executions>
1370         </plugin>
1371         <plugin>
1372           <artifactId>maven-surefire-plugin</artifactId>
1373           <version>2.22.2</version>
1374           <configuration>
1375             <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1376             <trimStackTrace>false</trimStackTrace>
1377           </configuration>
1378         </plugin>
1379
1380         <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1381         <plugin>
1382           <!-- Support Blueprint XML construction using annotations -->
1383           <groupId>org.apache.aries.blueprint</groupId>
1384           <artifactId>blueprint-maven-plugin</artifactId>
1385           <version>1.10.0</version>
1386           <!-- TODO remove dependencies when we bump from 1.10.0 to 1.11.0 (or 1.10.1);
1387              see https://jira.opendaylight.org/browse/ODLPARENT-167 & https://jira.apache.org/jira/browse/ARIES-1826 -->
1388           <dependencies>
1389             <dependency>
1390               <groupId>org.apache.xbean</groupId>
1391               <artifactId>xbean-finder-shaded</artifactId>
1392               <version>4.14</version>
1393             </dependency>
1394           </dependencies>
1395           <configuration>
1396             <scanPaths>
1397               <scanPath>${project.groupId}</scanPath>
1398             </scanPaths>
1399           </configuration>
1400           <executions>
1401             <execution>
1402               <goals>
1403                 <goal>blueprint-generate</goal>
1404               </goals>
1405             </execution>
1406           </executions>
1407         </plugin>
1408
1409         <plugin>
1410           <groupId>org.apache.felix</groupId>
1411           <artifactId>maven-bundle-plugin</artifactId>
1412           <version>4.2.0</version>
1413           <extensions>true</extensions>
1414           <configuration>
1415             <instructions>
1416               <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1417                    so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1418                    and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present.  -->
1419               <Include-Resource>{maven-resources},${project.build.directory}/classes/LICENSE,META-INF/git.properties=-${project.build.directory}/classes/META-INF/git.properties,META-INF/services=-${project.build.directory}/classes/META-INF/services</Include-Resource>
1420
1421               <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1422                    to generate Import-Service and Export-Service headers. -->
1423               <_removeheaders>Import-Service,Export-Service</_removeheaders>
1424             </instructions>
1425           </configuration>
1426         </plugin>
1427
1428         <plugin>
1429           <groupId>org.apache.karaf.tooling</groupId>
1430           <artifactId>karaf-maven-plugin</artifactId>
1431           <version>${karaf.version}</version>
1432         </plugin>
1433
1434         <plugin>
1435           <groupId>org.apache.servicemix.tooling</groupId>
1436           <artifactId>depends-maven-plugin</artifactId>
1437           <version>1.4.0</version>
1438           <executions>
1439             <execution>
1440               <id>generate-depends-file</id>
1441               <goals>
1442                 <goal>generate-depends-file</goal>
1443               </goals>
1444             </execution>
1445           </executions>
1446         </plugin>
1447
1448         <plugin>
1449           <groupId>com.webcohesion.enunciate</groupId>
1450           <artifactId>enunciate-maven-plugin</artifactId>
1451           <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1452           <version>2.11.1</version>
1453         </plugin>
1454
1455         <plugin>
1456           <groupId>org.gaul</groupId>
1457           <artifactId>modernizer-maven-plugin</artifactId>
1458           <version>1.8.0</version>
1459           <configuration>
1460             <javaVersion>1.8</javaVersion>
1461           </configuration>
1462
1463           <executions>
1464             <execution>
1465               <id>modernizer</id>
1466               <phase>verify</phase>
1467               <goals>
1468                 <goal>modernizer</goal>
1469               </goals>
1470             </execution>
1471           </executions>
1472         </plugin>
1473
1474         <plugin>
1475           <groupId>org.codehaus.mojo</groupId>
1476           <artifactId>build-helper-maven-plugin</artifactId>
1477           <version>3.0.0</version>
1478         </plugin>
1479         <plugin>
1480           <groupId>com.github.spotbugs</groupId>
1481           <artifactId>spotbugs-maven-plugin</artifactId>
1482           <version>3.1.12.2</version>
1483           <dependencies>
1484             <dependency>
1485               <groupId>com.github.spotbugs</groupId>
1486               <artifactId>spotbugs</artifactId>
1487               <version>3.1.12</version>
1488             </dependency>
1489             <dependency>
1490               <groupId>org.opendaylight.odlparent</groupId>
1491               <artifactId>spotbugs</artifactId>
1492               <version>6.0.0-SNAPSHOT</version>
1493             </dependency>
1494             <dependency>
1495               <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 -->
1496               <groupId>org.slf4j</groupId>
1497               <artifactId>slf4j-simple</artifactId>
1498               <version>1.8.0-beta2</version>
1499             </dependency>
1500           </dependencies>
1501           <configuration>
1502             <plugins>
1503               <plugin>
1504                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1505                 <artifactId>bug-pattern</artifactId>
1506                 <!-- NOTE: This version MUST be kept in sync with the same version in the old findbugs-maven-plugin above, if possible -->
1507                 <version>1.4.2</version>
1508               </plugin>
1509             </plugins>
1510             <!--
1511               Enables analysis which takes more memory but finds more bugs.
1512               If you run out of memory, changes the value of the effort element
1513               to 'Low'.
1514             -->
1515             <effort>Max</effort>
1516             <!-- Reports all bugs (other values are medium and max) -->
1517             <threshold>Low</threshold>
1518             <!-- Build doesn't fail if problems are found -->
1519             <failOnError>false</failOnError>
1520             <!-- References the excluded rules -->
1521             <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1522             <!-- Produces XML report -->
1523             <xmlOutput>true</xmlOutput>
1524             <!-- Configures the directory in which the XML report is created -->
1525             <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1526           </configuration>
1527           <executions>
1528             <!--
1529               Ensures that SpotBugs inspects source code when project is compiled.
1530             -->
1531             <execution>
1532               <id>analyze-compile</id>
1533               <phase>compile</phase>
1534               <goals>
1535                 <goal>check</goal>
1536               </goals>
1537             </execution>
1538           </executions>
1539         </plugin>
1540         <plugin>
1541           <groupId>org.codehaus.mojo</groupId>
1542           <artifactId>properties-maven-plugin</artifactId>
1543           <version>1.0.0</version>
1544         </plugin>
1545         <plugin>
1546           <groupId>org.eclipse.xtend</groupId>
1547           <artifactId>xtend-maven-plugin</artifactId>
1548           <!-- NOTE: This version MUST be kept in sync with the Xtend version in <dependencyManagement> -->
1549           <version>2.17.1</version>
1550           <executions>
1551             <execution>
1552               <goals>
1553                 <goal>compile</goal>
1554                 <goal>testCompile</goal>
1555               </goals>
1556               <configuration>
1557                 <outputDirectory>${project.build.directory}/generated-sources/xtend</outputDirectory>
1558                 <testOutputDirectory>${project.build.directory}/generated-test-sources/xtend</testOutputDirectory>
1559               </configuration>
1560             </execution>
1561           </executions>
1562         </plugin>
1563         <plugin>
1564           <groupId>org.eclipse.m2e</groupId>
1565           <artifactId>lifecycle-mapping</artifactId>
1566           <version>1.0.0</version>
1567           <configuration>
1568             <lifecycleMappingMetadata>
1569               <pluginExecutions>
1570                 <pluginExecution>
1571                   <pluginExecutionFilter>
1572                     <groupId>org.apache.felix</groupId>
1573                     <artifactId>maven-bundle-plugin</artifactId>
1574                     <versionRange>[1.0,)</versionRange>
1575                     <goals>
1576                       <goal>manifest</goal>
1577                     </goals>
1578                   </pluginExecutionFilter>
1579                   <action>
1580                     <execute/>
1581                   </action>
1582                 </pluginExecution>
1583                 <pluginExecution>
1584                   <pluginExecutionFilter>
1585                     <groupId>org.apache.maven.plugins</groupId>
1586                     <artifactId>maven-enforcer-plugin</artifactId>
1587                     <versionRange>[1.0.0,)</versionRange>
1588                     <goals>
1589                       <goal>enforce</goal>
1590                     </goals>
1591                   </pluginExecutionFilter>
1592                   <action>
1593                     <ignore/>
1594                   </action>
1595                 </pluginExecution>
1596                 <pluginExecution>
1597                   <pluginExecutionFilter>
1598                     <groupId>org.apache.maven.plugins</groupId>
1599                     <artifactId>maven-dependency-plugin</artifactId>
1600                     <versionRange>[2.10,)</versionRange>
1601                     <goals>
1602                       <goal>unpack</goal>
1603                     </goals>
1604                   </pluginExecutionFilter>
1605                   <action>
1606                     <ignore/>
1607                   </action>
1608                 </pluginExecution>
1609                 <pluginExecution>
1610                   <pluginExecutionFilter>
1611                     <groupId>org.apache.maven.plugins</groupId>
1612                     <artifactId>maven-pmd-plugin</artifactId>
1613                     <versionRange>[3.6,)</versionRange>
1614                     <goals>
1615                       <goal>cpd-check</goal>
1616                     </goals>
1617                   </pluginExecutionFilter>
1618                   <action>
1619                     <ignore/>
1620                   </action>
1621                 </pluginExecution>
1622                 <!-- The plugin will eventually be removed, remove this too at that point -->
1623                 <pluginExecution>
1624                   <pluginExecutionFilter>
1625                     <groupId>org.apache.maven.plugins</groupId>
1626                     <artifactId>maven-antrun-plugin</artifactId>
1627                     <versionRange>[1.8,)</versionRange>
1628                     <goals>
1629                       <goal>run</goal>
1630                     </goals>
1631                   </pluginExecutionFilter>
1632                   <action>
1633                     <ignore/>
1634                   </action>
1635                 </pluginExecution>
1636                 <pluginExecution>
1637                   <pluginExecutionFilter>
1638                     <groupId>org.apache.servicemix.tooling</groupId>
1639                     <artifactId>depends-maven-plugin</artifactId>
1640                     <versionRange>[1.2,)</versionRange>
1641                     <goals>
1642                       <goal>generate-depends-file</goal>
1643                     </goals>
1644                   </pluginExecutionFilter>
1645                   <action>
1646                     <execute/>
1647                   </action>
1648                 </pluginExecution>
1649                 <pluginExecution>
1650                   <pluginExecutionFilter>
1651                     <groupId>org.jacoco</groupId>
1652                     <artifactId>jacoco-maven-plugin</artifactId>
1653                     <versionRange>[0.7.0,)</versionRange>
1654                     <goals>
1655                       <goal>prepare-agent</goal>
1656                     </goals>
1657                   </pluginExecutionFilter>
1658                   <action>
1659                     <ignore/>
1660                   </action>
1661                 </pluginExecution>
1662
1663                 <pluginExecution>
1664                   <pluginExecutionFilter>
1665                     <groupId>org.ops4j.pax.exam</groupId>
1666                     <artifactId>maven-paxexam-plugin</artifactId>
1667                     <versionRange>[1.2.4,)</versionRange>
1668                     <goals>
1669                       <goal>generate-depends-file</goal>
1670                     </goals>
1671                   </pluginExecutionFilter>
1672                   <action>
1673                     <ignore/>
1674                   </action>
1675                 </pluginExecution>
1676
1677                 <pluginExecution>
1678                   <pluginExecutionFilter>
1679                     <groupId>org.basepom.maven</groupId>
1680                     <artifactId>
1681                       duplicate-finder-maven-plugin
1682                     </artifactId>
1683                     <versionRange>[1.2.1,)</versionRange>
1684                     <goals>
1685                       <goal>check</goal>
1686                     </goals>
1687                   </pluginExecutionFilter>
1688                   <action>
1689                     <ignore></ignore>
1690                   </action>
1691                 </pluginExecution>
1692               </pluginExecutions>
1693             </lifecycleMappingMetadata>
1694           </configuration>
1695         </plugin>
1696
1697         <plugin>
1698           <groupId>org.jacoco</groupId>
1699           <artifactId>jacoco-maven-plugin</artifactId>
1700           <configuration>
1701             <!-- Note: This exclusion list should match <sonar.exclusions>
1702                        property above -->
1703             <excludes>
1704               <exclude>**/gen/**</exclude>
1705               <exclude>**/generated-sources/**</exclude>
1706               <exclude>**/generated-test-sources/**</exclude>
1707               <exclude>**/yang-gen/**</exclude>
1708               <exclude>**/yang-gen-config/**</exclude>
1709               <exclude>**/yang-gen-sal/**</exclude>
1710               <exclude>**/yang-gen-code/**</exclude>
1711               <exclude>**/pax/**</exclude>
1712             </excludes>
1713           </configuration>
1714         </plugin>
1715
1716         <plugin>
1717           <groupId>org.ops4j.pax.exam</groupId>
1718           <artifactId>maven-paxexam-plugin</artifactId>
1719           <version>1.2.4</version>
1720         </plugin>
1721
1722         <plugin>
1723           <groupId>org.codehaus.mojo</groupId>
1724           <artifactId>jdepend-maven-plugin</artifactId>
1725           <version>2.0</version>
1726           <executions>
1727             <execution>
1728               <phase>site</phase>
1729               <goals>
1730                 <goal>generate-no-fork</goal>
1731               </goals>
1732             </execution>
1733           </executions>
1734         </plugin>
1735
1736         <!-- When updating this version, consider antl4-runtime above -->
1737         <plugin>
1738           <groupId>org.antlr</groupId>
1739           <artifactId>antlr4-maven-plugin</artifactId>
1740           <version>4.7.2</version>
1741         </plugin>
1742       </plugins>
1743     </pluginManagement>
1744
1745     <plugins>
1746       <plugin>
1747         <artifactId>maven-enforcer-plugin</artifactId>
1748         <executions>
1749           <execution>
1750             <id>enforce-banned-dependencies</id>
1751             <goals>
1752               <goal>enforce</goal>
1753             </goals>
1754             <configuration>
1755               <rules>
1756                 <bannedDependencies>
1757                   <message>Please always use mockito-core instead of mockito-all (see https://bugs.opendaylight.org/show_bug.cgi?id=7662), and spotbugs:annotations instead of findbugs:annotations</message>
1758                   <excludes>
1759                     <exclude>org.mockito:mockito-all</exclude>
1760                     <exclude>com.google.code.findbugs:annotations</exclude>
1761                   </excludes>
1762                 </bannedDependencies>
1763               </rules>
1764               <fail>true</fail>
1765             </configuration>
1766           </execution>
1767         </executions>
1768       </plugin>
1769       <plugin>
1770         <groupId>org.basepom.maven</groupId>
1771         <artifactId>duplicate-finder-maven-plugin</artifactId>
1772         <version>1.3.0</version>
1773         <executions>
1774           <execution>
1775             <id>find-duplicate-classpath-entries</id>
1776             <phase>verify</phase>
1777             <goals>
1778               <goal>check</goal>
1779             </goals>
1780           </execution>
1781         </executions>
1782         <configuration>
1783             <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1784             <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1785             <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1786             <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1787             <printEqualFiles>false</printEqualFiles>
1788             <quiet>true</quiet>
1789             <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1790                  as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1791                  we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1792                  also ignore: -->
1793             <ignoredResourcePatterns>
1794               <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1795               <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1796               <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1797               <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1798               <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1799               <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1800             </ignoredResourcePatterns>
1801             <ignoredClassPatterns>
1802               <ignoredClassPattern>META-INF.versions.*$</ignoredClassPattern>
1803             </ignoredClassPatterns>
1804             <ignoredDependencies>
1805               <ignoredDependency>
1806                 <groupId>org.slf4j</groupId>
1807                 <artifactId>slf4j-simple</artifactId>
1808               </ignoredDependency>
1809               <ignoredDependency>
1810                 <groupId>org.opendaylight.odlparent</groupId>
1811                 <artifactId>opendaylight-karaf-empty</artifactId>
1812               </ignoredDependency>
1813             </ignoredDependencies>
1814         </configuration>
1815       </plugin>
1816       <plugin>
1817         <artifactId>maven-dependency-plugin</artifactId>
1818       </plugin>
1819       <plugin>
1820         <artifactId>maven-checkstyle-plugin</artifactId>
1821       </plugin>
1822       <plugin>
1823           <artifactId>maven-pmd-plugin</artifactId>
1824       </plugin>
1825       <plugin>
1826         <artifactId>maven-source-plugin</artifactId>
1827       </plugin>
1828       <plugin>
1829         <artifactId>maven-javadoc-plugin</artifactId>
1830       </plugin>
1831       <plugin>
1832         <groupId>org.gaul</groupId>
1833         <artifactId>modernizer-maven-plugin</artifactId>
1834       </plugin>
1835
1836       <!-- Jacoco / Sonar -->
1837       <plugin>
1838         <groupId>org.jacoco</groupId>
1839         <artifactId>jacoco-maven-plugin</artifactId>
1840         <executions>
1841           <execution>
1842             <id>pre-unit-test</id>
1843             <goals>
1844               <goal>prepare-agent</goal>
1845             </goals>
1846             <configuration>
1847               <destFile>${jacoco.destFile}</destFile>
1848             </configuration>
1849           </execution>
1850         </executions>
1851       </plugin>
1852
1853       <plugin>
1854         <groupId>com.alexecollins.maven.plugin</groupId>
1855         <artifactId>script-maven-plugin</artifactId>
1856         <version>1.0.0</version>
1857         <executions>
1858            <execution>
1859              <phase>prepare-package</phase>
1860              <goals>
1861                <goal>execute</goal>
1862              </goals>
1863              <configuration>
1864                <script>
1865                  // BeanShell is 2005-ish and thus doesn't support generics, varargs, try-with-resources or lambdas, so:
1866                  // (If we do this kind of inline code in pom.xml more often, we shold have a new simple module in
1867                  //  odl-parent, which has *.java that we compile, and then just depend on it here and call one-line
1868                  //  static class methods only - it will be MUCH easier to write!)
1869                  void copy(File root, String glob, File target) {
1870                      java.nio.file.DirectoryStream dirStream = java.nio.file.Files.newDirectoryStream(root.toPath(), glob);
1871                      Iterator dirStreamIterator = dirStream.iterator();
1872                      while (dirStreamIterator.hasNext()) {
1873                          java.nio.file.Path path = dirStreamIterator.next();
1874                          java.nio.file.Files.copy(path, new File(target, path.toFile().getName()).toPath(),
1875                              new java.nio.file.CopyOption[] {
1876                                  java.nio.file.StandardCopyOption.REPLACE_EXISTING,
1877                                  java.nio.file.StandardCopyOption.COPY_ATTRIBUTES
1878                              }
1879                          );
1880                      }
1881                      dirStream.close();
1882                  }
1883
1884                  File gitRepoRootDir = project.basedir;
1885                  while (!new File(gitRepoRootDir, ".git").exists() &amp;&amp; gitRepoRootDir.getParentFile() != null) {
1886                      gitRepoRootDir = gitRepoRootDir.getParentFile();
1887                  }
1888
1889                  File target = new File(project.build.outputDirectory);
1890                  target.mkdirs();
1891                  copy(gitRepoRootDir, "README*", target);
1892                  copy(gitRepoRootDir, "CONTRIBUTING*", target);
1893                  copy(gitRepoRootDir, "PROJECT_INFO.yaml", target);
1894                </script>
1895              </configuration>
1896            </execution>
1897          </executions>
1898          <dependencies>
1899            <dependency>
1900              <groupId>org.apache-extras.beanshell</groupId>
1901              <artifactId>bsh</artifactId>
1902              <version>2.0b6</version>
1903            </dependency>
1904          </dependencies>
1905       </plugin>
1906     </plugins>
1907   </build>
1908
1909   <reporting>
1910     <plugins>
1911       <plugin>
1912         <artifactId>maven-checkstyle-plugin</artifactId>
1913         <version>3.1.0</version>
1914       </plugin>
1915
1916       <!-- FIXME: activate this
1917       <plugin>
1918         <artifactId>maven-project-info-reports-plugin</artifactId>
1919         <version>${projectinfo}</version>
1920       </plugin-->
1921       <plugin>
1922         <groupId>org.codehaus.mojo</groupId>
1923         <artifactId>jdepend-maven-plugin</artifactId>
1924         <reportSets>
1925           <reportSet>
1926             <reports>
1927               <report>generate-no-fork</report>
1928             </reports>
1929           </reportSet>
1930         </reportSets>
1931       </plugin>
1932     </plugins>
1933   </reporting>
1934 </project>
1935