Bump dropwizard-metrics to 4.2.7
[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>10.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/display/ODL/ODL+Root+Parent</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     <!-- Used in controller, genius, infrautils, netconf, netvirt, ovsdb, serviceutils -->
41     <karaf.version>4.3.5</karaf.version>
42
43     <!-- Supporting Libraries -->
44     <!-- Only used internally -->
45     <bouncycastle.version>1.70</bouncycastle.version>
46
47     <!-- JaCoCo configuration, by default tied to Sonar configuration, but can be overridden separately
48          to allow projects to report Sonar values from the entire project. -->
49     <jacoco.destFile>${project.build.directory}/code-coverage/jacoco.exec</jacoco.destFile>
50     <jacoco.dataFile>${jacoco.destFile}</jacoco.dataFile>
51
52     <!-- Default Sonar configuration -->
53     <sonar.java.source>${maven.compiler.release}</sonar.java.source>
54     <sonar-jacoco-listeners.version>3.8</sonar-jacoco-listeners.version>
55     <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
56
57     <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
58     <sonar.exclusions>**/gen/**,**/generated-sources/**,**/generated-test-sources/**,**/yang-gen/**,**/yang-gen-config/**,**/yang-gen-sal/**,**/yang-gen-code/**,**/pax/**</sonar.exclusions>
59
60     <!-- Opt-in code quality checks -->
61     <duplicate-finder.skip>true</duplicate-finder.skip> <!-- Classpath duplicates -->
62
63     <!-- Redirect test output to files (overridable) -->
64     <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
65
66     <!-- Opt-out from maven-checkstyle-plugin failing the build on violations. Defaults
67          to true. Set to 'false' in pom.xml of project which desires to not enforce
68          no reported violations. -->
69     <odlparent.checkstyle.enforce>true</odlparent.checkstyle.enforce>
70
71     <!-- Opt-in into modernizer-maven-plugin failing the build on violations. Defaults
72          to true. Set to 'false' in pom.xml of project which desires to not enforce
73          no reported violations. -->
74     <odlparent.modernizer.enforce>true</odlparent.modernizer.enforce>
75
76     <!-- Target release for modernizer-maven-plugin. It defaults to '1.11',
77          meaning Java 11, but can be set to any version in pom.xml of project
78          which desires to override it (such as '1.12' for Java 12). -->
79     <odlparent.modernizer.target>1.11</odlparent.modernizer.target>
80
81     <!-- Opt-out from spotbugs-maven-plugin failing the build on violations. Defaults
82          to true. Set to 'false' in pom.xml of project which desires to not enforce
83          no reported violations. -->
84     <odlparent.spotbugs.enforce>true</odlparent.spotbugs.enforce>
85
86     <!-- Opt-in into maven-dependency-plugin dependency declaration consistency
87          enforcement. Defaults to false. Set to 'true' in pom.xml of a project which
88          desires to have the consistency of its dependencies checked and enforced. -->
89     <odlparent.dependency.enforce>false</odlparent.dependency.enforce>
90
91     <!-- Opt-out from maven-dependency-plugin dependency declaration consistency
92          checking. Defaults to false. Set to 'true' in pom.xml of a project which
93          desires to not check the consistency of its dependencies. -->
94     <odlparent.dependency.skip>false</odlparent.dependency.skip>
95   </properties>
96
97   <dependencyManagement>
98     <dependencies>
99
100       <dependency>
101         <groupId>org.opendaylight.odlparent</groupId>
102         <artifactId>odlparent-artifacts</artifactId>
103         <version>10.0.0-SNAPSHOT</version>
104         <scope>import</scope>
105         <type>pom</type>
106       </dependency>
107
108       <!-- We import the Karaf BOM to ensure we converge by default on the versions used there -->
109       <dependency>
110         <groupId>org.apache.karaf</groupId>
111         <artifactId>karaf-bom</artifactId>
112         <version>${karaf.version}</version>
113         <scope>import</scope>
114         <type>pom</type>
115       </dependency>
116
117       <!-- Build tool dependencies (normally not here in <dependencies>,
118            but in a <dependency> in <pluginManagement> but for Checkstyle this
119            is required so that we can share the same version of Checkstyle
120            for both the Maven plugin below as well as  for custom Checkstyle
121            check rule projects, such as yangtools' checkstyle-logging) -->
122       <dependency>
123         <groupId>com.puppycrawl.tools</groupId>
124         <artifactId>checkstyle</artifactId>
125         <!-- This should match the plugin management on maven-checkstyle-plugin below -->
126         <version>9.2.1</version>
127       </dependency>
128
129       <!-- Testing Dependencies -->
130       <!-- JUnit, Hamcrest, Mockito and PowerMock need to be kept in sync -->
131       <dependency>
132         <groupId>org.junit</groupId>
133         <artifactId>junit-bom</artifactId>
134         <version>5.8.2</version>
135         <type>pom</type>
136         <scope>import</scope>
137       </dependency>
138       <dependency>
139         <groupId>junit</groupId>
140         <artifactId>junit</artifactId>
141         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
142         <version>4.13.2</version>
143         <scope>test</scope>
144       </dependency>
145       <dependency>
146          <groupId>org.skyscreamer</groupId>
147          <artifactId>jsonassert</artifactId>
148          <version>1.5.0</version>
149          <scope>test</scope>
150       </dependency>
151       <dependency>
152         <groupId>org.mockito</groupId>
153         <artifactId>mockito-core</artifactId>
154         <version>4.2.0</version>
155         <scope>test</scope>
156       </dependency>
157       <dependency>
158         <groupId>org.mockito</groupId>
159         <artifactId>mockito-inline</artifactId>
160         <version>4.2.0</version>
161         <scope>test</scope>
162       </dependency>
163       <dependency>
164         <groupId>org.hamcrest</groupId>
165         <artifactId>hamcrest</artifactId>
166         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
167         <version>2.2</version>
168         <scope>test</scope>
169       </dependency>
170       <dependency>
171         <groupId>org.hamcrest</groupId>
172         <artifactId>hamcrest-core</artifactId>
173         <version>2.2</version>
174         <scope>test</scope>
175       </dependency>
176       <dependency>
177         <groupId>org.hamcrest</groupId>
178         <artifactId>hamcrest-library</artifactId>
179         <version>2.2</version>
180         <scope>test</scope>
181       </dependency>
182       <dependency>
183         <groupId>com.google.truth</groupId>
184         <artifactId>truth</artifactId>
185         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
186         <version>1.1.3</version>
187         <scope>test</scope>
188       </dependency>
189       <dependency>
190         <groupId>com.google.truth.extensions</groupId>
191         <artifactId>truth-java8-extension</artifactId>
192         <version>1.1.3</version>
193         <scope>test</scope>
194       </dependency>
195       <dependency>
196         <groupId>org.awaitility</groupId>
197         <artifactId>awaitility</artifactId>
198         <version>4.1.1</version>
199         <scope>test</scope>
200       </dependency>
201
202       <!--
203            Annotation Processors
204        -->
205       <dependency>
206         <!-- Generates immutable implementations, builders, the works -->
207         <groupId>org.immutables</groupId>
208         <artifactId>value</artifactId>
209         <classifier>annotations</classifier>
210         <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
211         <version>2.8.8</version>
212         <!-- Must be provided; scope=test here breaks APT in Eclipse :( -->
213         <scope>provided</scope>
214       </dependency>
215
216       <dependency>
217         <!-- Generates META-INF/services entries for ServiceLoader -->
218         <groupId>org.kohsuke.metainf-services</groupId>
219         <artifactId>metainf-services</artifactId>
220         <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
221         <version>1.8</version>
222         <optional>true</optional>
223         <scope>provided</scope>
224       </dependency>
225
226       <!--
227            Supporting Libraries
228        -->
229       <dependency>
230         <groupId>ch.qos.logback</groupId>
231         <artifactId>logback-core</artifactId>
232         <version>1.2.10</version>
233       </dependency>
234       <dependency>
235         <groupId>ch.qos.logback</groupId>
236         <artifactId>logback-classic</artifactId>
237         <version>1.2.10</version>
238       </dependency>
239
240       <!-- log4j2 -->
241       <dependency>
242         <groupId>org.apache.logging.log4j</groupId>
243         <artifactId>log4j-bom</artifactId>
244         <version>2.17.1</version>
245         <scope>import</scope>
246         <type>pom</type>
247       </dependency>
248
249       <dependency>
250         <groupId>com.google.guava</groupId>
251         <artifactId>guava</artifactId>
252         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
253         <version>30.1.1-jre</version>
254         <exclusions>
255           <exclusion>
256             <!-- Do not leak JSR305 onto the classpath by default -->
257             <groupId>com.google.code.findbugs</groupId>
258             <artifactId>jsr305</artifactId>
259           </exclusion>
260         </exclusions>
261       </dependency>
262       <dependency>
263         <groupId>com.google.guava</groupId>
264         <artifactId>guava-testlib</artifactId>
265         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
266         <version>30.1.1-jre</version>
267         <scope>test</scope>
268         <exclusions>
269           <exclusion>
270             <!-- Do not leak JSR305 onto the classpath by default -->
271             <groupId>com.google.code.findbugs</groupId>
272             <artifactId>jsr305</artifactId>
273           </exclusion>
274         </exclusions>
275       </dependency>
276       <dependency>
277         <groupId>org.checkerframework</groupId>
278         <artifactId>checker-qual</artifactId>
279         <version>3.8.0</version>
280       </dependency>
281       <dependency>
282         <groupId>com.google.errorprone</groupId>
283         <artifactId>error_prone_annotations</artifactId>
284         <version>2.5.1</version>
285       </dependency>
286
287       <dependency>
288         <groupId>commons-beanutils</groupId>
289         <artifactId>commons-beanutils</artifactId>
290         <version>1.9.4</version>
291       </dependency>
292       <dependency>
293         <groupId>org.apache.commons</groupId>
294         <artifactId>commons-lang3</artifactId>
295         <version>3.12.0</version>
296       </dependency>
297       <dependency>
298         <groupId>org.apache.commons</groupId>
299         <artifactId>commons-text</artifactId>
300         <version>1.9</version>
301       </dependency>
302       <dependency>
303         <groupId>commons-lang</groupId>
304         <artifactId>commons-lang</artifactId>
305         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
306         <version>2.6</version>
307       </dependency>
308       <dependency>
309         <groupId>commons-codec</groupId>
310         <artifactId>commons-codec</artifactId>
311         <version>1.15</version>
312       </dependency>
313       <!-- Jersey for JAXRS -->
314       <dependency>
315         <groupId>javax.ws.rs</groupId>
316         <artifactId>javax.ws.rs-api</artifactId>
317         <version>2.1.1</version>
318       </dependency>
319       <dependency>
320         <groupId>org.glassfish.jersey</groupId>
321         <artifactId>jersey-bom</artifactId>
322         <version>2.27</version>
323         <type>pom</type>
324         <scope>import</scope>
325       </dependency>
326
327       <dependency>
328         <groupId>jakarta.activation</groupId>
329         <artifactId>jakarta.activation-api</artifactId>
330         <version>1.2.2</version>
331       </dependency>
332
333       <dependency>
334         <groupId>javax.annotation</groupId>
335         <artifactId>javax.annotation-api</artifactId>
336         <version>1.3.2</version>
337         <optional>true</optional>
338       </dependency>
339       <dependency>
340         <groupId>xml-apis</groupId>
341         <artifactId>xml-apis</artifactId>
342         <version>1.4.01</version>
343       </dependency>
344
345       <!-- Plugin integration -->
346       <dependency>
347         <groupId>net.java.dev.stax-utils</groupId>
348         <artifactId>stax-utils</artifactId>
349         <version>20070216</version>
350         <exclusions>
351           <exclusion>
352             <!-- JSR173 ships with JRE by default -->
353             <groupId>com.bea.xml</groupId>
354             <artifactId>jsr173-ri</artifactId>
355           </exclusion>
356         </exclusions>
357       </dependency>
358       <dependency>
359         <groupId>org.sonatype.plexus</groupId>
360         <artifactId>plexus-build-api</artifactId>
361         <version>0.0.7</version>
362       </dependency>
363       <dependency>
364         <groupId>org.codehaus.plexus</groupId>
365         <artifactId>plexus-slf4j-logging</artifactId>
366         <version>1.1</version>
367       </dependency>
368
369       <!-- These three need to be consistent:
370         jackson-2.12.6 needs woodstox-6.2.4+
371         woodstox-5.3+ needs stax2-api-4.2.x
372         -->
373       <dependency>
374         <groupId>org.codehaus.woodstox</groupId>
375         <artifactId>stax2-api</artifactId>
376         <version>4.2.1</version>
377       </dependency>
378       <dependency>
379         <groupId>com.fasterxml.woodstox</groupId>
380         <artifactId>woodstox-core</artifactId>
381         <version>6.2.7</version>
382       </dependency>
383       <dependency>
384         <groupId>com.fasterxml.jackson</groupId>
385         <artifactId>jackson-bom</artifactId>
386         <version>2.12.6</version>
387         <scope>import</scope>
388         <type>pom</type>
389       </dependency>
390
391       <dependency>
392         <groupId>com.github.spotbugs</groupId>
393         <artifactId>spotbugs-annotations</artifactId>
394         <version>3.1.12</version>
395         <scope>provided</scope>
396         <!-- Contains retention=RUNTIME annotations, which are not really needed -->
397         <optional>true</optional>
398         <exclusions>
399           <exclusion>
400             <groupId>com.google.code.findbugs</groupId>
401             <artifactId>jsr305</artifactId>
402           </exclusion>
403         </exclusions>
404       </dependency>
405
406       <dependency>
407         <groupId>org.eclipse.jdt</groupId>
408         <artifactId>org.eclipse.jdt.annotation</artifactId>
409         <version>2.2.600</version>
410         <scope>provided</scope>
411       </dependency>
412       <dependency>
413         <groupId>com.google.code.gson</groupId>
414         <artifactId>gson</artifactId>
415         <version>2.8.9</version>
416       </dependency>
417       <dependency>
418         <groupId>commons-fileupload</groupId>
419         <artifactId>commons-fileupload</artifactId>
420         <version>1.4</version>
421       </dependency>
422       <dependency>
423         <groupId>commons-io</groupId>
424         <artifactId>commons-io</artifactId>
425         <version>2.11.0</version>
426       </dependency>
427       <dependency>
428         <groupId>commons-net</groupId>
429         <artifactId>commons-net</artifactId>
430         <version>3.8.0</version>
431       </dependency>
432
433       <!-- Netty -->
434       <dependency>
435         <groupId>io.netty</groupId>
436         <artifactId>netty-bom</artifactId>
437         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
438         <version>4.1.72.Final</version>
439         <type>pom</type>
440         <scope>import</scope>
441       </dependency>
442
443       <dependency>
444         <groupId>javax.ws.rs</groupId>
445         <artifactId>jsr311-api</artifactId>
446         <version>1.1.1</version>
447       </dependency>
448       <dependency>
449         <groupId>org.bouncycastle</groupId>
450         <artifactId>bcpkix-jdk15on</artifactId>
451         <version>${bouncycastle.version}</version>
452       </dependency>
453       <dependency>
454         <groupId>org.bouncycastle</groupId>
455         <artifactId>bcprov-jdk15on</artifactId>
456         <version>${bouncycastle.version}</version>
457       </dependency>
458       <dependency>
459         <groupId>org.bouncycastle</groupId>
460         <artifactId>bcprov-ext-jdk15on</artifactId>
461         <version>${bouncycastle.version}</version>
462       </dependency>
463       <dependency>
464         <groupId>org.bouncycastle</groupId>
465         <artifactId>bcutil-jdk15on</artifactId>
466         <version>${bouncycastle.version}</version>
467       </dependency>
468
469       <dependency>
470         <groupId>com.webcohesion.enunciate</groupId>
471         <artifactId>enunciate-core-annotations</artifactId>
472         <!-- This must be aligned with the version of enunciate-maven-plugin specified below -->
473         <version>2.13.3</version>
474       </dependency>
475
476       <dependency>
477         <groupId>org.javassist</groupId>
478         <artifactId>javassist</artifactId>
479         <version>3.27.0-GA</version>
480       </dependency>
481       <dependency>
482         <groupId>org.jboss.spec.javax.transaction</groupId>
483         <artifactId>jboss-transaction-api_1.1_spec</artifactId>
484         <version>1.0.1.Final</version>
485       </dependency>
486       <dependency>
487         <groupId>org.jolokia</groupId>
488         <artifactId>jolokia-osgi</artifactId>
489         <version>1.7.1</version>
490       </dependency>
491
492       <!--
493         OSGi Release 7 artifacts. These come in two forms:
494         - osgi.core, osgi.cmpn and osgi.annotation, which are legacy uber-bundles
495         - fine-grained artifacts, which are the preferred way going forward, especially
496           once we get to Release 8.
497         The definitions here are sourced from https://github.com/osgi/osgi/blob/r7-cmpn-spec-final/cnf/central.mvn
498         and the corresponding layout.bnd files.
499       -->
500       <!-- osgi.core content, defined in https://github.com/osgi/osgi/blob/r7-cmpn-spec-final/osgi.core/layout.bnd -->
501       <dependency>
502         <groupId>org.osgi</groupId>
503         <artifactId>org.osgi.dto</artifactId>
504         <version>1.1.1</version>
505         <scope>provided</scope>
506       </dependency>
507       <dependency>
508         <groupId>org.osgi</groupId>
509         <artifactId>org.osgi.resource</artifactId>
510         <version>1.0.0</version>
511         <scope>provided</scope>
512       </dependency>
513       <dependency>
514         <groupId>org.osgi</groupId>
515         <artifactId>org.osgi.framework</artifactId>
516         <version>1.9.0</version>
517         <scope>provided</scope>
518       </dependency>
519       <dependency>
520         <groupId>org.osgi</groupId>
521         <artifactId>org.osgi.service.permissionadmin</artifactId>
522         <version>1.2.1</version>
523         <scope>provided</scope>
524       </dependency>
525       <dependency>
526         <groupId>org.osgi</groupId>
527         <artifactId>org.osgi.service.condpermadmin</artifactId>
528         <version>1.1.1</version>
529         <scope>provided</scope>
530       </dependency>
531       <dependency>
532         <groupId>org.osgi</groupId>
533         <artifactId>org.osgi.service.packageadmin</artifactId>
534         <version>1.2.0</version>
535         <scope>provided</scope>
536       </dependency>
537       <dependency>
538         <groupId>org.osgi</groupId>
539         <artifactId>org.osgi.service.startlevel</artifactId>
540         <version>1.1.0</version>
541         <scope>provided</scope>
542       </dependency>
543       <dependency>
544         <groupId>org.osgi</groupId>
545         <artifactId>org.osgi.service.resolver</artifactId>
546         <version>1.1.0</version>
547         <scope>provided</scope>
548       </dependency>
549       <dependency>
550         <groupId>org.osgi</groupId>
551         <artifactId>org.osgi.service.url</artifactId>
552         <version>1.0.0</version>
553         <scope>provided</scope>
554       </dependency>
555       <dependency>
556         <groupId>org.osgi</groupId>
557         <artifactId>org.osgi.util.tracker</artifactId>
558         <version>1.5.2</version>
559         <scope>provided</scope>
560       </dependency>
561
562       <!-- osgi.annotation content, defined in https://github.com/osgi/osgi/blob/r7-cmpn-spec-final/osgi.annotation/layout.bnd -->
563       <dependency>
564         <groupId>org.osgi</groupId>
565         <artifactId>org.osgi.annotation.versioning</artifactId>
566         <version>1.0.0</version>
567         <scope>provided</scope>
568       </dependency>
569       <dependency>
570         <groupId>org.osgi</groupId>
571         <artifactId>org.osgi.annotation.bundle</artifactId>
572         <version>1.0.0</version>
573         <scope>provided</scope>
574       </dependency>
575
576       <!-- osg.cmpn content, defined in https://github.com/osgi/osgi/blob/r7-cmpn-spec-final/osgi.cmpn/layout.bnd -->
577       <dependency>
578         <groupId>org.osgi</groupId>
579         <artifactId>org.osgi.application</artifactId>
580         <version>1.0.0</version>
581         <scope>provided</scope>
582       </dependency>
583       <dependency>
584         <groupId>org.osgi</groupId>
585         <artifactId>org.osgi.namespace.contract</artifactId>
586         <version>1.0.0</version>
587         <scope>provided</scope>
588       </dependency>
589       <dependency>
590         <groupId>org.osgi</groupId>
591         <artifactId>org.osgi.namespace.extender</artifactId>
592         <version>1.0.1</version>
593         <scope>provided</scope>
594       </dependency>
595       <dependency>
596         <groupId>org.osgi</groupId>
597         <artifactId>org.osgi.namespace.implementation</artifactId>
598         <version>1.0.0</version>
599         <scope>provided</scope>
600       </dependency>
601       <dependency>
602         <groupId>org.osgi</groupId>
603         <artifactId>org.osgi.namespace.service</artifactId>
604         <version>1.0.0</version>
605         <scope>provided</scope>
606       </dependency>
607       <dependency>
608         <groupId>org.osgi</groupId>
609         <artifactId>org.osgi.namespace.unresolvable</artifactId>
610         <version>1.0.0</version>
611         <scope>provided</scope>
612       </dependency>
613       <dependency>
614         <groupId>org.osgi</groupId>
615         <artifactId>org.osgi.service.async</artifactId>
616         <version>1.0.0</version>
617         <scope>provided</scope>
618       </dependency>
619       <dependency>
620         <groupId>org.osgi</groupId>
621         <artifactId>org.osgi.service.application</artifactId>
622         <version>1.1.0</version>
623         <scope>provided</scope>
624       </dependency>
625       <dependency>
626         <groupId>org.osgi</groupId>
627         <artifactId>org.osgi.service.blueprint</artifactId>
628         <version>1.0.2</version>
629         <scope>provided</scope>
630       </dependency>
631       <!-- This is not published until R8>
632       <dependency>
633         <groupId>org.osgi</groupId>
634         <artifactId>org.osgi.service.cdi</artifactId>
635         <version>1.0.0</version>
636         <scope>provided</scope>
637       </dependency -->
638       <dependency>
639         <groupId>org.osgi</groupId>
640         <artifactId>org.osgi.service.clusterinfo</artifactId>
641         <version>1.0.0</version>
642         <scope>provided</scope>
643       </dependency>
644       <dependency>
645         <groupId>org.osgi</groupId>
646         <artifactId>org.osgi.service.cm</artifactId>
647         <version>1.6.0</version>
648         <scope>provided</scope>
649       </dependency>
650       <dependency>
651         <groupId>org.osgi</groupId>
652         <artifactId>org.osgi.service.component</artifactId>
653         <version>1.4.0</version>
654         <scope>provided</scope>
655       </dependency>
656       <dependency>
657         <groupId>org.osgi</groupId>
658         <artifactId>org.osgi.service.component.annotations</artifactId>
659         <version>1.4.0</version>
660         <scope>provided</scope>
661       </dependency>
662       <dependency>
663         <groupId>org.osgi</groupId>
664         <artifactId>org.osgi.service.configurator</artifactId>
665         <version>1.0.0</version>
666         <scope>provided</scope>
667       </dependency>
668       <dependency>
669         <groupId>org.osgi</groupId>
670         <artifactId>org.osgi.service.coordinator</artifactId>
671         <version>1.0.2</version>
672         <scope>provided</scope>
673       </dependency>
674       <dependency>
675         <groupId>org.osgi</groupId>
676         <artifactId>org.osgi.service.deploymentadmin</artifactId>
677         <version>1.1.0</version>
678         <scope>provided</scope>
679       </dependency>
680       <dependency>
681         <groupId>org.osgi</groupId>
682         <artifactId>org.osgi.service.device</artifactId>
683         <version>1.1.0</version>
684         <scope>provided</scope>
685       </dependency>
686       <dependency>
687         <groupId>org.osgi</groupId>
688         <artifactId>org.osgi.service.dmt</artifactId>
689         <version>2.0.2</version>
690         <scope>provided</scope>
691       </dependency>
692       <dependency>
693         <groupId>org.osgi</groupId>
694         <artifactId>org.osgi.service.event</artifactId>
695         <version>1.4.0</version>
696         <scope>provided</scope>
697       </dependency>
698       <dependency>
699         <groupId>org.osgi</groupId>
700         <artifactId>org.osgi.service.http</artifactId>
701         <version>1.2.1</version>
702         <scope>provided</scope>
703       </dependency>
704       <dependency>
705         <groupId>org.osgi</groupId>
706         <artifactId>org.osgi.service.http.whiteboard</artifactId>
707         <version>1.1.0</version>
708         <scope>provided</scope>
709       </dependency>
710       <dependency>
711         <groupId>org.osgi</groupId>
712         <artifactId>org.osgi.service.io</artifactId>
713         <version>1.0.0</version>
714         <scope>provided</scope>
715       </dependency>
716       <dependency>
717         <groupId>org.osgi</groupId>
718         <artifactId>org.osgi.service.jaxrs</artifactId>
719         <version>1.0.0</version>
720         <scope>provided</scope>
721       </dependency>
722       <dependency>
723         <groupId>org.osgi</groupId>
724         <artifactId>org.osgi.service.jdbc</artifactId>
725         <version>1.0.0</version>
726         <scope>provided</scope>
727       </dependency>
728       <dependency>
729         <groupId>org.osgi</groupId>
730         <artifactId>org.osgi.service.jndi</artifactId>
731         <version>1.0.0</version>
732         <scope>provided</scope>
733       </dependency>
734       <dependency>
735         <groupId>org.osgi</groupId>
736         <artifactId>org.osgi.service.jpa</artifactId>
737         <version>1.0.0</version>
738         <scope>provided</scope>
739       </dependency>
740       <dependency>
741         <groupId>org.osgi</groupId>
742         <artifactId>org.osgi.service.log</artifactId>
743         <version>1.4.0</version>
744         <scope>provided</scope>
745       </dependency>
746       <dependency>
747         <groupId>org.osgi</groupId>
748         <artifactId>org.osgi.service.metatype</artifactId>
749         <version>1.4.0</version>
750         <scope>provided</scope>
751       </dependency>
752       <dependency>
753         <groupId>org.osgi</groupId>
754         <artifactId>org.osgi.service.metatype.annotations</artifactId>
755         <version>1.4.0</version>
756         <scope>provided</scope>
757       </dependency>
758       <dependency>
759         <groupId>org.osgi</groupId>
760         <artifactId>org.osgi.service.monitor</artifactId>
761         <version>1.0.0</version>
762         <scope>provided</scope>
763       </dependency>
764       <dependency>
765         <groupId>org.osgi</groupId>
766         <artifactId>org.osgi.service.prefs</artifactId>
767         <version>1.1.1</version>
768         <scope>provided</scope>
769       </dependency>
770       <dependency>
771         <groupId>org.osgi</groupId>
772         <artifactId>org.osgi.service.provisioning</artifactId>
773         <version>1.2.0</version>
774         <scope>provided</scope>
775       </dependency>
776       <dependency>
777         <groupId>org.osgi</groupId>
778         <artifactId>org.osgi.service.remoteserviceadmin</artifactId>
779         <version>1.1.0</version>
780         <scope>provided</scope>
781       </dependency>
782       <dependency>
783         <groupId>org.osgi</groupId>
784         <artifactId>org.osgi.service.repository</artifactId>
785         <version>1.1.0</version>
786         <scope>provided</scope>
787       </dependency>
788       <dependency>
789         <groupId>org.osgi</groupId>
790         <artifactId>org.osgi.service.rest</artifactId>
791         <version>1.0.0</version>
792         <scope>provided</scope>
793       </dependency>
794       <dependency>
795         <groupId>org.osgi</groupId>
796         <artifactId>org.osgi.service.serviceloader</artifactId>
797         <version>1.0.0</version>
798         <scope>provided</scope>
799       </dependency>
800       <dependency>
801         <groupId>org.osgi</groupId>
802         <artifactId>org.osgi.service.subsystem</artifactId>
803         <version>1.1.0</version>
804         <scope>provided</scope>
805       </dependency>
806       <dependency>
807         <groupId>org.osgi</groupId>
808         <artifactId>org.osgi.service.transaction.control</artifactId>
809         <version>1.0.0</version>
810         <scope>provided</scope>
811       </dependency>
812       <dependency>
813         <groupId>org.osgi</groupId>
814         <artifactId>org.osgi.service.upnp</artifactId>
815         <version>1.2.0</version>
816         <scope>provided</scope>
817       </dependency>
818       <dependency>
819         <groupId>org.osgi</groupId>
820         <artifactId>org.osgi.service.useradmin</artifactId>
821         <version>1.1.0</version>
822         <scope>provided</scope>
823       </dependency>
824       <dependency>
825         <groupId>org.osgi</groupId>
826         <artifactId>org.osgi.service.wireadmin</artifactId>
827         <version>1.0.1</version>
828         <scope>provided</scope>
829       </dependency>
830       <dependency>
831         <groupId>org.osgi</groupId>
832         <artifactId>org.osgi.util.converter</artifactId>
833         <version>1.0.1</version>
834         <scope>provided</scope>
835       </dependency>
836       <dependency>
837         <groupId>org.osgi</groupId>
838         <artifactId>org.osgi.util.function</artifactId>
839         <version>1.2.0</version>
840         <scope>provided</scope>
841       </dependency>
842       <dependency>
843         <groupId>org.osgi</groupId>
844         <artifactId>org.osgi.util.measurement</artifactId>
845         <version>1.0.2</version>
846         <scope>provided</scope>
847       </dependency>
848       <dependency>
849         <groupId>org.osgi</groupId>
850         <artifactId>org.osgi.util.position</artifactId>
851         <version>1.0.1</version>
852         <scope>provided</scope>
853       </dependency>
854       <dependency>
855         <groupId>org.osgi</groupId>
856         <artifactId>org.osgi.util.promise</artifactId>
857         <version>1.2.0</version>
858         <scope>provided</scope>
859       </dependency>
860       <dependency>
861         <groupId>org.osgi</groupId>
862         <artifactId>org.osgi.util.pushstream</artifactId>
863         <version>1.0.1</version>
864         <scope>provided</scope>
865       </dependency>
866       <dependency>
867         <groupId>org.osgi</groupId>
868         <artifactId>org.osgi.util.xml</artifactId>
869         <version>1.0.1</version>
870         <scope>provided</scope>
871       </dependency>
872
873       <!-- for https://jira.opendaylight.org/browse/ODLPARENT-24 -->
874       <dependency>
875         <groupId>org.apache.aries.quiesce</groupId>
876         <artifactId>org.apache.aries.quiesce.api</artifactId>
877         <version>1.0.0</version>
878       </dependency>
879
880       <!-- LMAX Disruptor -->
881       <dependency>
882         <groupId>com.lmax</groupId>
883         <artifactId>disruptor</artifactId>
884         <version>3.4.4</version>
885       </dependency>
886
887       <!-- Add Pax Exam -->
888       <dependency>
889         <groupId>org.ops4j.pax.exam</groupId>
890         <artifactId>pax-exam</artifactId>
891         <version>4.13.5</version>
892         <scope>test</scope>
893       </dependency>
894       <dependency>
895         <groupId>org.ops4j.pax.exam</groupId>
896         <artifactId>pax-exam-container-forked</artifactId>
897         <version>4.13.5</version>
898         <scope>test</scope>
899       </dependency>
900       <dependency>
901         <groupId>org.ops4j.pax.exam</groupId>
902         <artifactId>pax-exam-container-karaf</artifactId>
903         <version>4.13.5</version>
904         <scope>test</scope>
905       </dependency>
906       <dependency>
907         <groupId>org.ops4j.pax.exam</groupId>
908         <artifactId>pax-exam-container-native</artifactId>
909         <version>4.13.5</version>
910         <scope>test</scope>
911       </dependency>
912       <dependency>
913         <groupId>org.ops4j.pax.exam</groupId>
914         <artifactId>pax-exam-extender-service</artifactId>
915         <version>4.13.5</version>
916         <scope>test</scope>
917       </dependency>
918       <dependency>
919         <groupId>org.ops4j.pax.exam</groupId>
920         <artifactId>pax-exam-inject</artifactId>
921         <version>4.13.5</version>
922         <scope>test</scope>
923       </dependency>
924       <dependency>
925         <groupId>org.ops4j.pax.exam</groupId>
926         <artifactId>pax-exam-invoker-junit</artifactId>
927         <version>4.13.5</version>
928         <scope>test</scope>
929       </dependency>
930       <dependency>
931         <groupId>org.ops4j.pax.exam</groupId>
932         <artifactId>pax-exam-features</artifactId>
933         <version>4.13.5</version>
934         <type>xml</type>
935         <scope>test</scope>
936       </dependency>
937       <dependency>
938         <groupId>org.ops4j.pax.exam</groupId>
939         <artifactId>pax-exam-junit4</artifactId>
940         <version>4.13.5</version>
941         <scope>test</scope>
942       </dependency>
943       <dependency>
944         <groupId>org.ops4j.pax.exam</groupId>
945         <artifactId>pax-exam-link-mvn</artifactId>
946         <version>4.13.5</version>
947         <scope>test</scope>
948       </dependency>
949       <dependency>
950         <groupId>org.ops4j.pax.exam</groupId>
951         <artifactId>pax-exam-link-assembly</artifactId>
952         <version>4.13.5</version>
953         <scope>test</scope>
954       </dependency>
955
956       <dependency>
957         <groupId>org.ops4j.pax.url</groupId>
958         <artifactId>pax-url-link</artifactId>
959         <version>2.6.10</version>
960         <scope>test</scope>
961       </dependency>
962       <dependency>
963         <groupId>org.ops4j.pax.url</groupId>
964         <artifactId>pax-url-aether</artifactId>
965         <version>2.6.10</version>
966         <scope>test</scope>
967       </dependency>
968       <dependency>
969         <groupId>org.ops4j.pax.url</groupId>
970         <artifactId>pax-url-wrap</artifactId>
971         <version>2.6.10</version>
972       </dependency>
973
974       <dependency>
975         <groupId>org.springframework.osgi</groupId>
976         <artifactId>spring-osgi-mock</artifactId>
977         <version>1.2.1</version>
978         <scope>test</scope>
979       </dependency>
980
981       <dependency>
982         <groupId>org.xmlunit</groupId>
983         <artifactId>xmlunit-core</artifactId>
984         <version>2.8.4</version>
985         <scope>test</scope>
986       </dependency>
987       <dependency>
988         <groupId>org.xmlunit</groupId>
989         <artifactId>xmlunit-assertj</artifactId>
990         <version>2.8.4</version>
991         <scope>test</scope>
992       </dependency>
993       <dependency>
994         <groupId>org.xmlunit</groupId>
995         <artifactId>xmlunit-assertj3</artifactId>
996         <version>2.8.4</version>
997         <scope>test</scope>
998       </dependency>
999       <dependency>
1000         <groupId>org.xmlunit</groupId>
1001         <artifactId>xmlunit-matchers</artifactId>
1002         <version>2.8.4</version>
1003         <scope>test</scope>
1004       </dependency>
1005       <!-- FIXME: remove this once we have migrated over -->
1006       <dependency>
1007         <groupId>org.xmlunit</groupId>
1008         <artifactId>xmlunit-legacy</artifactId>
1009         <version>2.8.4</version>
1010         <scope>test</scope>
1011       </dependency>
1012
1013       <!-- Annotations for modernizer-maven-plugin -->
1014       <dependency>
1015         <groupId>org.gaul</groupId>
1016         <artifactId>modernizer-maven-annotations</artifactId>
1017         <!-- This should match the plugin version below -->
1018         <version>2.3.0</version>
1019         <scope>provided</scope>
1020       </dependency>
1021
1022       <dependency>
1023         <groupId>org.eclipse.jetty</groupId>
1024         <artifactId>jetty-bom</artifactId>
1025         <version>9.4.43.v20210629</version>
1026         <scope>import</scope>
1027         <type>pom</type>
1028       </dependency>
1029
1030       <dependency>
1031         <groupId>com.h2database</groupId>
1032         <artifactId>h2</artifactId>
1033         <version>1.4.200</version>
1034       </dependency>
1035
1036       <!-- Annotations -->
1037       <!-- A better alternative for javax.inject, from https://guicedee.com/ -->
1038       <dependency>
1039         <groupId>com.guicedee.services</groupId>
1040         <artifactId>javax.inject</artifactId>
1041         <version>1.0.20.0</version>
1042         <scope>provided</scope>
1043         <optional>true</optional>
1044       </dependency>
1045
1046       <!-- jung, a graph library -->
1047       <dependency>
1048         <groupId>net.sf.jung</groupId>
1049         <artifactId>jung-api</artifactId>
1050         <version>2.1.1</version>
1051       </dependency>
1052       <dependency>
1053         <groupId>net.sf.jung</groupId>
1054         <artifactId>jung-algorithms</artifactId>
1055         <version>2.1.1</version>
1056       </dependency>
1057       <dependency>
1058         <groupId>net.sf.jung</groupId>
1059         <artifactId>jung-graph-impl</artifactId>
1060         <version>2.1.1</version>
1061       </dependency>
1062
1063       <!-- ThreeTen-Extra, date/time complements -->
1064       <dependency>
1065         <groupId>org.threeten</groupId>
1066         <artifactId>threeten-extra</artifactId>
1067         <version>1.7.0</version>
1068       </dependency>
1069
1070       <!-- When updating this version, consider antl4-maven-plugin below -->
1071       <dependency>
1072         <groupId>org.antlr</groupId>
1073         <artifactId>antlr4-runtime</artifactId>
1074         <version>4.9.3</version>
1075       </dependency>
1076
1077       <!-- TrieMap library -->
1078       <dependency>
1079         <groupId>tech.pantheon.triemap</groupId>
1080         <artifactId>bom</artifactId>
1081         <version>1.2.0</version>
1082         <scope>import</scope>
1083         <type>pom</type>
1084       </dependency>
1085
1086       <!-- Dropwizard metrics -->
1087       <dependency>
1088         <groupId>io.dropwizard.metrics</groupId>
1089         <artifactId>metrics-bom</artifactId>
1090         <version>4.2.7</version>
1091         <scope>import</scope>
1092         <type>pom</type>
1093       </dependency>
1094
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>org.junit.jupiter</groupId>
1155       <artifactId>junit-jupiter-api</artifactId>
1156       <scope>test</scope>
1157     </dependency>
1158     <dependency>
1159       <groupId>junit</groupId>
1160       <artifactId>junit</artifactId>
1161       <scope>test</scope>
1162     </dependency>
1163     <dependency>
1164       <groupId>org.junit.jupiter</groupId>
1165       <artifactId>junit-jupiter-engine</artifactId>
1166       <scope>test</scope>
1167     </dependency>
1168     <dependency>
1169       <groupId>org.junit.vintage</groupId>
1170       <artifactId>junit-vintage-engine</artifactId>
1171       <scope>test</scope>
1172     </dependency>
1173     <dependency>
1174       <groupId>org.mockito</groupId>
1175       <artifactId>mockito-core</artifactId>
1176       <scope>test</scope>
1177     </dependency>
1178   </dependencies>
1179
1180   <build>
1181     <pluginManagement>
1182       <plugins>
1183         <!-- Official maven plugins, alpha-sorted by artifactId.
1184              We do not need to specify the groupId. -->
1185         <plugin>
1186           <artifactId>maven-checkstyle-plugin</artifactId>
1187           <version>3.1.2</version>
1188           <dependencies>
1189             <dependency>
1190               <groupId>com.puppycrawl.tools</groupId>
1191               <artifactId>checkstyle</artifactId>
1192               <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
1193               <version>9.2.1</version>
1194             </dependency>
1195             <dependency>
1196               <groupId>org.opendaylight.odlparent</groupId>
1197               <artifactId>checkstyle</artifactId>
1198               <version>10.0.0-SNAPSHOT</version>
1199             </dependency>
1200             <dependency>
1201               <groupId>com.github.sevntu-checkstyle</groupId>
1202               <artifactId>sevntu-checks</artifactId>
1203               <version>1.40.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</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               <configuration>
1258                 <failOnViolation>${odlparent.checkstyle.enforce}</failOnViolation>
1259                 <skip>${odlparent.checkstyle.skip}</skip>
1260                 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
1261               </configuration>
1262             </execution>
1263           </executions>
1264         </plugin>
1265         <plugin>
1266           <artifactId>maven-compiler-plugin</artifactId>
1267           <configuration>
1268             <showWarnings>true</showWarnings>
1269             <compilerArgs>
1270               <arg>-parameters</arg>
1271               <arg>-Xlint:all</arg>
1272               <!-- Disable 'No processor claimed any of these annotations' -->
1273               <arg>-Xlint:-processing</arg>
1274             </compilerArgs>
1275             <annotationProcessorPaths>
1276               <dependency>
1277                 <groupId>org.immutables</groupId>
1278                 <artifactId>value</artifactId>
1279                 <!-- Keep this version in sync with dependency declaration above -->
1280                 <version>2.8.8</version>
1281               </dependency>
1282               <dependency>
1283                 <groupId>org.kohsuke.metainf-services</groupId>
1284                 <artifactId>metainf-services</artifactId>
1285                 <!-- Keep this version in sync with dependency declaration above -->
1286                 <version>1.8</version>
1287               </dependency>
1288             </annotationProcessorPaths>
1289           </configuration>
1290         </plugin>
1291         <plugin>
1292           <artifactId>maven-failsafe-plugin</artifactId>
1293           <version>2.22.2</version>
1294         </plugin>
1295         <plugin>
1296           <artifactId>maven-invoker-plugin</artifactId>
1297           <version>3.2.2</version>
1298         </plugin>
1299         <plugin>
1300           <artifactId>maven-dependency-plugin</artifactId>
1301           <executions>
1302             <execution>
1303               <id>unpack-license</id>
1304               <phase>generate-resources</phase>
1305               <goals>
1306                 <goal>copy</goal>
1307               </goals>
1308               <configuration>
1309                 <artifactItems>
1310                   <artifactItem>
1311                     <groupId>org.opendaylight.odlparent</groupId>
1312                     <artifactId>odl-license</artifactId>
1313                     <version>10.0.0-SNAPSHOT</version>
1314                     <type>license</type>
1315                     <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1316                     <destFileName>LICENSE</destFileName>
1317                     <overWrite>false</overWrite>
1318                   </artifactItem>
1319                 </artifactItems>
1320                 <silent>true</silent>
1321               </configuration>
1322             </execution>
1323             <execution>
1324               <id>analyze-declarations</id>
1325               <goals>
1326                 <goal>analyze-only</goal>
1327               </goals>
1328               <configuration>
1329                 <failOnWarning>${odlparent.dependency.enforce}</failOnWarning>
1330                 <ignoreNonCompile>true</ignoreNonCompile>
1331                 <skip>${odlparent.dependency.skip}</skip>
1332               </configuration>
1333             </execution>
1334           </executions>
1335         </plugin>
1336
1337         <plugin>
1338           <artifactId>maven-plugin-plugin</artifactId>
1339           <version>3.6.2</version>
1340         </plugin>
1341
1342         <plugin>
1343           <artifactId>maven-remote-resources-plugin</artifactId>
1344           <version>1.7.0</version>
1345         </plugin>
1346         <plugin>
1347           <artifactId>maven-shade-plugin</artifactId>
1348           <version>3.2.4</version>
1349         </plugin>
1350         <plugin>
1351           <artifactId>maven-source-plugin</artifactId>
1352           <version>3.2.1</version>
1353           <executions>
1354             <execution>
1355               <id>attach-sources</id>
1356               <phase>verify</phase>
1357               <goals>
1358                 <goal>jar-no-fork</goal>
1359               </goals>
1360             </execution>
1361           </executions>
1362         </plugin>
1363         <plugin>
1364           <artifactId>maven-surefire-plugin</artifactId>
1365           <version>2.22.2</version>
1366           <configuration>
1367             <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1368             <trimStackTrace>false</trimStackTrace>
1369           </configuration>
1370         </plugin>
1371
1372         <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1373         <plugin>
1374           <groupId>org.basepom.maven</groupId>
1375           <artifactId>duplicate-finder-maven-plugin</artifactId>
1376           <version>1.5.0</version>
1377         </plugin>
1378
1379         <plugin>
1380           <groupId>com.github.ekryd.echo-maven-plugin</groupId>
1381           <artifactId>echo-maven-plugin</artifactId>
1382           <version>1.3.2</version>
1383         </plugin>
1384
1385         <plugin>
1386           <groupId>org.apache.felix</groupId>
1387           <artifactId>maven-bundle-plugin</artifactId>
1388           <version>5.1.3</version>
1389           <extensions>true</extensions>
1390           <configuration>
1391             <instructions>
1392               <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1393                    so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1394                    and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present.  -->
1395               <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>
1396
1397               <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1398                    to generate Import-Service and Export-Service headers. -->
1399               <_removeheaders>Import-Service,Export-Service</_removeheaders>
1400             </instructions>
1401           </configuration>
1402         </plugin>
1403
1404         <plugin>
1405           <groupId>org.apache.karaf.tooling</groupId>
1406           <artifactId>karaf-maven-plugin</artifactId>
1407           <version>${karaf.version}</version>
1408           <extensions>true</extensions>
1409         </plugin>
1410
1411         <plugin>
1412           <groupId>org.apache.servicemix.tooling</groupId>
1413           <artifactId>depends-maven-plugin</artifactId>
1414           <version>1.4.0</version>
1415           <executions>
1416             <execution>
1417               <id>generate-depends-file</id>
1418               <goals>
1419                 <goal>generate-depends-file</goal>
1420               </goals>
1421             </execution>
1422           </executions>
1423         </plugin>
1424
1425         <plugin>
1426           <groupId>com.webcohesion.enunciate</groupId>
1427           <artifactId>enunciate-maven-plugin</artifactId>
1428           <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1429           <version>2.13.3</version>
1430         </plugin>
1431
1432         <plugin>
1433           <groupId>org.gaul</groupId>
1434           <artifactId>modernizer-maven-plugin</artifactId>
1435           <version>2.3.0</version>
1436           <configuration>
1437             <javaVersion>${odlparent.modernizer.target}</javaVersion>
1438             <failOnViolations>${odlparent.modernizer.enforce}</failOnViolations>
1439             <skip>${odlparent.modernizer.skip}</skip>
1440
1441             <exclusionPatterns>
1442               <!-- We are using Guava as per normal and we have grown a large body of code
1443                    around the patterns there. Furthermore the suggested replacements have
1444                    different behavior, hence we do NOT want to blindly migrate. Examples
1445                    include:
1446
1447                    - ImmutableCollection et al. are not just implementation details, they
1448                      form an API contract
1449                    - ImmutableMap/ImmutableSet retain iteration order, whereas their
1450                      Map.of()/Set.of() counterparts have unstable iteration order (by design)
1451                    - Iterables, which we are widely use for efficient discovery of when
1452                      the Iterable is actually a Collection
1453               -->
1454               <exclusionPattern>com/google/common/collect/Immutable.*</exclusionPattern>
1455               <exclusionPattern>com/google/common/collect/Iterables.*</exclusionPattern>
1456             </exclusionPatterns>
1457           </configuration>
1458
1459           <executions>
1460             <execution>
1461               <id>modernizer</id>
1462               <phase>verify</phase>
1463               <goals>
1464                 <goal>modernizer</goal>
1465               </goals>
1466             </execution>
1467           </executions>
1468         </plugin>
1469
1470         <plugin>
1471           <groupId>org.apache.karaf.tooling</groupId>
1472           <artifactId>karaf-services-maven-plugin</artifactId>
1473           <version>${karaf.version}</version>
1474           <executions>
1475             <execution>
1476               <id>service-metadata-generate</id>
1477               <phase>process-classes</phase>
1478               <goals>
1479                 <goal>service-metadata-generate</goal>
1480               </goals>
1481             </execution>
1482           </executions>
1483         </plugin>
1484
1485         <plugin>
1486           <groupId>com.github.spotbugs</groupId>
1487           <artifactId>spotbugs-maven-plugin</artifactId>
1488           <version>3.1.12.2</version>
1489           <dependencies>
1490             <dependency>
1491               <groupId>com.github.spotbugs</groupId>
1492               <artifactId>spotbugs</artifactId>
1493               <version>3.1.12</version>
1494             </dependency>
1495             <dependency>
1496               <groupId>org.opendaylight.odlparent</groupId>
1497               <artifactId>spotbugs</artifactId>
1498               <version>10.0.0-SNAPSHOT</version>
1499             </dependency>
1500             <dependency>
1501               <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 -->
1502               <groupId>org.slf4j</groupId>
1503               <artifactId>slf4j-simple</artifactId>
1504               <version>1.8.0-beta2</version>
1505             </dependency>
1506           </dependencies>
1507           <configuration>
1508             <plugins>
1509               <plugin>
1510                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1511                 <artifactId>bug-pattern</artifactId>
1512                 <version>1.5.0</version>
1513               </plugin>
1514             </plugins>
1515             <!--
1516               Enables analysis which takes more memory but finds more bugs.
1517               If you run out of memory, changes the value of the effort element
1518               to 'Low'.
1519             -->
1520             <effort>Max</effort>
1521             <!-- Reports all bugs (other values are medium and max) -->
1522             <threshold>Low</threshold>
1523             <!-- Build doesn't fail if problems are found -->
1524             <failOnError>${odlparent.spotbugs.enforce}</failOnError>
1525             <skip>${odlparent.spotbugs.skip}</skip>
1526             <!-- References the excluded rules -->
1527             <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1528             <!-- Produces XML report -->
1529             <xmlOutput>true</xmlOutput>
1530             <!-- Configures the directory in which the XML report is created -->
1531             <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1532           </configuration>
1533           <executions>
1534             <!--
1535               Ensures that SpotBugs inspects source code when project is compiled.
1536             -->
1537             <execution>
1538               <id>analyze-compile</id>
1539               <phase>compile</phase>
1540               <goals>
1541                 <goal>check</goal>
1542               </goals>
1543             </execution>
1544           </executions>
1545         </plugin>
1546         <plugin>
1547           <groupId>org.codehaus.mojo</groupId>
1548           <artifactId>properties-maven-plugin</artifactId>
1549           <version>1.0.0</version>
1550         </plugin>
1551         <plugin>
1552           <groupId>org.eclipse.m2e</groupId>
1553           <artifactId>lifecycle-mapping</artifactId>
1554           <version>1.0.0</version>
1555           <configuration>
1556             <lifecycleMappingMetadata>
1557               <pluginExecutions>
1558                 <pluginExecution>
1559                   <pluginExecutionFilter>
1560                     <groupId>org.apache.felix</groupId>
1561                     <artifactId>maven-bundle-plugin</artifactId>
1562                     <versionRange>[1.0,)</versionRange>
1563                     <goals>
1564                       <goal>manifest</goal>
1565                     </goals>
1566                   </pluginExecutionFilter>
1567                   <action>
1568                     <execute/>
1569                   </action>
1570                 </pluginExecution>
1571                 <pluginExecution>
1572                   <pluginExecutionFilter>
1573                     <groupId>org.apache.maven.plugins</groupId>
1574                     <artifactId>maven-enforcer-plugin</artifactId>
1575                     <versionRange>[1.0.0,)</versionRange>
1576                     <goals>
1577                       <goal>enforce</goal>
1578                     </goals>
1579                   </pluginExecutionFilter>
1580                   <action>
1581                     <ignore/>
1582                   </action>
1583                 </pluginExecution>
1584                 <pluginExecution>
1585                   <pluginExecutionFilter>
1586                     <groupId>org.apache.maven.plugins</groupId>
1587                     <artifactId>maven-dependency-plugin</artifactId>
1588                     <versionRange>[2.10,)</versionRange>
1589                     <goals>
1590                       <goal>copy</goal>
1591                     </goals>
1592                   </pluginExecutionFilter>
1593                   <action>
1594                     <ignore/>
1595                   </action>
1596                 </pluginExecution>
1597                 <!-- The plugin will eventually be removed, remove this too at that point -->
1598                 <pluginExecution>
1599                   <pluginExecutionFilter>
1600                     <groupId>org.apache.maven.plugins</groupId>
1601                     <artifactId>maven-antrun-plugin</artifactId>
1602                     <versionRange>[1.8,)</versionRange>
1603                     <goals>
1604                       <goal>run</goal>
1605                     </goals>
1606                   </pluginExecutionFilter>
1607                   <action>
1608                     <ignore/>
1609                   </action>
1610                 </pluginExecution>
1611                 <pluginExecution>
1612                   <pluginExecutionFilter>
1613                     <groupId>org.apache.servicemix.tooling</groupId>
1614                     <artifactId>depends-maven-plugin</artifactId>
1615                     <versionRange>[1.2,)</versionRange>
1616                     <goals>
1617                       <goal>generate-depends-file</goal>
1618                     </goals>
1619                   </pluginExecutionFilter>
1620                   <action>
1621                     <execute/>
1622                   </action>
1623                 </pluginExecution>
1624                 <pluginExecution>
1625                   <pluginExecutionFilter>
1626                     <groupId>org.jacoco</groupId>
1627                     <artifactId>jacoco-maven-plugin</artifactId>
1628                     <versionRange>[0.7.0,)</versionRange>
1629                     <goals>
1630                       <goal>prepare-agent</goal>
1631                     </goals>
1632                   </pluginExecutionFilter>
1633                   <action>
1634                     <ignore/>
1635                   </action>
1636                 </pluginExecution>
1637
1638                 <pluginExecution>
1639                   <pluginExecutionFilter>
1640                     <groupId>org.ops4j.pax.exam</groupId>
1641                     <artifactId>maven-paxexam-plugin</artifactId>
1642                     <versionRange>[1.2.4,)</versionRange>
1643                     <goals>
1644                       <goal>generate-depends-file</goal>
1645                     </goals>
1646                   </pluginExecutionFilter>
1647                   <action>
1648                     <ignore/>
1649                   </action>
1650                 </pluginExecution>
1651
1652                 <pluginExecution>
1653                   <pluginExecutionFilter>
1654                     <groupId>org.basepom.maven</groupId>
1655                     <artifactId>
1656                       duplicate-finder-maven-plugin
1657                     </artifactId>
1658                     <versionRange>[1.2.1,)</versionRange>
1659                     <goals>
1660                       <goal>check</goal>
1661                     </goals>
1662                   </pluginExecutionFilter>
1663                   <action>
1664                     <ignore></ignore>
1665                   </action>
1666                 </pluginExecution>
1667               </pluginExecutions>
1668             </lifecycleMappingMetadata>
1669           </configuration>
1670         </plugin>
1671
1672         <plugin>
1673           <groupId>org.jacoco</groupId>
1674           <artifactId>jacoco-maven-plugin</artifactId>
1675           <configuration>
1676             <!-- Note: This exclusion list should match <sonar.exclusions>
1677                        property above -->
1678             <excludes>
1679               <exclude>**/gen/**</exclude>
1680               <exclude>**/generated-sources/**</exclude>
1681               <exclude>**/generated-test-sources/**</exclude>
1682               <exclude>**/yang-gen/**</exclude>
1683               <exclude>**/yang-gen-config/**</exclude>
1684               <exclude>**/yang-gen-sal/**</exclude>
1685               <exclude>**/yang-gen-code/**</exclude>
1686               <exclude>**/pax/**</exclude>
1687             </excludes>
1688           </configuration>
1689         </plugin>
1690
1691         <plugin>
1692           <groupId>org.ops4j.pax.exam</groupId>
1693           <artifactId>maven-paxexam-plugin</artifactId>
1694           <version>1.2.4</version>
1695         </plugin>
1696
1697         <!-- When updating this version, consider antl4-runtime above -->
1698         <plugin>
1699           <groupId>org.antlr</groupId>
1700           <artifactId>antlr4-maven-plugin</artifactId>
1701           <version>4.9.3</version>
1702         </plugin>
1703       </plugins>
1704     </pluginManagement>
1705
1706     <plugins>
1707       <plugin>
1708         <artifactId>maven-enforcer-plugin</artifactId>
1709         <executions>
1710           <execution>
1711             <id>enforce-banned-dependencies</id>
1712             <goals>
1713               <goal>enforce</goal>
1714             </goals>
1715             <configuration>
1716               <rules>
1717                 <bannedDependencies>
1718                   <message>Please always use mockito-core instead of mockito-all (see https://jira.opendaylight.org/browse/ODLPARENT-59), and spotbugs:annotations instead of findbugs:annotations</message>
1719                   <excludes>
1720                     <exclude>org.mockito:mockito-all</exclude>
1721                     <exclude>com.google.code.findbugs:annotations</exclude>
1722                   </excludes>
1723                 </bannedDependencies>
1724               </rules>
1725               <fail>true</fail>
1726             </configuration>
1727           </execution>
1728         </executions>
1729       </plugin>
1730       <plugin>
1731         <groupId>org.basepom.maven</groupId>
1732         <artifactId>duplicate-finder-maven-plugin</artifactId>
1733         <executions>
1734           <execution>
1735             <id>find-duplicate-classpath-entries</id>
1736             <phase>verify</phase>
1737             <goals>
1738               <goal>check</goal>
1739             </goals>
1740           </execution>
1741         </executions>
1742         <configuration>
1743             <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1744             <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1745             <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1746             <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1747             <printEqualFiles>false</printEqualFiles>
1748             <quiet>true</quiet>
1749             <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1750                  as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1751                  we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1752                  also ignore: -->
1753             <ignoredResourcePatterns>
1754               <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1755               <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1756               <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1757               <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1758               <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1759               <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1760               <ignoredResourcePattern>.api_description</ignoredResourcePattern>
1761             </ignoredResourcePatterns>
1762             <ignoredDependencies>
1763               <ignoredDependency>
1764                 <groupId>org.slf4j</groupId>
1765                 <artifactId>slf4j-simple</artifactId>
1766               </ignoredDependency>
1767               <ignoredDependency>
1768                 <groupId>org.opendaylight.odlparent</groupId>
1769                 <artifactId>opendaylight-karaf-empty</artifactId>
1770               </ignoredDependency>
1771             </ignoredDependencies>
1772         </configuration>
1773       </plugin>
1774       <plugin>
1775         <artifactId>maven-dependency-plugin</artifactId>
1776       </plugin>
1777       <plugin>
1778         <artifactId>maven-checkstyle-plugin</artifactId>
1779       </plugin>
1780       <plugin>
1781         <artifactId>maven-source-plugin</artifactId>
1782       </plugin>
1783       <plugin>
1784         <artifactId>maven-javadoc-plugin</artifactId>
1785       </plugin>
1786       <plugin>
1787         <groupId>org.gaul</groupId>
1788         <artifactId>modernizer-maven-plugin</artifactId>
1789       </plugin>
1790       <plugin>
1791         <groupId>com.github.spotbugs</groupId>
1792         <artifactId>spotbugs-maven-plugin</artifactId>
1793       </plugin>
1794
1795       <!-- Jacoco / Sonar -->
1796       <plugin>
1797         <groupId>org.jacoco</groupId>
1798         <artifactId>jacoco-maven-plugin</artifactId>
1799         <executions>
1800           <execution>
1801             <id>pre-unit-test</id>
1802             <goals>
1803               <goal>prepare-agent</goal>
1804             </goals>
1805           </execution>
1806           <execution>
1807             <id>report</id>
1808             <goals>
1809               <goal>report</goal>
1810             </goals>
1811           </execution>
1812         </executions>
1813       </plugin>
1814
1815       <plugin>
1816         <groupId>org.opendaylight.odlparent</groupId>
1817         <artifactId>copy-files-plugin</artifactId>
1818         <version>10.0.0-SNAPSHOT</version>
1819         <executions>
1820           <execution>
1821             <phase>prepare-package</phase>
1822             <goals>
1823               <goal>copy-files</goal>
1824             </goals>
1825             <configuration>
1826               <globs>
1827                 <glob>README*</glob>
1828                 <glob>CONTRIBUTING*</glob>
1829                 <glob>PROJECT_INFO.yaml</glob>
1830               </globs>
1831             </configuration>
1832           </execution>
1833         </executions>
1834       </plugin>
1835     </plugins>
1836   </build>
1837
1838   <profiles>
1839     <profile>
1840       <id>disable-spotbugs</id>
1841       <activation>
1842         <!-- Current spotbugs does not support JDK15+ -->
1843         <jdk>[15,)</jdk>
1844       </activation>
1845
1846       <properties>
1847         <odlparent.spotbugs.skip>true</odlparent.spotbugs.skip>
1848       </properties>
1849
1850       <build>
1851         <plugins>
1852           <plugin>
1853             <groupId>com.github.ekryd.echo-maven-plugin</groupId>
1854             <artifactId>echo-maven-plugin</artifactId>
1855             <executions>
1856               <execution>
1857                 <id>UNTESTED-JDK</id>
1858                 <goals>
1859                   <goal>echo</goal>
1860                 </goals>
1861                 <phase>test</phase>
1862                 <configuration>
1863                   <message>Running on JDK newer than 11, which is not supported. Skipping SpotBugs execution.</message>
1864                 </configuration>
1865               </execution>
1866             </executions>
1867           </plugin>
1868         </plugins>
1869       </build>
1870     </profile>
1871   </profiles>
1872
1873   <reporting>
1874     <plugins>
1875       <plugin>
1876         <artifactId>maven-checkstyle-plugin</artifactId>
1877         <version>3.1.0</version>
1878       </plugin>
1879
1880       <!-- FIXME: activate this
1881       <plugin>
1882         <artifactId>maven-project-info-reports-plugin</artifactId>
1883       </plugin-->
1884       <plugin>
1885         <groupId>org.codehaus.mojo</groupId>
1886         <artifactId>jdepend-maven-plugin</artifactId>
1887         <reportSets>
1888           <reportSet>
1889             <reports>
1890               <report>generate-no-fork</report>
1891             </reports>
1892           </reportSet>
1893         </reportSets>
1894       </plugin>
1895     </plugins>
1896   </reporting>
1897 </project>
1898