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