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