Bump sevntu to 1.35.0
[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.4</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.13</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.20190807</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.39.Final</version>
510       </dependency>
511       <dependency>
512         <groupId>io.netty</groupId>
513         <artifactId>netty-buffer</artifactId>
514         <version>4.1.39.Final</version>
515       </dependency>
516       <dependency>
517         <groupId>io.netty</groupId>
518         <artifactId>netty-codec</artifactId>
519         <version>4.1.39.Final</version>
520       </dependency>
521       <dependency>
522         <groupId>io.netty</groupId>
523         <artifactId>netty-codec-http</artifactId>
524         <version>4.1.39.Final</version>
525       </dependency>
526       <dependency>
527         <groupId>io.netty</groupId>
528         <artifactId>netty-common</artifactId>
529         <version>4.1.39.Final</version>
530       </dependency>
531       <dependency>
532         <groupId>io.netty</groupId>
533         <artifactId>netty-handler</artifactId>
534         <version>4.1.39.Final</version>
535       </dependency>
536       <dependency>
537         <groupId>io.netty</groupId>
538         <artifactId>netty-transport</artifactId>
539         <version>4.1.39.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.39.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.8</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.24</version>
695       </dependency>
696       <dependency>
697         <groupId>com.typesafe.akka</groupId>
698         <artifactId>akka-cluster_2.12</artifactId>
699         <version>2.5.24</version>
700       </dependency>
701       <dependency>
702         <groupId>com.typesafe.akka</groupId>
703         <artifactId>akka-osgi_2.12</artifactId>
704         <version>2.5.24</version>
705       </dependency>
706       <dependency>
707         <groupId>com.typesafe.akka</groupId>
708         <artifactId>akka-persistence_2.12</artifactId>
709         <version>2.5.24</version>
710       </dependency>
711       <dependency>
712         <groupId>com.typesafe.akka</groupId>
713         <artifactId>akka-persistence-tck_2.12</artifactId>
714         <version>2.5.24</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.24</version>
721       </dependency>
722       <dependency>
723         <groupId>com.typesafe.akka</groupId>
724         <artifactId>akka-remote_2.12</artifactId>
725         <version>2.5.24</version>
726       </dependency>
727       <dependency>
728         <groupId>com.typesafe.akka</groupId>
729         <artifactId>akka-slf4j_2.12</artifactId>
730         <version>2.5.24</version>
731       </dependency>
732       <dependency>
733         <groupId>com.typesafe.akka</groupId>
734         <artifactId>akka-stream_2.12</artifactId>
735         <version>2.5.24</version>
736       </dependency>
737       <dependency>
738         <groupId>com.typesafe.akka</groupId>
739         <artifactId>akka-testkit_2.12</artifactId>
740         <version>2.5.24</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.35.0</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.12.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                 <silent>true</silent>
1337               </configuration>
1338             </execution>
1339           </executions>
1340         </plugin>
1341
1342         <plugin>
1343           <artifactId>maven-plugin-plugin</artifactId>
1344           <version>3.6.0</version>
1345         </plugin>
1346
1347         <plugin>
1348           <artifactId>maven-remote-resources-plugin</artifactId>
1349           <version>1.6.0</version>
1350         </plugin>
1351         <plugin>
1352           <artifactId>maven-resources-plugin</artifactId>
1353           <version>3.1.0</version>
1354         </plugin>
1355         <plugin>
1356           <artifactId>maven-shade-plugin</artifactId>
1357           <version>3.2.1</version>
1358         </plugin>
1359         <plugin>
1360           <artifactId>maven-source-plugin</artifactId>
1361           <version>3.1.0</version>
1362           <executions>
1363             <execution>
1364               <id>attach-sources</id>
1365               <phase>verify</phase>
1366               <goals>
1367                 <goal>jar-no-fork</goal>
1368               </goals>
1369             </execution>
1370           </executions>
1371         </plugin>
1372         <plugin>
1373           <artifactId>maven-surefire-plugin</artifactId>
1374           <version>2.22.2</version>
1375           <configuration>
1376             <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1377             <trimStackTrace>false</trimStackTrace>
1378           </configuration>
1379         </plugin>
1380
1381         <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1382         <plugin>
1383           <!-- Support Blueprint XML construction using annotations -->
1384           <groupId>org.apache.aries.blueprint</groupId>
1385           <artifactId>blueprint-maven-plugin</artifactId>
1386           <version>1.10.0</version>
1387           <!-- TODO remove dependencies when we bump from 1.10.0 to 1.11.0 (or 1.10.1);
1388              see https://jira.opendaylight.org/browse/ODLPARENT-167 & https://jira.apache.org/jira/browse/ARIES-1826 -->
1389           <dependencies>
1390             <dependency>
1391               <groupId>org.apache.xbean</groupId>
1392               <artifactId>xbean-finder-shaded</artifactId>
1393               <version>4.14</version>
1394             </dependency>
1395           </dependencies>
1396           <configuration>
1397             <scanPaths>
1398               <scanPath>${project.groupId}</scanPath>
1399             </scanPaths>
1400           </configuration>
1401           <executions>
1402             <execution>
1403               <goals>
1404                 <goal>blueprint-generate</goal>
1405               </goals>
1406             </execution>
1407           </executions>
1408         </plugin>
1409
1410         <plugin>
1411           <groupId>org.apache.felix</groupId>
1412           <artifactId>maven-bundle-plugin</artifactId>
1413           <version>4.2.0</version>
1414           <extensions>true</extensions>
1415           <configuration>
1416             <instructions>
1417               <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1418                    so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1419                    and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present.  -->
1420               <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>
1421
1422               <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1423                    to generate Import-Service and Export-Service headers. -->
1424               <_removeheaders>Import-Service,Export-Service</_removeheaders>
1425             </instructions>
1426           </configuration>
1427         </plugin>
1428
1429         <plugin>
1430           <groupId>org.apache.karaf.tooling</groupId>
1431           <artifactId>karaf-maven-plugin</artifactId>
1432           <version>${karaf.version}</version>
1433         </plugin>
1434
1435         <plugin>
1436           <groupId>org.apache.servicemix.tooling</groupId>
1437           <artifactId>depends-maven-plugin</artifactId>
1438           <version>1.4.0</version>
1439           <executions>
1440             <execution>
1441               <id>generate-depends-file</id>
1442               <goals>
1443                 <goal>generate-depends-file</goal>
1444               </goals>
1445             </execution>
1446           </executions>
1447         </plugin>
1448
1449         <plugin>
1450           <groupId>com.webcohesion.enunciate</groupId>
1451           <artifactId>enunciate-maven-plugin</artifactId>
1452           <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1453           <version>2.11.1</version>
1454         </plugin>
1455
1456         <plugin>
1457           <groupId>org.gaul</groupId>
1458           <artifactId>modernizer-maven-plugin</artifactId>
1459           <version>1.8.0</version>
1460           <configuration>
1461             <javaVersion>1.8</javaVersion>
1462           </configuration>
1463
1464           <executions>
1465             <execution>
1466               <id>modernizer</id>
1467               <phase>verify</phase>
1468               <goals>
1469                 <goal>modernizer</goal>
1470               </goals>
1471             </execution>
1472           </executions>
1473         </plugin>
1474
1475         <plugin>
1476           <groupId>org.codehaus.mojo</groupId>
1477           <artifactId>build-helper-maven-plugin</artifactId>
1478           <version>3.0.0</version>
1479         </plugin>
1480         <plugin>
1481           <groupId>com.github.spotbugs</groupId>
1482           <artifactId>spotbugs-maven-plugin</artifactId>
1483           <version>3.1.12.2</version>
1484           <dependencies>
1485             <dependency>
1486               <groupId>com.github.spotbugs</groupId>
1487               <artifactId>spotbugs</artifactId>
1488               <version>3.1.12</version>
1489             </dependency>
1490             <dependency>
1491               <groupId>org.opendaylight.odlparent</groupId>
1492               <artifactId>spotbugs</artifactId>
1493               <version>6.0.0-SNAPSHOT</version>
1494             </dependency>
1495             <dependency>
1496               <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 -->
1497               <groupId>org.slf4j</groupId>
1498               <artifactId>slf4j-simple</artifactId>
1499               <version>1.8.0-beta2</version>
1500             </dependency>
1501           </dependencies>
1502           <configuration>
1503             <plugins>
1504               <plugin>
1505                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1506                 <artifactId>bug-pattern</artifactId>
1507                 <!-- NOTE: This version MUST be kept in sync with the same version in the old findbugs-maven-plugin above, if possible -->
1508                 <version>1.4.2</version>
1509               </plugin>
1510             </plugins>
1511             <!--
1512               Enables analysis which takes more memory but finds more bugs.
1513               If you run out of memory, changes the value of the effort element
1514               to 'Low'.
1515             -->
1516             <effort>Max</effort>
1517             <!-- Reports all bugs (other values are medium and max) -->
1518             <threshold>Low</threshold>
1519             <!-- Build doesn't fail if problems are found -->
1520             <failOnError>false</failOnError>
1521             <!-- References the excluded rules -->
1522             <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1523             <!-- Produces XML report -->
1524             <xmlOutput>true</xmlOutput>
1525             <!-- Configures the directory in which the XML report is created -->
1526             <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1527           </configuration>
1528           <executions>
1529             <!--
1530               Ensures that SpotBugs inspects source code when project is compiled.
1531             -->
1532             <execution>
1533               <id>analyze-compile</id>
1534               <phase>compile</phase>
1535               <goals>
1536                 <goal>check</goal>
1537               </goals>
1538             </execution>
1539           </executions>
1540         </plugin>
1541         <plugin>
1542           <groupId>org.codehaus.mojo</groupId>
1543           <artifactId>properties-maven-plugin</artifactId>
1544           <version>1.0.0</version>
1545         </plugin>
1546         <plugin>
1547           <groupId>org.eclipse.xtend</groupId>
1548           <artifactId>xtend-maven-plugin</artifactId>
1549           <!-- NOTE: This version MUST be kept in sync with the Xtend version in <dependencyManagement> -->
1550           <version>2.17.1</version>
1551           <executions>
1552             <execution>
1553               <goals>
1554                 <goal>compile</goal>
1555                 <goal>testCompile</goal>
1556               </goals>
1557               <configuration>
1558                 <outputDirectory>${project.build.directory}/generated-sources/xtend</outputDirectory>
1559                 <testOutputDirectory>${project.build.directory}/generated-test-sources/xtend</testOutputDirectory>
1560               </configuration>
1561             </execution>
1562           </executions>
1563         </plugin>
1564         <plugin>
1565           <groupId>org.eclipse.m2e</groupId>
1566           <artifactId>lifecycle-mapping</artifactId>
1567           <version>1.0.0</version>
1568           <configuration>
1569             <lifecycleMappingMetadata>
1570               <pluginExecutions>
1571                 <pluginExecution>
1572                   <pluginExecutionFilter>
1573                     <groupId>org.apache.felix</groupId>
1574                     <artifactId>maven-bundle-plugin</artifactId>
1575                     <versionRange>[1.0,)</versionRange>
1576                     <goals>
1577                       <goal>manifest</goal>
1578                     </goals>
1579                   </pluginExecutionFilter>
1580                   <action>
1581                     <execute/>
1582                   </action>
1583                 </pluginExecution>
1584                 <pluginExecution>
1585                   <pluginExecutionFilter>
1586                     <groupId>org.apache.maven.plugins</groupId>
1587                     <artifactId>maven-enforcer-plugin</artifactId>
1588                     <versionRange>[1.0.0,)</versionRange>
1589                     <goals>
1590                       <goal>enforce</goal>
1591                     </goals>
1592                   </pluginExecutionFilter>
1593                   <action>
1594                     <ignore/>
1595                   </action>
1596                 </pluginExecution>
1597                 <pluginExecution>
1598                   <pluginExecutionFilter>
1599                     <groupId>org.apache.maven.plugins</groupId>
1600                     <artifactId>maven-dependency-plugin</artifactId>
1601                     <versionRange>[2.10,)</versionRange>
1602                     <goals>
1603                       <goal>unpack</goal>
1604                     </goals>
1605                   </pluginExecutionFilter>
1606                   <action>
1607                     <ignore/>
1608                   </action>
1609                 </pluginExecution>
1610                 <pluginExecution>
1611                   <pluginExecutionFilter>
1612                     <groupId>org.apache.maven.plugins</groupId>
1613                     <artifactId>maven-pmd-plugin</artifactId>
1614                     <versionRange>[3.6,)</versionRange>
1615                     <goals>
1616                       <goal>cpd-check</goal>
1617                     </goals>
1618                   </pluginExecutionFilter>
1619                   <action>
1620                     <ignore/>
1621                   </action>
1622                 </pluginExecution>
1623                 <!-- The plugin will eventually be removed, remove this too at that point -->
1624                 <pluginExecution>
1625                   <pluginExecutionFilter>
1626                     <groupId>org.apache.maven.plugins</groupId>
1627                     <artifactId>maven-antrun-plugin</artifactId>
1628                     <versionRange>[1.8,)</versionRange>
1629                     <goals>
1630                       <goal>run</goal>
1631                     </goals>
1632                   </pluginExecutionFilter>
1633                   <action>
1634                     <ignore/>
1635                   </action>
1636                 </pluginExecution>
1637                 <pluginExecution>
1638                   <pluginExecutionFilter>
1639                     <groupId>org.apache.servicemix.tooling</groupId>
1640                     <artifactId>depends-maven-plugin</artifactId>
1641                     <versionRange>[1.2,)</versionRange>
1642                     <goals>
1643                       <goal>generate-depends-file</goal>
1644                     </goals>
1645                   </pluginExecutionFilter>
1646                   <action>
1647                     <execute/>
1648                   </action>
1649                 </pluginExecution>
1650                 <pluginExecution>
1651                   <pluginExecutionFilter>
1652                     <groupId>org.jacoco</groupId>
1653                     <artifactId>jacoco-maven-plugin</artifactId>
1654                     <versionRange>[0.7.0,)</versionRange>
1655                     <goals>
1656                       <goal>prepare-agent</goal>
1657                     </goals>
1658                   </pluginExecutionFilter>
1659                   <action>
1660                     <ignore/>
1661                   </action>
1662                 </pluginExecution>
1663
1664                 <pluginExecution>
1665                   <pluginExecutionFilter>
1666                     <groupId>org.ops4j.pax.exam</groupId>
1667                     <artifactId>maven-paxexam-plugin</artifactId>
1668                     <versionRange>[1.2.4,)</versionRange>
1669                     <goals>
1670                       <goal>generate-depends-file</goal>
1671                     </goals>
1672                   </pluginExecutionFilter>
1673                   <action>
1674                     <ignore/>
1675                   </action>
1676                 </pluginExecution>
1677
1678                 <pluginExecution>
1679                   <pluginExecutionFilter>
1680                     <groupId>org.basepom.maven</groupId>
1681                     <artifactId>
1682                       duplicate-finder-maven-plugin
1683                     </artifactId>
1684                     <versionRange>[1.2.1,)</versionRange>
1685                     <goals>
1686                       <goal>check</goal>
1687                     </goals>
1688                   </pluginExecutionFilter>
1689                   <action>
1690                     <ignore></ignore>
1691                   </action>
1692                 </pluginExecution>
1693               </pluginExecutions>
1694             </lifecycleMappingMetadata>
1695           </configuration>
1696         </plugin>
1697
1698         <plugin>
1699           <groupId>org.jacoco</groupId>
1700           <artifactId>jacoco-maven-plugin</artifactId>
1701           <configuration>
1702             <!-- Note: This exclusion list should match <sonar.exclusions>
1703                        property above -->
1704             <excludes>
1705               <exclude>**/gen/**</exclude>
1706               <exclude>**/generated-sources/**</exclude>
1707               <exclude>**/generated-test-sources/**</exclude>
1708               <exclude>**/yang-gen/**</exclude>
1709               <exclude>**/yang-gen-config/**</exclude>
1710               <exclude>**/yang-gen-sal/**</exclude>
1711               <exclude>**/yang-gen-code/**</exclude>
1712               <exclude>**/pax/**</exclude>
1713             </excludes>
1714           </configuration>
1715         </plugin>
1716
1717         <plugin>
1718           <groupId>org.ops4j.pax.exam</groupId>
1719           <artifactId>maven-paxexam-plugin</artifactId>
1720           <version>1.2.4</version>
1721         </plugin>
1722
1723         <plugin>
1724           <groupId>org.codehaus.mojo</groupId>
1725           <artifactId>jdepend-maven-plugin</artifactId>
1726           <version>2.0</version>
1727           <executions>
1728             <execution>
1729               <phase>site</phase>
1730               <goals>
1731                 <goal>generate-no-fork</goal>
1732               </goals>
1733             </execution>
1734           </executions>
1735         </plugin>
1736
1737         <!-- When updating this version, consider antl4-runtime above -->
1738         <plugin>
1739           <groupId>org.antlr</groupId>
1740           <artifactId>antlr4-maven-plugin</artifactId>
1741           <version>4.7.2</version>
1742         </plugin>
1743       </plugins>
1744     </pluginManagement>
1745
1746     <plugins>
1747       <plugin>
1748         <artifactId>maven-enforcer-plugin</artifactId>
1749         <executions>
1750           <execution>
1751             <id>enforce-banned-dependencies</id>
1752             <goals>
1753               <goal>enforce</goal>
1754             </goals>
1755             <configuration>
1756               <rules>
1757                 <bannedDependencies>
1758                   <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>
1759                   <excludes>
1760                     <exclude>org.mockito:mockito-all</exclude>
1761                     <exclude>com.google.code.findbugs:annotations</exclude>
1762                   </excludes>
1763                 </bannedDependencies>
1764               </rules>
1765               <fail>true</fail>
1766             </configuration>
1767           </execution>
1768         </executions>
1769       </plugin>
1770       <plugin>
1771         <groupId>org.basepom.maven</groupId>
1772         <artifactId>duplicate-finder-maven-plugin</artifactId>
1773         <version>1.3.0</version>
1774         <executions>
1775           <execution>
1776             <id>find-duplicate-classpath-entries</id>
1777             <phase>verify</phase>
1778             <goals>
1779               <goal>check</goal>
1780             </goals>
1781           </execution>
1782         </executions>
1783         <configuration>
1784             <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1785             <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1786             <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1787             <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1788             <printEqualFiles>false</printEqualFiles>
1789             <quiet>true</quiet>
1790             <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1791                  as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1792                  we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1793                  also ignore: -->
1794             <ignoredResourcePatterns>
1795               <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1796               <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1797               <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1798               <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1799               <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1800               <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1801             </ignoredResourcePatterns>
1802             <ignoredClassPatterns>
1803               <ignoredClassPattern>META-INF.versions.*$</ignoredClassPattern>
1804             </ignoredClassPatterns>
1805             <ignoredDependencies>
1806               <ignoredDependency>
1807                 <groupId>org.slf4j</groupId>
1808                 <artifactId>slf4j-simple</artifactId>
1809               </ignoredDependency>
1810               <ignoredDependency>
1811                 <groupId>org.opendaylight.odlparent</groupId>
1812                 <artifactId>opendaylight-karaf-empty</artifactId>
1813               </ignoredDependency>
1814             </ignoredDependencies>
1815         </configuration>
1816       </plugin>
1817       <plugin>
1818         <artifactId>maven-dependency-plugin</artifactId>
1819       </plugin>
1820       <plugin>
1821         <artifactId>maven-checkstyle-plugin</artifactId>
1822       </plugin>
1823       <plugin>
1824           <artifactId>maven-pmd-plugin</artifactId>
1825       </plugin>
1826       <plugin>
1827         <artifactId>maven-source-plugin</artifactId>
1828       </plugin>
1829       <plugin>
1830         <artifactId>maven-javadoc-plugin</artifactId>
1831       </plugin>
1832       <plugin>
1833         <groupId>org.gaul</groupId>
1834         <artifactId>modernizer-maven-plugin</artifactId>
1835       </plugin>
1836
1837       <!-- Jacoco / Sonar -->
1838       <plugin>
1839         <groupId>org.jacoco</groupId>
1840         <artifactId>jacoco-maven-plugin</artifactId>
1841         <executions>
1842           <execution>
1843             <id>pre-unit-test</id>
1844             <goals>
1845               <goal>prepare-agent</goal>
1846             </goals>
1847             <configuration>
1848               <destFile>${jacoco.destFile}</destFile>
1849             </configuration>
1850           </execution>
1851         </executions>
1852       </plugin>
1853
1854       <plugin>
1855         <groupId>com.alexecollins.maven.plugin</groupId>
1856         <artifactId>script-maven-plugin</artifactId>
1857         <version>1.0.0</version>
1858         <executions>
1859            <execution>
1860              <phase>prepare-package</phase>
1861              <goals>
1862                <goal>execute</goal>
1863              </goals>
1864              <configuration>
1865                <script>
1866                  // BeanShell is 2005-ish and thus doesn't support generics, varargs, try-with-resources or lambdas, so:
1867                  // (If we do this kind of inline code in pom.xml more often, we shold have a new simple module in
1868                  //  odl-parent, which has *.java that we compile, and then just depend on it here and call one-line
1869                  //  static class methods only - it will be MUCH easier to write!)
1870                  void copy(File root, String glob, File target) {
1871                      java.nio.file.DirectoryStream dirStream = java.nio.file.Files.newDirectoryStream(root.toPath(), glob);
1872                      Iterator dirStreamIterator = dirStream.iterator();
1873                      while (dirStreamIterator.hasNext()) {
1874                          java.nio.file.Path path = dirStreamIterator.next();
1875                          java.nio.file.Files.copy(path, new File(target, path.toFile().getName()).toPath(),
1876                              new java.nio.file.CopyOption[] {
1877                                  java.nio.file.StandardCopyOption.REPLACE_EXISTING,
1878                                  java.nio.file.StandardCopyOption.COPY_ATTRIBUTES
1879                              }
1880                          );
1881                      }
1882                      dirStream.close();
1883                  }
1884
1885                  File gitRepoRootDir = project.basedir;
1886                  while (!new File(gitRepoRootDir, ".git").exists() &amp;&amp; gitRepoRootDir.getParentFile() != null) {
1887                      gitRepoRootDir = gitRepoRootDir.getParentFile();
1888                  }
1889
1890                  File target = new File(project.build.outputDirectory);
1891                  target.mkdirs();
1892                  copy(gitRepoRootDir, "README*", target);
1893                  copy(gitRepoRootDir, "CONTRIBUTING*", target);
1894                  copy(gitRepoRootDir, "PROJECT_INFO.yaml", target);
1895                </script>
1896              </configuration>
1897            </execution>
1898          </executions>
1899          <dependencies>
1900            <dependency>
1901              <groupId>org.apache-extras.beanshell</groupId>
1902              <artifactId>bsh</artifactId>
1903              <version>2.0b6</version>
1904            </dependency>
1905          </dependencies>
1906       </plugin>
1907     </plugins>
1908   </build>
1909
1910   <reporting>
1911     <plugins>
1912       <plugin>
1913         <artifactId>maven-checkstyle-plugin</artifactId>
1914         <version>3.1.0</version>
1915       </plugin>
1916
1917       <!-- FIXME: activate this
1918       <plugin>
1919         <artifactId>maven-project-info-reports-plugin</artifactId>
1920         <version>${projectinfo}</version>
1921       </plugin-->
1922       <plugin>
1923         <groupId>org.codehaus.mojo</groupId>
1924         <artifactId>jdepend-maven-plugin</artifactId>
1925         <reportSets>
1926           <reportSet>
1927             <reports>
1928               <report>generate-no-fork</report>
1929             </reports>
1930           </reportSet>
1931         </reportSets>
1932       </plugin>
1933     </plugins>
1934   </reporting>
1935 </project>
1936