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