Bump Karaf to 4.4.6
[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>13.1.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.4.6</karaf.version>
42
43     <!-- Supporting Libraries -->
44     <!-- Only used internally -->
45     <bouncycastle.version>1.77</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>5.14.0.18788</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.17</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     <!-- Do not for a new JVM for spotbugs execution -->
86     <spotbugs.fork>false</spotbugs.fork>
87
88     <!-- Opt-in into maven-dependency-plugin dependency declaration consistency
89          enforcement. Defaults to false. Set to 'true' in pom.xml of a project which
90          desires to have the consistency of its dependencies checked and enforced. -->
91     <odlparent.dependency.enforce>false</odlparent.dependency.enforce>
92
93     <!-- Opt-out from maven-dependency-plugin dependency declaration consistency
94          checking. Defaults to false. Set to 'true' in pom.xml of a project which
95          desires to not check the consistency of its dependencies. -->
96     <odlparent.dependency.skip>false</odlparent.dependency.skip>
97   </properties>
98
99   <dependencyManagement>
100     <dependencies>
101
102       <dependency>
103         <groupId>org.opendaylight.odlparent</groupId>
104         <artifactId>odlparent-artifacts</artifactId>
105         <version>13.1.0-SNAPSHOT</version>
106         <scope>import</scope>
107         <type>pom</type>
108       </dependency>
109
110       <!-- We import the Karaf BOM to ensure we converge by default on the versions used there -->
111       <dependency>
112         <groupId>org.apache.karaf</groupId>
113         <artifactId>karaf-bom</artifactId>
114         <version>${karaf.version}</version>
115         <scope>import</scope>
116         <type>pom</type>
117       </dependency>
118
119       <!-- Build tool dependencies (normally not here in <dependencies>,
120            but in a <dependency> in <pluginManagement> but for Checkstyle this
121            is required so that we can share the same version of Checkstyle
122            for both the Maven plugin below as well as  for custom Checkstyle
123            check rule projects, such as yangtools' checkstyle-logging) -->
124       <dependency>
125         <groupId>com.puppycrawl.tools</groupId>
126         <artifactId>checkstyle</artifactId>
127         <!-- This should match the plugin management on maven-checkstyle-plugin below -->
128         <version>10.15.0</version>
129       </dependency>
130
131       <!-- Testing Dependencies -->
132       <!-- JUnit, Hamcrest and Mockito need to be kept in sync -->
133       <dependency>
134         <groupId>org.junit</groupId>
135         <artifactId>junit-bom</artifactId>
136         <version>5.10.2</version>
137         <type>pom</type>
138         <scope>import</scope>
139       </dependency>
140       <dependency>
141         <groupId>org.mockito</groupId>
142         <artifactId>mockito-bom</artifactId>
143         <version>5.11.0</version>
144         <type>pom</type>
145         <scope>import</scope>
146       </dependency>
147       <dependency>
148         <groupId>junit</groupId>
149         <artifactId>junit</artifactId>
150         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
151         <version>4.13.2</version>
152         <scope>test</scope>
153       </dependency>
154       <dependency>
155         <groupId>org.hamcrest</groupId>
156         <artifactId>hamcrest</artifactId>
157         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
158         <version>2.2</version>
159         <scope>test</scope>
160       </dependency>
161       <dependency>
162         <groupId>org.hamcrest</groupId>
163         <artifactId>hamcrest-core</artifactId>
164         <version>2.2</version>
165         <scope>test</scope>
166       </dependency>
167       <dependency>
168         <groupId>org.hamcrest</groupId>
169         <artifactId>hamcrest-library</artifactId>
170         <version>2.2</version>
171         <scope>test</scope>
172       </dependency>
173       <dependency>
174         <groupId>org.awaitility</groupId>
175         <artifactId>awaitility</artifactId>
176         <version>4.2.1</version>
177         <scope>test</scope>
178       </dependency>
179
180       <!--
181            Annotation Processors
182        -->
183       <dependency>
184         <!-- Generates immutable implementations, builders, the works -->
185         <groupId>org.immutables</groupId>
186         <artifactId>value</artifactId>
187         <classifier>annotations</classifier>
188         <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
189         <version>2.10.1</version>
190         <optional>true</optional>
191       </dependency>
192
193       <dependency>
194         <!-- Generates META-INF/services entries for ServiceLoader -->
195         <groupId>org.kohsuke.metainf-services</groupId>
196         <artifactId>metainf-services</artifactId>
197         <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
198         <version>1.11</version>
199         <optional>true</optional>
200         <scope>provided</scope>
201       </dependency>
202
203       <!--
204            Supporting Libraries
205        -->
206       <dependency>
207         <groupId>ch.qos.logback</groupId>
208         <artifactId>logback-core</artifactId>
209         <version>1.2.13</version>
210       </dependency>
211       <dependency>
212         <groupId>ch.qos.logback</groupId>
213         <artifactId>logback-classic</artifactId>
214         <version>1.2.13</version>
215       </dependency>
216
217       <!-- log4j2 -->
218       <dependency>
219         <groupId>org.apache.logging.log4j</groupId>
220         <artifactId>log4j-bom</artifactId>
221         <version>2.17.2</version>
222         <scope>import</scope>
223         <type>pom</type>
224       </dependency>
225
226       <dependency>
227         <groupId>com.google.guava</groupId>
228         <artifactId>guava</artifactId>
229         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
230         <version>32.1.3-jre</version>
231         <exclusions>
232           <exclusion>
233             <!-- Do not leak JSR305 onto the classpath by default -->
234             <groupId>com.google.code.findbugs</groupId>
235             <artifactId>jsr305</artifactId>
236           </exclusion>
237         </exclusions>
238       </dependency>
239       <dependency>
240         <groupId>com.google.guava</groupId>
241         <artifactId>guava-testlib</artifactId>
242         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
243         <version>32.1.3-jre</version>
244         <scope>test</scope>
245         <exclusions>
246           <exclusion>
247             <!-- Do not leak JSR305 onto the classpath by default -->
248             <groupId>com.google.code.findbugs</groupId>
249             <artifactId>jsr305</artifactId>
250           </exclusion>
251         </exclusions>
252       </dependency>
253       <dependency>
254         <groupId>org.checkerframework</groupId>
255         <artifactId>checker-qual</artifactId>
256         <version>3.42.0</version>
257       </dependency>
258       <dependency>
259         <groupId>com.google.errorprone</groupId>
260         <artifactId>error_prone_annotations</artifactId>
261         <version>2.26.1</version>
262       </dependency>
263
264       <dependency>
265         <groupId>commons-beanutils</groupId>
266         <artifactId>commons-beanutils</artifactId>
267         <version>1.9.4</version>
268       </dependency>
269       <dependency>
270         <groupId>org.apache.commons</groupId>
271         <artifactId>commons-lang3</artifactId>
272         <version>3.14.0</version>
273       </dependency>
274       <dependency>
275         <groupId>org.apache.commons</groupId>
276         <artifactId>commons-text</artifactId>
277         <version>1.11.0</version>
278       </dependency>
279
280       <!-- Jersey for JAXRS -->
281       <dependency>
282         <groupId>jakarta.ws.rs</groupId>
283         <artifactId>jakarta.ws.rs-api</artifactId>
284         <version>2.1.6</version>
285       </dependency>
286       <dependency>
287         <groupId>org.glassfish.jersey</groupId>
288         <artifactId>jersey-bom</artifactId>
289         <version>2.42</version>
290         <type>pom</type>
291         <scope>import</scope>
292       </dependency>
293
294       <dependency>
295         <groupId>xml-apis</groupId>
296         <artifactId>xml-apis</artifactId>
297         <version>1.4.01</version>
298       </dependency>
299
300       <!-- Plugin integration -->
301       <dependency>
302         <groupId>net.java.dev.stax-utils</groupId>
303         <artifactId>stax-utils</artifactId>
304         <version>20070216</version>
305         <exclusions>
306           <exclusion>
307             <!-- JSR173 ships with JRE by default -->
308             <groupId>com.bea.xml</groupId>
309             <artifactId>jsr173-ri</artifactId>
310           </exclusion>
311         </exclusions>
312       </dependency>
313       <dependency>
314         <groupId>org.sonatype.plexus</groupId>
315         <artifactId>plexus-build-api</artifactId>
316         <version>0.0.7</version>
317       </dependency>
318       <dependency>
319         <groupId>org.codehaus.plexus</groupId>
320         <artifactId>plexus-slf4j-logging</artifactId>
321         <version>1.1</version>
322       </dependency>
323
324       <!-- These three need to be consistent:
325         jackson-2.16.2 needs woodstox-6.6.0+
326         woodstox-5.3+ needs stax2-api-4.2.x
327         -->
328       <dependency>
329         <groupId>org.codehaus.woodstox</groupId>
330         <artifactId>stax2-api</artifactId>
331         <version>4.2.2</version>
332       </dependency>
333       <dependency>
334         <groupId>com.fasterxml.woodstox</groupId>
335         <artifactId>woodstox-core</artifactId>
336         <version>6.6.2</version>
337       </dependency>
338       <dependency>
339         <groupId>com.fasterxml.jackson</groupId>
340         <artifactId>jackson-bom</artifactId>
341         <version>2.16.2</version>
342         <scope>import</scope>
343         <type>pom</type>
344       </dependency>
345
346       <dependency>
347         <groupId>com.github.spotbugs</groupId>
348         <artifactId>spotbugs-annotations</artifactId>
349         <version>4.8.3</version>
350         <!-- Contains retention=RUNTIME annotations, which are not really needed -->
351         <optional>true</optional>
352         <exclusions>
353           <exclusion>
354             <groupId>com.google.code.findbugs</groupId>
355             <artifactId>jsr305</artifactId>
356           </exclusion>
357         </exclusions>
358       </dependency>
359
360       <dependency>
361         <groupId>org.eclipse.jdt</groupId>
362         <artifactId>org.eclipse.jdt.annotation</artifactId>
363         <version>2.3.0</version>
364       </dependency>
365       <dependency>
366         <groupId>com.google.code.gson</groupId>
367         <artifactId>gson</artifactId>
368         <version>2.10.1</version>
369       </dependency>
370       <dependency>
371         <groupId>commons-io</groupId>
372         <artifactId>commons-io</artifactId>
373         <version>2.16.0</version>
374       </dependency>
375
376       <!-- Netty -->
377       <dependency>
378         <groupId>io.netty</groupId>
379         <artifactId>netty-bom</artifactId>
380         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
381         <version>4.1.108.Final</version>
382         <type>pom</type>
383         <scope>import</scope>
384       </dependency>
385
386       <dependency>
387         <groupId>org.bouncycastle</groupId>
388         <artifactId>bcpkix-jdk18on</artifactId>
389         <version>${bouncycastle.version}</version>
390       </dependency>
391       <dependency>
392         <groupId>org.bouncycastle</groupId>
393         <artifactId>bcprov-jdk18on</artifactId>
394         <version>${bouncycastle.version}</version>
395       </dependency>
396       <dependency>
397         <groupId>org.bouncycastle</groupId>
398         <artifactId>bcprov-ext-jdk18on</artifactId>
399         <version>${bouncycastle.version}</version>
400       </dependency>
401       <dependency>
402         <groupId>org.bouncycastle</groupId>
403         <artifactId>bcutil-jdk18on</artifactId>
404         <version>${bouncycastle.version}</version>
405       </dependency>
406
407       <dependency>
408         <groupId>org.javassist</groupId>
409         <artifactId>javassist</artifactId>
410         <version>3.30.2-GA</version>
411       </dependency>
412       <dependency>
413         <groupId>org.jboss.spec.javax.transaction</groupId>
414         <artifactId>jboss-transaction-api_1.1_spec</artifactId>
415         <version>1.0.1.Final</version>
416       </dependency>
417       <dependency>
418         <groupId>org.jolokia</groupId>
419         <artifactId>jolokia-osgi</artifactId>
420         <version>1.7.2</version>
421       </dependency>
422
423       <!-- OSGi Release 8 artifacts we support, augmenting Karaf's BOM -->
424       <dependency>
425         <groupId>org.osgi</groupId>
426         <artifactId>org.osgi.annotation.bundle</artifactId>
427         <version>1.1.0</version>
428         <scope>provided</scope>
429       </dependency>
430       <dependency>
431         <groupId>org.osgi</groupId>
432         <artifactId>org.osgi.annotation.versioning</artifactId>
433         <version>1.1.2</version>
434         <scope>provided</scope>
435       </dependency>
436       <dependency>
437         <groupId>org.osgi</groupId>
438         <artifactId>org.osgi.framework</artifactId>
439         <version>1.10.0</version>
440         <scope>provided</scope>
441       </dependency>
442       <dependency>
443         <groupId>org.osgi</groupId>
444         <artifactId>org.osgi.service.component.annotations</artifactId>
445         <version>1.5.1</version>
446         <scope>provided</scope>
447         <exclusions>
448           <!-- Causes class path duplicates -->
449           <exclusion>
450             <groupId>org.osgi</groupId>
451             <artifactId>osgi.annotation</artifactId>
452           </exclusion>
453         </exclusions>
454       </dependency>
455       <dependency>
456         <groupId>org.osgi</groupId>
457         <artifactId>org.osgi.service.http.whiteboard</artifactId>
458         <version>1.1.1</version>
459         <scope>provided</scope>
460         <exclusions>
461           <!-- Causes class path duplicates -->
462           <exclusion>
463             <groupId>org.osgi</groupId>
464             <artifactId>osgi.annotation</artifactId>
465           </exclusion>
466         </exclusions>
467       </dependency>
468       <dependency>
469         <groupId>org.osgi</groupId>
470         <artifactId>org.osgi.service.jdbc</artifactId>
471         <version>1.1.0</version>
472         <scope>provided</scope>
473         <exclusions>
474           <!-- Causes class path duplicates -->
475           <exclusion>
476             <groupId>org.osgi</groupId>
477             <artifactId>osgi.annotation</artifactId>
478           </exclusion>
479         </exclusions>
480       </dependency>
481       <dependency>
482         <groupId>org.osgi</groupId>
483         <artifactId>org.osgi.service.metatype.annotations</artifactId>
484         <version>1.4.1</version>
485         <scope>provided</scope>
486         <exclusions>
487           <!-- Causes class path duplicates -->
488           <exclusion>
489             <groupId>org.osgi</groupId>
490             <artifactId>osgi.annotation</artifactId>
491           </exclusion>
492         </exclusions>
493       </dependency>
494       <dependency>
495         <groupId>org.osgi</groupId>
496         <artifactId>org.osgi.service.resolver</artifactId>
497         <version>1.1.1</version>
498         <scope>provided</scope>
499       </dependency>
500       <dependency>
501         <groupId>org.osgi</groupId>
502         <artifactId>org.osgi.service.url</artifactId>
503         <version>1.0.1</version>
504         <scope>provided</scope>
505       </dependency>
506       <dependency>
507         <groupId>org.osgi</groupId>
508         <artifactId>org.osgi.util.tracker</artifactId>
509         <version>1.5.4</version>
510         <scope>provided</scope>
511       </dependency>
512
513       <!-- for https://jira.opendaylight.org/browse/ODLPARENT-24 -->
514       <dependency>
515         <groupId>org.apache.aries.quiesce</groupId>
516         <artifactId>org.apache.aries.quiesce.api</artifactId>
517         <version>1.0.0</version>
518       </dependency>
519
520       <!-- LMAX Disruptor -->
521       <dependency>
522         <groupId>com.lmax</groupId>
523         <artifactId>disruptor</artifactId>
524         <version>3.4.4</version>
525       </dependency>
526
527       <!-- Add Pax Exam -->
528       <dependency>
529         <groupId>org.ops4j.pax.exam</groupId>
530         <artifactId>pax-exam</artifactId>
531         <version>4.13.5</version>
532         <scope>test</scope>
533       </dependency>
534       <dependency>
535         <groupId>org.ops4j.pax.exam</groupId>
536         <artifactId>pax-exam-container-forked</artifactId>
537         <version>4.13.5</version>
538         <scope>test</scope>
539       </dependency>
540       <dependency>
541         <groupId>org.ops4j.pax.exam</groupId>
542         <artifactId>pax-exam-container-karaf</artifactId>
543         <version>4.13.5</version>
544         <scope>test</scope>
545       </dependency>
546       <dependency>
547         <groupId>org.ops4j.pax.exam</groupId>
548         <artifactId>pax-exam-container-native</artifactId>
549         <version>4.13.5</version>
550         <scope>test</scope>
551       </dependency>
552       <dependency>
553         <groupId>org.ops4j.pax.exam</groupId>
554         <artifactId>pax-exam-extender-service</artifactId>
555         <version>4.13.5</version>
556         <scope>test</scope>
557       </dependency>
558       <dependency>
559         <groupId>org.ops4j.pax.exam</groupId>
560         <artifactId>pax-exam-inject</artifactId>
561         <version>4.13.5</version>
562         <scope>test</scope>
563       </dependency>
564       <dependency>
565         <groupId>org.ops4j.pax.exam</groupId>
566         <artifactId>pax-exam-invoker-junit</artifactId>
567         <version>4.13.5</version>
568         <scope>test</scope>
569       </dependency>
570       <dependency>
571         <groupId>org.ops4j.pax.exam</groupId>
572         <artifactId>pax-exam-features</artifactId>
573         <version>4.13.5</version>
574         <type>xml</type>
575         <scope>test</scope>
576       </dependency>
577       <dependency>
578         <groupId>org.ops4j.pax.exam</groupId>
579         <artifactId>pax-exam-junit4</artifactId>
580         <version>4.13.5</version>
581         <scope>test</scope>
582       </dependency>
583       <dependency>
584         <groupId>org.ops4j.pax.exam</groupId>
585         <artifactId>pax-exam-link-mvn</artifactId>
586         <version>4.13.5</version>
587         <scope>test</scope>
588       </dependency>
589       <dependency>
590         <groupId>org.ops4j.pax.exam</groupId>
591         <artifactId>pax-exam-link-assembly</artifactId>
592         <version>4.13.5</version>
593         <scope>test</scope>
594       </dependency>
595
596       <dependency>
597         <groupId>org.ops4j.pax.url</groupId>
598         <artifactId>pax-url-link</artifactId>
599         <version>2.6.14</version>
600         <scope>test</scope>
601       </dependency>
602       <dependency>
603         <groupId>org.ops4j.pax.url</groupId>
604         <artifactId>pax-url-aether</artifactId>
605         <version>2.6.14</version>
606         <scope>test</scope>
607       </dependency>
608       <dependency>
609         <groupId>org.ops4j.pax.url</groupId>
610         <artifactId>pax-url-wrap</artifactId>
611         <version>2.6.14</version>
612       </dependency>
613
614       <dependency>
615         <groupId>org.xmlunit</groupId>
616         <artifactId>xmlunit-core</artifactId>
617         <version>2.9.1</version>
618         <scope>test</scope>
619       </dependency>
620       <dependency>
621         <groupId>org.xmlunit</groupId>
622         <artifactId>xmlunit-assertj</artifactId>
623         <version>2.9.1</version>
624         <scope>test</scope>
625       </dependency>
626       <dependency>
627         <groupId>org.xmlunit</groupId>
628         <artifactId>xmlunit-assertj3</artifactId>
629         <version>2.9.1</version>
630         <scope>test</scope>
631       </dependency>
632       <dependency>
633         <groupId>org.xmlunit</groupId>
634         <artifactId>xmlunit-matchers</artifactId>
635         <version>2.9.1</version>
636         <scope>test</scope>
637       </dependency>
638       <!-- FIXME: remove this once we have migrated over -->
639       <dependency>
640         <groupId>org.xmlunit</groupId>
641         <artifactId>xmlunit-legacy</artifactId>
642         <version>2.9.1</version>
643         <scope>test</scope>
644       </dependency>
645
646       <dependency>
647         <groupId>org.assertj</groupId>
648         <artifactId>assertj-core</artifactId>
649         <version>3.25.3</version>
650         <scope>test</scope>
651         <exclusions>
652           <exclusion>
653             <groupId>net.bytebuddy</groupId>
654             <artifactId>byte-buddy</artifactId>
655           </exclusion>
656         </exclusions>
657       </dependency>
658       <dependency>
659         <groupId>org.assertj</groupId>
660         <artifactId>assertj-guava</artifactId>
661         <version>3.25.3</version>
662         <scope>test</scope>
663       </dependency>
664
665       <!-- Annotations for modernizer-maven-plugin -->
666       <dependency>
667         <groupId>org.gaul</groupId>
668         <artifactId>modernizer-maven-annotations</artifactId>
669         <!-- This should match the plugin version below -->
670         <version>2.7.0</version>
671         <scope>provided</scope>
672       </dependency>
673
674       <dependency>
675         <groupId>org.eclipse.jetty</groupId>
676         <artifactId>jetty-bom</artifactId>
677         <version>9.4.54.v20240208</version>
678         <scope>import</scope>
679         <type>pom</type>
680       </dependency>
681
682       <!-- Annotations -->
683       <!-- A better alternative for javax.inject, from https://guicedee.com/ -->
684       <dependency>
685         <groupId>com.guicedee.services</groupId>
686         <artifactId>javax.inject</artifactId>
687         <version>1.0.20.2</version>
688         <scope>provided</scope>
689         <optional>true</optional>
690       </dependency>
691
692       <!-- Argparse4j, for parsing command-line arguments in standalone executables -->
693       <dependency>
694         <groupId>net.sourceforge.argparse4j</groupId>
695         <artifactId>argparse4j</artifactId>
696         <version>0.9.0</version>
697       </dependency>
698
699       <!-- ThreeTen-Extra, date/time complements -->
700       <dependency>
701         <groupId>org.threeten</groupId>
702         <artifactId>threeten-extra</artifactId>
703         <version>1.7.2</version>
704       </dependency>
705
706       <!-- When updating this version, consider antl4-maven-plugin below -->
707       <dependency>
708         <groupId>org.antlr</groupId>
709         <artifactId>antlr4-runtime</artifactId>
710         <version>4.13.1</version>
711       </dependency>
712
713       <!-- TrieMap library -->
714       <dependency>
715         <groupId>tech.pantheon.triemap</groupId>
716         <artifactId>bom</artifactId>
717         <version>1.3.1</version>
718         <scope>import</scope>
719         <type>pom</type>
720       </dependency>
721
722       <!-- Dropwizard metrics -->
723       <dependency>
724         <groupId>io.dropwizard.metrics</groupId>
725         <artifactId>metrics-bom</artifactId>
726         <version>4.2.25</version>
727         <scope>import</scope>
728         <type>pom</type>
729       </dependency>
730
731       <!-- Sonar/JaCoCo integration -->
732       <dependency>
733         <groupId>org.sonarsource.java</groupId>
734         <artifactId>sonar-jacoco-listeners</artifactId>
735         <version>${sonar-jacoco-listeners.version}</version>
736         <scope>test</scope>
737       </dependency>
738     </dependencies>
739   </dependencyManagement>
740
741   <dependencies>
742     <!--
743          We expect slf4j-api to be provided by the platform.
744          Karaf provides it, other containers need to provide it themselves.
745     -->
746     <dependency>
747       <groupId>org.slf4j</groupId>
748       <artifactId>slf4j-api</artifactId>
749       <scope>provided</scope>
750     </dependency>
751
752     <!--
753           Testing output should be routed through slf4j-simple.
754     -->
755     <dependency>
756       <groupId>org.slf4j</groupId>
757       <artifactId>slf4j-simple</artifactId>
758       <scope>test</scope>
759     </dependency>
760
761     <!--
762         Unit tests can use JUnit + Mockito + Hamcrest/AssertJ by default.
763     -->
764     <dependency>
765       <groupId>org.assertj</groupId>
766       <artifactId>assertj-core</artifactId>
767       <scope>test</scope>
768     </dependency>
769
770     <!-- Hamcrest, for now -->
771     <dependency>
772       <groupId>org.hamcrest</groupId>
773       <artifactId>hamcrest</artifactId>
774       <scope>test</scope>
775     </dependency>
776     <dependency>
777       <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
778       <groupId>org.hamcrest</groupId>
779       <artifactId>hamcrest-library</artifactId>
780       <scope>test</scope>
781     </dependency>
782
783     <!-- JUnit 5 integration -->
784     <dependency>
785       <groupId>org.junit.jupiter</groupId>
786       <artifactId>junit-jupiter-api</artifactId>
787       <scope>test</scope>
788     </dependency>
789     <dependency>
790       <groupId>org.junit.jupiter</groupId>
791       <artifactId>junit-jupiter-params</artifactId>
792       <scope>test</scope>
793     </dependency>
794     <dependency>
795       <groupId>org.junit.jupiter</groupId>
796       <artifactId>junit-jupiter-engine</artifactId>
797       <scope>test</scope>
798     </dependency>
799     <dependency>
800       <groupId>org.mockito</groupId>
801       <artifactId>mockito-junit-jupiter</artifactId>
802       <scope>test</scope>
803     </dependency>
804
805     <!-- JUnit 4 integration -->
806     <dependency>
807       <groupId>junit</groupId>
808       <artifactId>junit</artifactId>
809       <scope>test</scope>
810     </dependency>
811     <dependency>
812       <groupId>org.junit.jupiter</groupId>
813       <artifactId>junit-jupiter-migrationsupport</artifactId>
814       <scope>test</scope>
815     </dependency>
816     <dependency>
817       <groupId>org.junit.vintage</groupId>
818       <artifactId>junit-vintage-engine</artifactId>
819       <scope>test</scope>
820     </dependency>
821     <dependency>
822       <groupId>org.mockito</groupId>
823       <artifactId>mockito-core</artifactId>
824       <scope>test</scope>
825     </dependency>
826   </dependencies>
827
828   <build>
829     <pluginManagement>
830       <plugins>
831         <!-- Official maven plugins, alpha-sorted by artifactId.
832              We do not need to specify the groupId. -->
833         <plugin>
834           <artifactId>maven-checkstyle-plugin</artifactId>
835           <version>3.3.1</version>
836           <dependencies>
837             <dependency>
838               <groupId>com.puppycrawl.tools</groupId>
839               <artifactId>checkstyle</artifactId>
840               <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
841               <version>10.15.0</version>
842             </dependency>
843             <dependency>
844               <groupId>org.opendaylight.odlparent</groupId>
845               <artifactId>checkstyle</artifactId>
846               <version>13.1.0-SNAPSHOT</version>
847             </dependency>
848             <dependency>
849               <groupId>com.github.sevntu-checkstyle</groupId>
850               <artifactId>sevntu-checks</artifactId>
851               <version>1.44.1</version>
852             </dependency>
853           </dependencies>
854           <configuration>
855             <configLocation>odl_checks.xml</configLocation>
856             <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
857             <!-- <sourceDirectories> are needed so that checkstyle ignores the
858                  generated sources directory -->
859             <sourceDirectories>
860               <directory>${project.build.sourceDirectory}</directory>
861             </sourceDirectories>
862             <includeResources>true</includeResources>
863             <includeTestSourceDirectory>true</includeTestSourceDirectory>
864             <includeTestResources>true</includeTestResources>
865             <includes>**\/*.java</includes>
866             <excludes>
867               org/opendaylight/yang/gen/**,
868               **/protobuff/messages/**,
869               **/thrift/gen/*.java,
870               **/module-info.java
871             </excludes>
872             <failsOnError>false</failsOnError>
873             <consoleOutput>true</consoleOutput>
874           </configuration>
875           <executions>
876             <execution>
877               <id>check-license</id>
878               <goals>
879                 <goal>check</goal>
880               </goals>
881               <phase>process-sources</phase>
882               <configuration>
883                 <configLocation>check-license.xml</configLocation>
884                 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
885                 <includeResources>false</includeResources>
886                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
887                 <includeTestResources>false</includeTestResources>
888                 <sourceDirectories>
889                   <directory>${project.build.sourceDirectory}</directory>
890                 </sourceDirectories>
891                 <excludes>
892                   org/opendaylight/yang/gen/**,
893                   **/protobuff/messages/**,
894                   **/thrift/gen/*.java
895                 </excludes>
896                 <failsOnError>false</failsOnError>
897                 <consoleOutput>true</consoleOutput>
898               </configuration>
899             </execution>
900             <execution>
901               <goals>
902                 <goal>check</goal>
903               </goals>
904               <phase>process-sources</phase>
905               <configuration>
906                 <failOnViolation>${odlparent.checkstyle.enforce}</failOnViolation>
907                 <skip>${odlparent.checkstyle.skip}</skip>
908                 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
909               </configuration>
910             </execution>
911           </executions>
912         </plugin>
913         <plugin>
914           <artifactId>maven-compiler-plugin</artifactId>
915           <configuration>
916             <compilerArgs>
917               <arg>-parameters</arg>
918               <arg>-Xlint:all</arg>
919               <!-- Disable 'No processor claimed any of these annotations' -->
920               <arg>-Xlint:-processing</arg>
921               <!-- Disable 'declares no explicit constructors, thereby exposing a default constructor'
922                    because it causes a lot of warnings in downstreams. -->
923               <arg>-Xlint:-missing-explicit-ctor</arg>
924             </compilerArgs>
925             <annotationProcessorPaths>
926               <dependency>
927                 <groupId>org.immutables</groupId>
928                 <artifactId>value</artifactId>
929                 <!-- Keep this version in sync with dependency declaration above -->
930                 <version>2.10.1</version>
931               </dependency>
932               <dependency>
933                 <groupId>org.kohsuke.metainf-services</groupId>
934                 <artifactId>metainf-services</artifactId>
935                 <!-- Keep this version in sync with dependency declaration above -->
936                 <version>1.11</version>
937               </dependency>
938             </annotationProcessorPaths>
939           </configuration>
940         </plugin>
941         <plugin>
942           <artifactId>maven-failsafe-plugin</artifactId>
943           <version>3.2.5</version>
944         </plugin>
945         <plugin>
946           <artifactId>maven-invoker-plugin</artifactId>
947           <version>3.6.1</version>
948         </plugin>
949         <plugin>
950           <artifactId>maven-dependency-plugin</artifactId>
951           <executions>
952             <execution>
953               <id>unpack-license</id>
954               <phase>generate-resources</phase>
955               <goals>
956                 <goal>copy</goal>
957               </goals>
958               <configuration>
959                 <artifactItems>
960                   <artifactItem>
961                     <groupId>org.opendaylight.odlparent</groupId>
962                     <artifactId>odl-license</artifactId>
963                     <version>13.1.0-SNAPSHOT</version>
964                     <type>license</type>
965                     <outputDirectory>${project.build.outputDirectory}</outputDirectory>
966                     <destFileName>LICENSE</destFileName>
967                     <overWrite>false</overWrite>
968                   </artifactItem>
969                 </artifactItems>
970                 <silent>true</silent>
971               </configuration>
972             </execution>
973             <execution>
974               <id>analyze-declarations</id>
975               <goals>
976                 <goal>analyze-only</goal>
977               </goals>
978               <configuration>
979                 <failOnWarning>${odlparent.dependency.enforce}</failOnWarning>
980                 <ignoreNonCompile>true</ignoreNonCompile>
981                 <skip>${odlparent.dependency.skip}</skip>
982               </configuration>
983             </execution>
984           </executions>
985         </plugin>
986
987         <plugin>
988           <artifactId>maven-plugin-plugin</artifactId>
989           <version>3.11.0</version>
990         </plugin>
991
992         <plugin>
993           <artifactId>maven-remote-resources-plugin</artifactId>
994           <version>3.2.0</version>
995         </plugin>
996         <plugin>
997           <artifactId>maven-shade-plugin</artifactId>
998           <version>3.5.2</version>
999         </plugin>
1000         <plugin>
1001           <artifactId>maven-source-plugin</artifactId>
1002           <version>3.3.0</version>
1003           <executions>
1004             <execution>
1005               <id>attach-sources</id>
1006               <phase>verify</phase>
1007               <goals>
1008                 <goal>jar-no-fork</goal>
1009               </goals>
1010             </execution>
1011           </executions>
1012         </plugin>
1013         <plugin>
1014           <artifactId>maven-surefire-plugin</artifactId>
1015           <version>3.2.5</version>
1016           <configuration>
1017             <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1018             <trimStackTrace>false</trimStackTrace>
1019           </configuration>
1020         </plugin>
1021
1022         <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1023         <plugin>
1024           <groupId>org.basepom.maven</groupId>
1025           <artifactId>duplicate-finder-maven-plugin</artifactId>
1026           <version>2.0.1</version>
1027         </plugin>
1028
1029         <plugin>
1030           <groupId>com.github.ekryd.echo-maven-plugin</groupId>
1031           <artifactId>echo-maven-plugin</artifactId>
1032           <version>2.1.0</version>
1033         </plugin>
1034
1035         <plugin>
1036           <groupId>org.apache.felix</groupId>
1037           <artifactId>maven-bundle-plugin</artifactId>
1038           <version>5.1.9</version>
1039           <extensions>true</extensions>
1040           <configuration>
1041             <instructions>
1042               <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1043                    so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1044                    and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present.  -->
1045               <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>
1046
1047               <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1048                    to generate Import-Service and Export-Service headers. -->
1049               <_removeheaders>Import-Service,Export-Service</_removeheaders>
1050             </instructions>
1051           </configuration>
1052         </plugin>
1053
1054         <plugin>
1055           <groupId>org.apache.karaf.tooling</groupId>
1056           <artifactId>karaf-maven-plugin</artifactId>
1057           <version>${karaf.version}</version>
1058           <extensions>true</extensions>
1059         </plugin>
1060
1061         <plugin>
1062           <groupId>org.apache.servicemix.tooling</groupId>
1063           <artifactId>depends-maven-plugin</artifactId>
1064           <version>1.5.0</version>
1065           <executions>
1066             <execution>
1067               <id>generate-depends-file</id>
1068               <goals>
1069                 <goal>generate-depends-file</goal>
1070               </goals>
1071             </execution>
1072           </executions>
1073         </plugin>
1074
1075         <plugin>
1076           <groupId>org.gaul</groupId>
1077           <artifactId>modernizer-maven-plugin</artifactId>
1078           <version>2.7.0</version>
1079           <configuration>
1080             <javaVersion>${odlparent.modernizer.target}</javaVersion>
1081             <failOnViolations>${odlparent.modernizer.enforce}</failOnViolations>
1082             <skip>${odlparent.modernizer.skip}</skip>
1083
1084             <exclusionPatterns>
1085               <!-- We are using Guava as per normal and we have grown a large body of code
1086                    around the patterns there. Furthermore the suggested replacements have
1087                    different behavior, hence we do NOT want to blindly migrate. Examples
1088                    include:
1089
1090                    - Iterables, which we are widely use for efficient discovery of when
1091                      the Iterable is actually a Collection
1092               -->
1093               <exclusionPattern>com/google/common/collect/Iterables.*</exclusionPattern>
1094             </exclusionPatterns>
1095           </configuration>
1096
1097           <executions>
1098             <execution>
1099               <id>modernizer</id>
1100               <phase>verify</phase>
1101               <goals>
1102                 <goal>modernizer</goal>
1103               </goals>
1104             </execution>
1105           </executions>
1106         </plugin>
1107
1108         <plugin>
1109           <groupId>org.apache.karaf.tooling</groupId>
1110           <artifactId>karaf-services-maven-plugin</artifactId>
1111           <version>${karaf.version}</version>
1112           <executions>
1113             <execution>
1114               <id>service-metadata-generate</id>
1115               <phase>process-classes</phase>
1116               <goals>
1117                 <goal>service-metadata-generate</goal>
1118               </goals>
1119             </execution>
1120           </executions>
1121         </plugin>
1122
1123         <plugin>
1124           <groupId>com.github.spotbugs</groupId>
1125           <artifactId>spotbugs-maven-plugin</artifactId>
1126           <version>4.8.3.1</version>
1127           <dependencies>
1128             <dependency>
1129               <groupId>com.github.spotbugs</groupId>
1130               <artifactId>spotbugs</artifactId>
1131               <version>4.8.3</version>
1132             </dependency>
1133             <dependency>
1134               <groupId>org.opendaylight.odlparent</groupId>
1135               <artifactId>spotbugs</artifactId>
1136               <version>13.1.0-SNAPSHOT</version>
1137             </dependency>
1138
1139             <!-- The SpotBugs Maven plugin uses SLF4J-2 -->
1140             <dependency>
1141               <groupId>org.slf4j</groupId>
1142               <artifactId>slf4j-api</artifactId>
1143               <version>2.0.9</version>
1144             </dependency>
1145             <dependency>
1146               <groupId>org.slf4j</groupId>
1147               <artifactId>slf4j-simple</artifactId>
1148               <version>2.0.9</version>
1149             </dependency>
1150           </dependencies>
1151           <configuration>
1152             <plugins>
1153               <plugin>
1154                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1155                 <artifactId>bug-pattern</artifactId>
1156                 <version>1.5.0</version>
1157               </plugin>
1158             </plugins>
1159             <!--
1160               Enables analysis which takes more memory but finds more bugs.
1161               If you run out of memory, changes the value of the effort element
1162               to 'Low'.
1163             -->
1164             <effort>Max</effort>
1165             <!-- Reports all bugs (other values are medium and max) -->
1166             <threshold>Low</threshold>
1167             <!-- Build doesn't fail if problems are found -->
1168             <failOnError>${odlparent.spotbugs.enforce}</failOnError>
1169             <skip>${odlparent.spotbugs.skip}</skip>
1170             <!-- References the excluded rules -->
1171             <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1172             <!-- Produces XML report -->
1173             <xmlOutput>true</xmlOutput>
1174             <!-- Configures the directory in which the XML report is created -->
1175             <spotbugsXmlOutputDirectory>${project.build.directory}/spotbugs</spotbugsXmlOutputDirectory>
1176           </configuration>
1177           <executions>
1178             <!--
1179               Ensures that SpotBugs inspects source code when project is compiled.
1180             -->
1181             <execution>
1182               <id>analyze-compile</id>
1183               <phase>compile</phase>
1184               <goals>
1185                 <goal>check</goal>
1186               </goals>
1187             </execution>
1188           </executions>
1189         </plugin>
1190         <plugin>
1191           <groupId>org.codehaus.mojo</groupId>
1192           <artifactId>properties-maven-plugin</artifactId>
1193           <version>1.2.1</version>
1194         </plugin>
1195         <plugin>
1196           <groupId>org.eclipse.m2e</groupId>
1197           <artifactId>lifecycle-mapping</artifactId>
1198           <version>1.0.0</version>
1199           <configuration>
1200             <lifecycleMappingMetadata>
1201               <pluginExecutions>
1202                 <pluginExecution>
1203                   <pluginExecutionFilter>
1204                     <groupId>org.apache.felix</groupId>
1205                     <artifactId>maven-bundle-plugin</artifactId>
1206                     <versionRange>[1.0,)</versionRange>
1207                     <goals>
1208                       <goal>manifest</goal>
1209                     </goals>
1210                   </pluginExecutionFilter>
1211                   <action>
1212                     <execute/>
1213                   </action>
1214                 </pluginExecution>
1215                 <pluginExecution>
1216                   <pluginExecutionFilter>
1217                     <groupId>org.apache.maven.plugins</groupId>
1218                     <artifactId>maven-enforcer-plugin</artifactId>
1219                     <versionRange>[1.0.0,)</versionRange>
1220                     <goals>
1221                       <goal>enforce</goal>
1222                     </goals>
1223                   </pluginExecutionFilter>
1224                   <action>
1225                     <ignore/>
1226                   </action>
1227                 </pluginExecution>
1228                 <pluginExecution>
1229                   <pluginExecutionFilter>
1230                     <groupId>org.apache.maven.plugins</groupId>
1231                     <artifactId>maven-dependency-plugin</artifactId>
1232                     <versionRange>[2.10,)</versionRange>
1233                     <goals>
1234                       <goal>copy</goal>
1235                     </goals>
1236                   </pluginExecutionFilter>
1237                   <action>
1238                     <ignore/>
1239                   </action>
1240                 </pluginExecution>
1241                 <!-- The plugin will eventually be removed, remove this too at that point -->
1242                 <pluginExecution>
1243                   <pluginExecutionFilter>
1244                     <groupId>org.apache.maven.plugins</groupId>
1245                     <artifactId>maven-antrun-plugin</artifactId>
1246                     <versionRange>[1.8,)</versionRange>
1247                     <goals>
1248                       <goal>run</goal>
1249                     </goals>
1250                   </pluginExecutionFilter>
1251                   <action>
1252                     <ignore/>
1253                   </action>
1254                 </pluginExecution>
1255                 <pluginExecution>
1256                   <pluginExecutionFilter>
1257                     <groupId>org.apache.servicemix.tooling</groupId>
1258                     <artifactId>depends-maven-plugin</artifactId>
1259                     <versionRange>[1.2,)</versionRange>
1260                     <goals>
1261                       <goal>generate-depends-file</goal>
1262                     </goals>
1263                   </pluginExecutionFilter>
1264                   <action>
1265                     <execute/>
1266                   </action>
1267                 </pluginExecution>
1268                 <pluginExecution>
1269                   <pluginExecutionFilter>
1270                     <groupId>org.jacoco</groupId>
1271                     <artifactId>jacoco-maven-plugin</artifactId>
1272                     <versionRange>[0.7.0,)</versionRange>
1273                     <goals>
1274                       <goal>prepare-agent</goal>
1275                     </goals>
1276                   </pluginExecutionFilter>
1277                   <action>
1278                     <ignore/>
1279                   </action>
1280                 </pluginExecution>
1281
1282                 <pluginExecution>
1283                   <pluginExecutionFilter>
1284                     <groupId>org.ops4j.pax.exam</groupId>
1285                     <artifactId>maven-paxexam-plugin</artifactId>
1286                     <versionRange>[1.2.4,)</versionRange>
1287                     <goals>
1288                       <goal>generate-depends-file</goal>
1289                     </goals>
1290                   </pluginExecutionFilter>
1291                   <action>
1292                     <ignore/>
1293                   </action>
1294                 </pluginExecution>
1295
1296                 <pluginExecution>
1297                   <pluginExecutionFilter>
1298                     <groupId>org.basepom.maven</groupId>
1299                     <artifactId>
1300                       duplicate-finder-maven-plugin
1301                     </artifactId>
1302                     <versionRange>[1.2.1,)</versionRange>
1303                     <goals>
1304                       <goal>check</goal>
1305                     </goals>
1306                   </pluginExecutionFilter>
1307                   <action>
1308                     <ignore></ignore>
1309                   </action>
1310                 </pluginExecution>
1311               </pluginExecutions>
1312             </lifecycleMappingMetadata>
1313           </configuration>
1314         </plugin>
1315
1316         <plugin>
1317           <groupId>org.jacoco</groupId>
1318           <artifactId>jacoco-maven-plugin</artifactId>
1319           <configuration>
1320             <!-- Note: This exclusion list should match <sonar.exclusions>
1321                        property above -->
1322             <excludes>
1323               <exclude>**/gen/**</exclude>
1324               <exclude>**/generated-sources/**</exclude>
1325               <exclude>**/generated-test-sources/**</exclude>
1326               <exclude>**/yang-gen/**</exclude>
1327               <exclude>**/yang-gen-config/**</exclude>
1328               <exclude>**/yang-gen-sal/**</exclude>
1329               <exclude>**/yang-gen-code/**</exclude>
1330               <exclude>**/pax/**</exclude>
1331             </excludes>
1332           </configuration>
1333         </plugin>
1334
1335         <plugin>
1336           <groupId>org.ops4j.pax.exam</groupId>
1337           <artifactId>maven-paxexam-plugin</artifactId>
1338           <version>1.2.4</version>
1339         </plugin>
1340
1341         <!-- When updating this version, consider antl4-runtime above -->
1342         <plugin>
1343           <groupId>org.antlr</groupId>
1344           <artifactId>antlr4-maven-plugin</artifactId>
1345           <version>4.13.1</version>
1346         </plugin>
1347       </plugins>
1348     </pluginManagement>
1349
1350     <plugins>
1351       <plugin>
1352         <artifactId>maven-enforcer-plugin</artifactId>
1353         <executions>
1354           <execution>
1355             <id>enforce-banned-dependencies</id>
1356             <goals>
1357               <goal>enforce</goal>
1358             </goals>
1359             <configuration>
1360               <rules>
1361                 <bannedDependencies>
1362                   <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>
1363                   <excludes>
1364                     <exclude>org.mockito:mockito-all</exclude>
1365                     <exclude>com.google.code.findbugs:annotations</exclude>
1366                   </excludes>
1367                 </bannedDependencies>
1368               </rules>
1369               <fail>true</fail>
1370             </configuration>
1371           </execution>
1372         </executions>
1373       </plugin>
1374       <plugin>
1375         <groupId>org.basepom.maven</groupId>
1376         <artifactId>duplicate-finder-maven-plugin</artifactId>
1377         <executions>
1378           <execution>
1379             <id>find-duplicate-classpath-entries</id>
1380             <phase>verify</phase>
1381             <goals>
1382               <goal>check</goal>
1383             </goals>
1384           </execution>
1385         </executions>
1386         <configuration>
1387             <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1388             <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1389             <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1390             <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1391             <printEqualFiles>false</printEqualFiles>
1392             <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1393                  as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1394                  we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1395                  also ignore: -->
1396             <ignoredResourcePatterns>
1397               <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1398               <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1399               <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1400               <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1401               <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1402               <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1403               <ignoredResourcePattern>.api_description</ignoredResourcePattern>
1404             </ignoredResourcePatterns>
1405             <ignoredDependencies>
1406               <ignoredDependency>
1407                 <groupId>org.slf4j</groupId>
1408                 <artifactId>slf4j-simple</artifactId>
1409               </ignoredDependency>
1410               <ignoredDependency>
1411                 <groupId>org.opendaylight.odlparent</groupId>
1412                 <artifactId>opendaylight-karaf-empty</artifactId>
1413               </ignoredDependency>
1414             </ignoredDependencies>
1415         </configuration>
1416       </plugin>
1417       <plugin>
1418         <artifactId>maven-dependency-plugin</artifactId>
1419       </plugin>
1420       <plugin>
1421         <artifactId>maven-checkstyle-plugin</artifactId>
1422       </plugin>
1423       <plugin>
1424         <artifactId>maven-source-plugin</artifactId>
1425       </plugin>
1426       <plugin>
1427         <artifactId>maven-javadoc-plugin</artifactId>
1428       </plugin>
1429       <plugin>
1430         <groupId>org.gaul</groupId>
1431         <artifactId>modernizer-maven-plugin</artifactId>
1432       </plugin>
1433       <plugin>
1434         <groupId>com.github.spotbugs</groupId>
1435         <artifactId>spotbugs-maven-plugin</artifactId>
1436       </plugin>
1437
1438       <!-- Jacoco / Sonar -->
1439       <plugin>
1440         <groupId>org.jacoco</groupId>
1441         <artifactId>jacoco-maven-plugin</artifactId>
1442         <executions>
1443           <execution>
1444             <id>pre-unit-test</id>
1445             <goals>
1446               <goal>prepare-agent</goal>
1447             </goals>
1448           </execution>
1449           <execution>
1450             <id>report</id>
1451             <goals>
1452               <goal>report</goal>
1453             </goals>
1454           </execution>
1455         </executions>
1456       </plugin>
1457
1458       <plugin>
1459         <groupId>org.opendaylight.odlparent</groupId>
1460         <artifactId>copy-files-plugin</artifactId>
1461         <version>13.1.0-SNAPSHOT</version>
1462         <executions>
1463           <execution>
1464             <phase>prepare-package</phase>
1465             <goals>
1466               <goal>copy-files</goal>
1467             </goals>
1468             <configuration>
1469               <globs>
1470                 <glob>README*</glob>
1471                 <glob>CONTRIBUTING*</glob>
1472                 <glob>PROJECT_INFO.yaml</glob>
1473               </globs>
1474             </configuration>
1475           </execution>
1476         </executions>
1477       </plugin>
1478     </plugins>
1479   </build>
1480
1481   <reporting>
1482     <plugins>
1483       <plugin>
1484         <artifactId>maven-checkstyle-plugin</artifactId>
1485         <version>3.3.0</version>
1486       </plugin>
1487
1488       <!-- FIXME: activate this
1489       <plugin>
1490         <artifactId>maven-project-info-reports-plugin</artifactId>
1491       </plugin-->
1492       <plugin>
1493         <groupId>org.codehaus.mojo</groupId>
1494         <artifactId>jdepend-maven-plugin</artifactId>
1495         <reportSets>
1496           <reportSet>
1497             <reports>
1498               <report>generate-no-fork</report>
1499             </reports>
1500           </reportSet>
1501         </reportSets>
1502       </plugin>
1503     </plugins>
1504   </reporting>
1505 </project>
1506