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