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