Bump maven-checkstyle-plugin to 3.4.0
[odlparent.git] / odlparent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=2 tabstop=2: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11   <modelVersion>4.0.0</modelVersion>
12
13   <parent>
14     <groupId>org.opendaylight.odlparent</groupId>
15     <artifactId>odlparent-lite</artifactId>
16     <version>14.0.0-SNAPSHOT</version>
17     <relativePath>../odlparent-lite</relativePath>
18   </parent>
19
20   <artifactId>odlparent</artifactId>
21   <packaging>pom</packaging>
22   <name>ODL :: odlparent :: ${project.artifactId}</name>
23
24   <scm>
25     <connection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</connection>
26     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</developerConnection>
27     <tag>HEAD</tag>
28     <url>https://wiki.opendaylight.org/display/ODL/ODL+Root+Parent</url>
29   </scm>
30
31   <!-- Variables should only be used where genuinely useful (to avoid
32        repetition); in general versions should be specified in the
33        corresponding dependencyManagement or pluginManagement element, not as
34        a variable. Duplication within odlparent doesn't count if it can be
35        managed using maven-versions-plugin. -->
36   <properties>
37     <nexus.repository.release>opendaylight.release</nexus.repository.release>
38     <nexus.repository.snapshot>opendaylight.snapshot</nexus.repository.snapshot>
39
40     <!-- Used in controller, genius, infrautils, netconf, netvirt, ovsdb, serviceutils -->
41     <karaf.version>4.4.6</karaf.version>
42
43     <!-- Supporting Libraries -->
44     <!-- Only used internally -->
45     <bouncycastle.version>1.78.1</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>14.0.0-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.17.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.12.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>33.2.1-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>33.2.1-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.43.0</version>
266       </dependency>
267       <dependency>
268         <groupId>com.google.errorprone</groupId>
269         <artifactId>error_prone_annotations</artifactId>
270         <version>2.28.0</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.43</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.5</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>bcutil-jdk18on</artifactId>
408         <version>${bouncycastle.version}</version>
409       </dependency>
410
411       <dependency>
412         <groupId>org.javassist</groupId>
413         <artifactId>javassist</artifactId>
414         <version>3.30.2-GA</version>
415       </dependency>
416       <dependency>
417         <groupId>org.jboss.spec.javax.transaction</groupId>
418         <artifactId>jboss-transaction-api_1.1_spec</artifactId>
419         <version>1.0.1.Final</version>
420       </dependency>
421       <dependency>
422         <groupId>org.jolokia</groupId>
423         <artifactId>jolokia-osgi</artifactId>
424         <version>1.7.2</version>
425       </dependency>
426
427       <!-- OSGi Release 8 artifacts we support, augmenting Karaf's BOM -->
428       <dependency>
429         <groupId>org.osgi</groupId>
430         <artifactId>org.osgi.annotation.bundle</artifactId>
431         <version>1.1.0</version>
432         <scope>provided</scope>
433       </dependency>
434       <dependency>
435         <groupId>org.osgi</groupId>
436         <artifactId>org.osgi.annotation.versioning</artifactId>
437         <version>1.1.2</version>
438         <scope>provided</scope>
439       </dependency>
440       <dependency>
441         <groupId>org.osgi</groupId>
442         <artifactId>org.osgi.framework</artifactId>
443         <version>1.10.0</version>
444         <scope>provided</scope>
445       </dependency>
446       <dependency>
447         <groupId>org.osgi</groupId>
448         <artifactId>org.osgi.service.component.annotations</artifactId>
449         <version>1.5.1</version>
450         <scope>provided</scope>
451         <exclusions>
452           <!-- Causes class path duplicates -->
453           <exclusion>
454             <groupId>org.osgi</groupId>
455             <artifactId>osgi.annotation</artifactId>
456           </exclusion>
457         </exclusions>
458       </dependency>
459       <dependency>
460         <groupId>org.osgi</groupId>
461         <artifactId>org.osgi.service.http.whiteboard</artifactId>
462         <version>1.1.1</version>
463         <scope>provided</scope>
464         <exclusions>
465           <!-- Causes class path duplicates -->
466           <exclusion>
467             <groupId>org.osgi</groupId>
468             <artifactId>osgi.annotation</artifactId>
469           </exclusion>
470         </exclusions>
471       </dependency>
472       <dependency>
473         <groupId>org.osgi</groupId>
474         <artifactId>org.osgi.service.jdbc</artifactId>
475         <version>1.1.0</version>
476         <scope>provided</scope>
477         <exclusions>
478           <!-- Causes class path duplicates -->
479           <exclusion>
480             <groupId>org.osgi</groupId>
481             <artifactId>osgi.annotation</artifactId>
482           </exclusion>
483         </exclusions>
484       </dependency>
485       <dependency>
486         <groupId>org.osgi</groupId>
487         <artifactId>org.osgi.service.metatype.annotations</artifactId>
488         <version>1.4.1</version>
489         <scope>provided</scope>
490         <exclusions>
491           <!-- Causes class path duplicates -->
492           <exclusion>
493             <groupId>org.osgi</groupId>
494             <artifactId>osgi.annotation</artifactId>
495           </exclusion>
496         </exclusions>
497       </dependency>
498       <dependency>
499         <groupId>org.osgi</groupId>
500         <artifactId>org.osgi.service.resolver</artifactId>
501         <version>1.1.1</version>
502         <scope>provided</scope>
503       </dependency>
504       <dependency>
505         <groupId>org.osgi</groupId>
506         <artifactId>org.osgi.service.url</artifactId>
507         <version>1.0.1</version>
508         <scope>provided</scope>
509       </dependency>
510       <dependency>
511         <groupId>org.osgi</groupId>
512         <artifactId>org.osgi.util.tracker</artifactId>
513         <version>1.5.4</version>
514         <scope>provided</scope>
515       </dependency>
516
517       <!-- for https://jira.opendaylight.org/browse/ODLPARENT-24 -->
518       <dependency>
519         <groupId>org.apache.aries.quiesce</groupId>
520         <artifactId>org.apache.aries.quiesce.api</artifactId>
521         <version>1.0.0</version>
522       </dependency>
523
524       <!-- Add Pax Exam -->
525       <dependency>
526         <groupId>org.ops4j.pax.exam</groupId>
527         <artifactId>pax-exam</artifactId>
528         <version>4.13.5</version>
529         <scope>test</scope>
530       </dependency>
531       <dependency>
532         <groupId>org.ops4j.pax.exam</groupId>
533         <artifactId>pax-exam-container-forked</artifactId>
534         <version>4.13.5</version>
535         <scope>test</scope>
536       </dependency>
537       <dependency>
538         <groupId>org.ops4j.pax.exam</groupId>
539         <artifactId>pax-exam-container-karaf</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-native</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-extender-service</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-inject</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-invoker-junit</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-features</artifactId>
570         <version>4.13.5</version>
571         <type>xml</type>
572         <scope>test</scope>
573       </dependency>
574       <dependency>
575         <groupId>org.ops4j.pax.exam</groupId>
576         <artifactId>pax-exam-junit4</artifactId>
577         <version>4.13.5</version>
578         <scope>test</scope>
579       </dependency>
580       <dependency>
581         <groupId>org.ops4j.pax.exam</groupId>
582         <artifactId>pax-exam-link-mvn</artifactId>
583         <version>4.13.5</version>
584         <scope>test</scope>
585       </dependency>
586       <dependency>
587         <groupId>org.ops4j.pax.exam</groupId>
588         <artifactId>pax-exam-link-assembly</artifactId>
589         <version>4.13.5</version>
590         <scope>test</scope>
591       </dependency>
592
593       <dependency>
594         <groupId>org.ops4j.pax.url</groupId>
595         <artifactId>pax-url-link</artifactId>
596         <version>2.6.14</version>
597         <scope>test</scope>
598       </dependency>
599       <dependency>
600         <groupId>org.ops4j.pax.url</groupId>
601         <artifactId>pax-url-aether</artifactId>
602         <version>2.6.14</version>
603         <scope>test</scope>
604       </dependency>
605       <dependency>
606         <groupId>org.ops4j.pax.url</groupId>
607         <artifactId>pax-url-wrap</artifactId>
608         <version>2.6.14</version>
609       </dependency>
610
611       <dependency>
612         <groupId>org.xmlunit</groupId>
613         <artifactId>xmlunit-core</artifactId>
614         <version>2.10.0</version>
615         <scope>test</scope>
616       </dependency>
617       <dependency>
618         <groupId>org.xmlunit</groupId>
619         <artifactId>xmlunit-assertj</artifactId>
620         <version>2.10.0</version>
621         <scope>test</scope>
622       </dependency>
623       <dependency>
624         <groupId>org.xmlunit</groupId>
625         <artifactId>xmlunit-assertj3</artifactId>
626         <version>2.10.0</version>
627         <scope>test</scope>
628       </dependency>
629       <dependency>
630         <groupId>org.xmlunit</groupId>
631         <artifactId>xmlunit-matchers</artifactId>
632         <version>2.10.0</version>
633         <scope>test</scope>
634       </dependency>
635       <!-- FIXME: remove this once we have migrated over -->
636       <dependency>
637         <groupId>org.xmlunit</groupId>
638         <artifactId>xmlunit-legacy</artifactId>
639         <version>2.10.0</version>
640         <scope>test</scope>
641       </dependency>
642
643       <dependency>
644         <groupId>org.assertj</groupId>
645         <artifactId>assertj-core</artifactId>
646         <version>3.26.0</version>
647         <scope>test</scope>
648         <exclusions>
649           <exclusion>
650             <groupId>net.bytebuddy</groupId>
651             <artifactId>byte-buddy</artifactId>
652           </exclusion>
653         </exclusions>
654       </dependency>
655       <dependency>
656         <groupId>org.assertj</groupId>
657         <artifactId>assertj-guava</artifactId>
658         <version>3.26.0</version>
659         <scope>test</scope>
660       </dependency>
661
662       <!-- Annotations for modernizer-maven-plugin -->
663       <dependency>
664         <groupId>org.gaul</groupId>
665         <artifactId>modernizer-maven-annotations</artifactId>
666         <!-- This should match the plugin version below -->
667         <version>2.9.0</version>
668         <scope>provided</scope>
669       </dependency>
670
671       <dependency>
672         <groupId>org.eclipse.jetty</groupId>
673         <artifactId>jetty-bom</artifactId>
674         <version>9.4.54.v20240208</version>
675         <scope>import</scope>
676         <type>pom</type>
677       </dependency>
678
679       <!-- Annotations -->
680       <!-- A better alternative for javax.inject, from https://guicedee.com/ -->
681       <dependency>
682         <groupId>com.guicedee.services</groupId>
683         <artifactId>javax.inject</artifactId>
684         <version>1.0.20.2</version>
685         <scope>provided</scope>
686         <optional>true</optional>
687       </dependency>
688
689       <!-- Argparse4j, for parsing command-line arguments in standalone executables -->
690       <dependency>
691         <groupId>net.sourceforge.argparse4j</groupId>
692         <artifactId>argparse4j</artifactId>
693         <version>0.9.0</version>
694       </dependency>
695
696       <!-- ThreeTen-Extra, date/time complements -->
697       <dependency>
698         <groupId>org.threeten</groupId>
699         <artifactId>threeten-extra</artifactId>
700         <version>1.8.0</version>
701       </dependency>
702
703       <!-- When updating this version, consider antl4-maven-plugin below -->
704       <dependency>
705         <groupId>org.antlr</groupId>
706         <artifactId>antlr4-runtime</artifactId>
707         <version>4.13.1</version>
708       </dependency>
709
710       <!-- TrieMap library -->
711       <dependency>
712         <groupId>tech.pantheon.triemap</groupId>
713         <artifactId>bom</artifactId>
714         <version>1.3.1</version>
715         <scope>import</scope>
716         <type>pom</type>
717       </dependency>
718
719       <!-- Dropwizard metrics -->
720       <dependency>
721         <groupId>io.dropwizard.metrics</groupId>
722         <artifactId>metrics-bom</artifactId>
723         <version>4.2.25</version>
724         <scope>import</scope>
725         <type>pom</type>
726       </dependency>
727
728       <!-- Sonar/JaCoCo integration -->
729       <dependency>
730         <groupId>org.sonarsource.java</groupId>
731         <artifactId>sonar-jacoco-listeners</artifactId>
732         <version>${sonar-jacoco-listeners.version}</version>
733         <scope>test</scope>
734       </dependency>
735     </dependencies>
736   </dependencyManagement>
737
738   <dependencies>
739     <!--
740          We expect slf4j-api to be provided by the platform.
741          Karaf provides it, other containers need to provide it themselves.
742     -->
743     <dependency>
744       <groupId>org.slf4j</groupId>
745       <artifactId>slf4j-api</artifactId>
746       <scope>provided</scope>
747     </dependency>
748
749     <!--
750           Testing output should be routed through slf4j-simple.
751     -->
752     <dependency>
753       <groupId>org.slf4j</groupId>
754       <artifactId>slf4j-simple</artifactId>
755       <scope>test</scope>
756     </dependency>
757
758     <!--
759         Unit tests can use JUnit + Mockito + Hamcrest/AssertJ by default.
760     -->
761     <dependency>
762       <groupId>org.assertj</groupId>
763       <artifactId>assertj-core</artifactId>
764       <scope>test</scope>
765     </dependency>
766
767     <!-- Hamcrest, for now -->
768     <dependency>
769       <groupId>org.hamcrest</groupId>
770       <artifactId>hamcrest</artifactId>
771       <scope>test</scope>
772     </dependency>
773     <dependency>
774       <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
775       <groupId>org.hamcrest</groupId>
776       <artifactId>hamcrest-library</artifactId>
777       <scope>test</scope>
778     </dependency>
779
780     <!-- JUnit 5 integration -->
781     <dependency>
782       <groupId>org.junit.jupiter</groupId>
783       <artifactId>junit-jupiter-api</artifactId>
784       <scope>test</scope>
785     </dependency>
786     <dependency>
787       <groupId>org.junit.jupiter</groupId>
788       <artifactId>junit-jupiter-params</artifactId>
789       <scope>test</scope>
790     </dependency>
791     <dependency>
792       <groupId>org.junit.jupiter</groupId>
793       <artifactId>junit-jupiter-engine</artifactId>
794       <scope>test</scope>
795     </dependency>
796     <dependency>
797       <groupId>org.mockito</groupId>
798       <artifactId>mockito-junit-jupiter</artifactId>
799       <scope>test</scope>
800     </dependency>
801
802     <!-- JUnit 4 integration -->
803     <dependency>
804       <groupId>junit</groupId>
805       <artifactId>junit</artifactId>
806       <scope>test</scope>
807     </dependency>
808     <dependency>
809       <groupId>org.junit.jupiter</groupId>
810       <artifactId>junit-jupiter-migrationsupport</artifactId>
811       <scope>test</scope>
812     </dependency>
813     <dependency>
814       <groupId>org.junit.vintage</groupId>
815       <artifactId>junit-vintage-engine</artifactId>
816       <scope>test</scope>
817     </dependency>
818     <dependency>
819       <groupId>org.mockito</groupId>
820       <artifactId>mockito-core</artifactId>
821       <scope>test</scope>
822     </dependency>
823   </dependencies>
824
825   <build>
826     <pluginManagement>
827       <plugins>
828         <!-- Official maven plugins, alpha-sorted by artifactId.
829              We do not need to specify the groupId. -->
830         <plugin>
831           <artifactId>maven-checkstyle-plugin</artifactId>
832           <version>3.4.0</version>
833           <dependencies>
834             <dependency>
835               <groupId>com.puppycrawl.tools</groupId>
836               <artifactId>checkstyle</artifactId>
837               <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
838               <version>10.17.0</version>
839             </dependency>
840             <dependency>
841               <groupId>org.opendaylight.odlparent</groupId>
842               <artifactId>checkstyle</artifactId>
843               <version>14.0.0-SNAPSHOT</version>
844             </dependency>
845             <dependency>
846               <groupId>com.github.sevntu-checkstyle</groupId>
847               <artifactId>sevntu-checks</artifactId>
848               <version>1.44.1</version>
849             </dependency>
850           </dependencies>
851           <configuration>
852             <configLocation>odl_checks.xml</configLocation>
853             <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
854             <!-- <sourceDirectories> are needed so that checkstyle ignores the
855                  generated sources directory -->
856             <sourceDirectories>
857               <directory>${project.build.sourceDirectory}</directory>
858             </sourceDirectories>
859             <includeResources>true</includeResources>
860             <includeTestSourceDirectory>true</includeTestSourceDirectory>
861             <includeTestResources>true</includeTestResources>
862             <includes>**\/*.java</includes>
863             <excludes>
864               org/opendaylight/yang/gen/**,
865               **/protobuff/messages/**,
866               **/thrift/gen/*.java,
867               **/module-info.java
868             </excludes>
869             <failsOnError>false</failsOnError>
870             <consoleOutput>true</consoleOutput>
871           </configuration>
872           <executions>
873             <execution>
874               <id>check-license</id>
875               <goals>
876                 <goal>check</goal>
877               </goals>
878               <phase>process-sources</phase>
879               <configuration>
880                 <configLocation>check-license.xml</configLocation>
881                 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
882                 <includeResources>false</includeResources>
883                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
884                 <includeTestResources>false</includeTestResources>
885                 <sourceDirectories>
886                   <directory>${project.build.sourceDirectory}</directory>
887                 </sourceDirectories>
888                 <excludes>
889                   org/opendaylight/yang/gen/**,
890                   **/protobuff/messages/**,
891                   **/thrift/gen/*.java
892                 </excludes>
893                 <failsOnError>false</failsOnError>
894                 <consoleOutput>true</consoleOutput>
895               </configuration>
896             </execution>
897             <execution>
898               <goals>
899                 <goal>check</goal>
900               </goals>
901               <phase>process-sources</phase>
902               <configuration>
903                 <failOnViolation>${odlparent.checkstyle.enforce}</failOnViolation>
904                 <skip>${odlparent.checkstyle.skip}</skip>
905                 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
906               </configuration>
907             </execution>
908           </executions>
909         </plugin>
910         <plugin>
911           <artifactId>maven-compiler-plugin</artifactId>
912           <configuration>
913             <compilerArgs>
914               <arg>-parameters</arg>
915               <arg>-Xlint:all</arg>
916               <!-- Disable 'No processor claimed any of these annotations' -->
917               <arg>-Xlint:-processing</arg>
918               <!-- Disable 'declares no explicit constructors, thereby exposing a default constructor'
919                    because it causes a lot of warnings in downstreams. -->
920               <arg>-Xlint:-missing-explicit-ctor</arg>
921             </compilerArgs>
922             <annotationProcessorPaths>
923               <dependency>
924                 <groupId>org.immutables</groupId>
925                 <artifactId>value</artifactId>
926                 <!-- Keep this version in sync with dependency declaration above -->
927                 <version>2.10.1</version>
928               </dependency>
929               <dependency>
930                 <groupId>org.kohsuke.metainf-services</groupId>
931                 <artifactId>metainf-services</artifactId>
932                 <!-- Keep this version in sync with dependency declaration above -->
933                 <version>1.11</version>
934               </dependency>
935             </annotationProcessorPaths>
936             <proc>full</proc>
937           </configuration>
938         </plugin>
939         <plugin>
940           <artifactId>maven-failsafe-plugin</artifactId>
941           <version>3.2.5</version>
942         </plugin>
943
944         <plugin>
945           <artifactId>maven-dependency-plugin</artifactId>
946           <executions>
947             <execution>
948               <id>unpack-license</id>
949               <phase>generate-resources</phase>
950               <goals>
951                 <goal>copy</goal>
952               </goals>
953               <configuration>
954                 <artifactItems>
955                   <artifactItem>
956                     <groupId>org.opendaylight.odlparent</groupId>
957                     <artifactId>odl-license</artifactId>
958                     <version>14.0.0-SNAPSHOT</version>
959                     <type>license</type>
960                     <outputDirectory>${project.build.outputDirectory}</outputDirectory>
961                     <destFileName>LICENSE</destFileName>
962                     <overWrite>false</overWrite>
963                   </artifactItem>
964                 </artifactItems>
965                 <silent>true</silent>
966               </configuration>
967             </execution>
968             <execution>
969               <id>analyze-declarations</id>
970               <goals>
971                 <goal>analyze-only</goal>
972               </goals>
973               <configuration>
974                 <failOnWarning>${odlparent.dependency.enforce}</failOnWarning>
975                 <ignoreNonCompile>true</ignoreNonCompile>
976                 <skip>${odlparent.dependency.skip}</skip>
977               </configuration>
978             </execution>
979           </executions>
980         </plugin>
981
982         <plugin>
983           <artifactId>maven-source-plugin</artifactId>
984           <version>3.3.1</version>
985           <executions>
986             <execution>
987               <id>attach-sources</id>
988               <phase>verify</phase>
989               <goals>
990                 <goal>jar-no-fork</goal>
991               </goals>
992             </execution>
993           </executions>
994         </plugin>
995         <plugin>
996           <artifactId>maven-surefire-plugin</artifactId>
997           <version>3.2.5</version>
998           <configuration>
999             <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1000             <trimStackTrace>false</trimStackTrace>
1001           </configuration>
1002         </plugin>
1003
1004         <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1005         <plugin>
1006           <groupId>org.basepom.maven</groupId>
1007           <artifactId>duplicate-finder-maven-plugin</artifactId>
1008           <version>2.0.1</version>
1009         </plugin>
1010
1011         <plugin>
1012           <groupId>org.apache.felix</groupId>
1013           <artifactId>maven-bundle-plugin</artifactId>
1014           <version>5.1.9</version>
1015           <extensions>true</extensions>
1016           <configuration>
1017             <instructions>
1018               <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1019                    so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1020                    and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present.  -->
1021               <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>
1022
1023               <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1024                    to generate Import-Service and Export-Service headers. -->
1025               <_removeheaders>Import-Service,Export-Service</_removeheaders>
1026             </instructions>
1027           </configuration>
1028         </plugin>
1029
1030         <plugin>
1031           <groupId>org.apache.karaf.tooling</groupId>
1032           <artifactId>karaf-maven-plugin</artifactId>
1033           <version>${karaf.version}</version>
1034           <extensions>true</extensions>
1035         </plugin>
1036
1037         <plugin>
1038           <groupId>org.apache.servicemix.tooling</groupId>
1039           <artifactId>depends-maven-plugin</artifactId>
1040           <version>1.5.0</version>
1041           <executions>
1042             <execution>
1043               <id>generate-depends-file</id>
1044               <goals>
1045                 <goal>generate-depends-file</goal>
1046               </goals>
1047             </execution>
1048           </executions>
1049         </plugin>
1050
1051         <plugin>
1052           <groupId>org.gaul</groupId>
1053           <artifactId>modernizer-maven-plugin</artifactId>
1054           <version>2.9.0</version>
1055           <configuration>
1056             <javaVersion>${odlparent.modernizer.target}</javaVersion>
1057             <failOnViolations>${odlparent.modernizer.enforce}</failOnViolations>
1058             <skip>${odlparent.modernizer.skip}</skip>
1059
1060             <exclusionPatterns>
1061               <!-- We are using Guava as per normal and we have grown a large body of code
1062                    around the patterns there. Furthermore the suggested replacements have
1063                    different behavior, hence we do NOT want to blindly migrate. Examples
1064                    include:
1065
1066                    - Iterables, which we are widely use for efficient discovery of when
1067                      the Iterable is actually a Collection
1068               -->
1069               <exclusionPattern>com/google/common/collect/Iterables.*</exclusionPattern>
1070             </exclusionPatterns>
1071           </configuration>
1072
1073           <executions>
1074             <execution>
1075               <id>modernizer</id>
1076               <phase>verify</phase>
1077               <goals>
1078                 <goal>modernizer</goal>
1079               </goals>
1080             </execution>
1081           </executions>
1082         </plugin>
1083
1084         <plugin>
1085           <groupId>org.apache.karaf.tooling</groupId>
1086           <artifactId>karaf-services-maven-plugin</artifactId>
1087           <version>${karaf.version}</version>
1088           <executions>
1089             <execution>
1090               <id>service-metadata-generate</id>
1091               <phase>process-classes</phase>
1092               <goals>
1093                 <goal>service-metadata-generate</goal>
1094               </goals>
1095             </execution>
1096           </executions>
1097         </plugin>
1098
1099         <plugin>
1100           <groupId>com.github.spotbugs</groupId>
1101           <artifactId>spotbugs-maven-plugin</artifactId>
1102           <version>4.8.5.0</version>
1103           <dependencies>
1104             <dependency>
1105               <groupId>com.github.spotbugs</groupId>
1106               <artifactId>spotbugs</artifactId>
1107               <version>4.8.5</version>
1108             </dependency>
1109             <dependency>
1110               <groupId>org.opendaylight.odlparent</groupId>
1111               <artifactId>spotbugs</artifactId>
1112               <version>14.0.0-SNAPSHOT</version>
1113             </dependency>
1114           </dependencies>
1115           <configuration>
1116             <plugins>
1117               <plugin>
1118                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1119                 <artifactId>bug-pattern</artifactId>
1120                 <version>1.5.0</version>
1121               </plugin>
1122             </plugins>
1123             <!--
1124               Enables analysis which takes more memory but finds more bugs.
1125               If you run out of memory, changes the value of the effort element
1126               to 'Low'.
1127             -->
1128             <effort>Max</effort>
1129             <!-- Reports all bugs (other values are medium and max) -->
1130             <threshold>Low</threshold>
1131             <!-- Build doesn't fail if problems are found -->
1132             <failOnError>${odlparent.spotbugs.enforce}</failOnError>
1133             <skip>${odlparent.spotbugs.skip}</skip>
1134             <!-- References the excluded rules -->
1135             <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1136             <!-- Produces XML report -->
1137             <xmlOutput>true</xmlOutput>
1138             <!-- Configures the directory in which the XML report is created -->
1139             <spotbugsXmlOutputDirectory>${project.build.directory}/spotbugs</spotbugsXmlOutputDirectory>
1140           </configuration>
1141           <executions>
1142             <!--
1143               Ensures that SpotBugs inspects source code when project is compiled.
1144             -->
1145             <execution>
1146               <id>analyze-compile</id>
1147               <phase>compile</phase>
1148               <goals>
1149                 <goal>check</goal>
1150               </goals>
1151             </execution>
1152           </executions>
1153         </plugin>
1154         <plugin>
1155           <groupId>org.codehaus.mojo</groupId>
1156           <artifactId>properties-maven-plugin</artifactId>
1157           <version>1.2.1</version>
1158         </plugin>
1159         <plugin>
1160           <groupId>org.eclipse.m2e</groupId>
1161           <artifactId>lifecycle-mapping</artifactId>
1162           <version>1.0.0</version>
1163           <configuration>
1164             <lifecycleMappingMetadata>
1165               <pluginExecutions>
1166                 <pluginExecution>
1167                   <pluginExecutionFilter>
1168                     <groupId>org.apache.felix</groupId>
1169                     <artifactId>maven-bundle-plugin</artifactId>
1170                     <versionRange>[1.0,)</versionRange>
1171                     <goals>
1172                       <goal>manifest</goal>
1173                     </goals>
1174                   </pluginExecutionFilter>
1175                   <action>
1176                     <execute/>
1177                   </action>
1178                 </pluginExecution>
1179                 <pluginExecution>
1180                   <pluginExecutionFilter>
1181                     <groupId>org.apache.maven.plugins</groupId>
1182                     <artifactId>maven-enforcer-plugin</artifactId>
1183                     <versionRange>[1.0.0,)</versionRange>
1184                     <goals>
1185                       <goal>enforce</goal>
1186                     </goals>
1187                   </pluginExecutionFilter>
1188                   <action>
1189                     <ignore/>
1190                   </action>
1191                 </pluginExecution>
1192                 <pluginExecution>
1193                   <pluginExecutionFilter>
1194                     <groupId>org.apache.maven.plugins</groupId>
1195                     <artifactId>maven-dependency-plugin</artifactId>
1196                     <versionRange>[2.10,)</versionRange>
1197                     <goals>
1198                       <goal>copy</goal>
1199                     </goals>
1200                   </pluginExecutionFilter>
1201                   <action>
1202                     <ignore/>
1203                   </action>
1204                 </pluginExecution>
1205                 <!-- The plugin will eventually be removed, remove this too at that point -->
1206                 <pluginExecution>
1207                   <pluginExecutionFilter>
1208                     <groupId>org.apache.maven.plugins</groupId>
1209                     <artifactId>maven-antrun-plugin</artifactId>
1210                     <versionRange>[1.8,)</versionRange>
1211                     <goals>
1212                       <goal>run</goal>
1213                     </goals>
1214                   </pluginExecutionFilter>
1215                   <action>
1216                     <ignore/>
1217                   </action>
1218                 </pluginExecution>
1219                 <pluginExecution>
1220                   <pluginExecutionFilter>
1221                     <groupId>org.apache.servicemix.tooling</groupId>
1222                     <artifactId>depends-maven-plugin</artifactId>
1223                     <versionRange>[1.2,)</versionRange>
1224                     <goals>
1225                       <goal>generate-depends-file</goal>
1226                     </goals>
1227                   </pluginExecutionFilter>
1228                   <action>
1229                     <execute/>
1230                   </action>
1231                 </pluginExecution>
1232                 <pluginExecution>
1233                   <pluginExecutionFilter>
1234                     <groupId>org.jacoco</groupId>
1235                     <artifactId>jacoco-maven-plugin</artifactId>
1236                     <versionRange>[0.7.0,)</versionRange>
1237                     <goals>
1238                       <goal>prepare-agent</goal>
1239                     </goals>
1240                   </pluginExecutionFilter>
1241                   <action>
1242                     <ignore/>
1243                   </action>
1244                 </pluginExecution>
1245
1246                 <pluginExecution>
1247                   <pluginExecutionFilter>
1248                     <groupId>org.ops4j.pax.exam</groupId>
1249                     <artifactId>maven-paxexam-plugin</artifactId>
1250                     <versionRange>[1.2.4,)</versionRange>
1251                     <goals>
1252                       <goal>generate-depends-file</goal>
1253                     </goals>
1254                   </pluginExecutionFilter>
1255                   <action>
1256                     <ignore/>
1257                   </action>
1258                 </pluginExecution>
1259
1260                 <pluginExecution>
1261                   <pluginExecutionFilter>
1262                     <groupId>org.basepom.maven</groupId>
1263                     <artifactId>
1264                       duplicate-finder-maven-plugin
1265                     </artifactId>
1266                     <versionRange>[1.2.1,)</versionRange>
1267                     <goals>
1268                       <goal>check</goal>
1269                     </goals>
1270                   </pluginExecutionFilter>
1271                   <action>
1272                     <ignore></ignore>
1273                   </action>
1274                 </pluginExecution>
1275               </pluginExecutions>
1276             </lifecycleMappingMetadata>
1277           </configuration>
1278         </plugin>
1279
1280         <plugin>
1281           <groupId>org.jacoco</groupId>
1282           <artifactId>jacoco-maven-plugin</artifactId>
1283           <configuration>
1284             <!-- Note: This exclusion list should match <sonar.exclusions>
1285                        property above -->
1286             <excludes>
1287               <exclude>**/gen/**</exclude>
1288               <exclude>**/generated-sources/**</exclude>
1289               <exclude>**/generated-test-sources/**</exclude>
1290               <exclude>**/yang-gen/**</exclude>
1291               <exclude>**/yang-gen-config/**</exclude>
1292               <exclude>**/yang-gen-sal/**</exclude>
1293               <exclude>**/yang-gen-code/**</exclude>
1294               <exclude>**/pax/**</exclude>
1295             </excludes>
1296           </configuration>
1297         </plugin>
1298
1299         <plugin>
1300           <groupId>org.ops4j.pax.exam</groupId>
1301           <artifactId>maven-paxexam-plugin</artifactId>
1302           <version>1.2.4</version>
1303         </plugin>
1304
1305         <!-- When updating this version, consider antl4-runtime above -->
1306         <plugin>
1307           <groupId>org.antlr</groupId>
1308           <artifactId>antlr4-maven-plugin</artifactId>
1309           <version>4.13.1</version>
1310         </plugin>
1311       </plugins>
1312     </pluginManagement>
1313
1314     <plugins>
1315       <plugin>
1316         <artifactId>maven-enforcer-plugin</artifactId>
1317         <executions>
1318           <execution>
1319             <id>enforce-banned-dependencies</id>
1320             <goals>
1321               <goal>enforce</goal>
1322             </goals>
1323             <configuration>
1324               <rules>
1325                 <bannedDependencies>
1326                   <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>
1327                   <excludes>
1328                     <exclude>org.mockito:mockito-all</exclude>
1329                     <exclude>com.google.code.findbugs:annotations</exclude>
1330                   </excludes>
1331                 </bannedDependencies>
1332               </rules>
1333               <fail>true</fail>
1334             </configuration>
1335           </execution>
1336         </executions>
1337       </plugin>
1338       <plugin>
1339         <groupId>org.basepom.maven</groupId>
1340         <artifactId>duplicate-finder-maven-plugin</artifactId>
1341         <executions>
1342           <execution>
1343             <id>find-duplicate-classpath-entries</id>
1344             <phase>verify</phase>
1345             <goals>
1346               <goal>check</goal>
1347             </goals>
1348           </execution>
1349         </executions>
1350         <configuration>
1351             <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1352             <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1353             <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1354             <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1355             <printEqualFiles>false</printEqualFiles>
1356             <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1357                  as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1358                  we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1359                  also ignore: -->
1360             <ignoredResourcePatterns>
1361               <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1362               <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1363               <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1364               <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1365               <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1366               <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1367               <ignoredResourcePattern>.api_description</ignoredResourcePattern>
1368             </ignoredResourcePatterns>
1369             <ignoredDependencies>
1370               <ignoredDependency>
1371                 <groupId>org.slf4j</groupId>
1372                 <artifactId>slf4j-simple</artifactId>
1373               </ignoredDependency>
1374               <ignoredDependency>
1375                 <groupId>org.opendaylight.odlparent</groupId>
1376                 <artifactId>opendaylight-karaf-empty</artifactId>
1377               </ignoredDependency>
1378             </ignoredDependencies>
1379         </configuration>
1380       </plugin>
1381       <plugin>
1382         <artifactId>maven-dependency-plugin</artifactId>
1383       </plugin>
1384       <plugin>
1385         <artifactId>maven-checkstyle-plugin</artifactId>
1386       </plugin>
1387       <plugin>
1388         <artifactId>maven-source-plugin</artifactId>
1389       </plugin>
1390       <plugin>
1391         <artifactId>maven-javadoc-plugin</artifactId>
1392       </plugin>
1393       <plugin>
1394         <groupId>org.gaul</groupId>
1395         <artifactId>modernizer-maven-plugin</artifactId>
1396       </plugin>
1397       <plugin>
1398         <groupId>com.github.spotbugs</groupId>
1399         <artifactId>spotbugs-maven-plugin</artifactId>
1400       </plugin>
1401
1402       <!-- Jacoco / Sonar -->
1403       <plugin>
1404         <groupId>org.jacoco</groupId>
1405         <artifactId>jacoco-maven-plugin</artifactId>
1406         <executions>
1407           <execution>
1408             <id>pre-unit-test</id>
1409             <goals>
1410               <goal>prepare-agent</goal>
1411             </goals>
1412           </execution>
1413           <execution>
1414             <id>report</id>
1415             <goals>
1416               <goal>report</goal>
1417             </goals>
1418           </execution>
1419         </executions>
1420       </plugin>
1421
1422       <plugin>
1423         <groupId>org.opendaylight.odlparent</groupId>
1424         <artifactId>copy-files-plugin</artifactId>
1425         <version>14.0.0-SNAPSHOT</version>
1426         <executions>
1427           <execution>
1428             <phase>prepare-package</phase>
1429             <goals>
1430               <goal>copy-files</goal>
1431             </goals>
1432             <configuration>
1433               <globs>
1434                 <glob>README*</glob>
1435                 <glob>CONTRIBUTING*</glob>
1436                 <glob>PROJECT_INFO.yaml</glob>
1437               </globs>
1438             </configuration>
1439           </execution>
1440         </executions>
1441       </plugin>
1442     </plugins>
1443   </build>
1444
1445   <reporting>
1446     <plugins>
1447       <plugin>
1448         <artifactId>maven-checkstyle-plugin</artifactId>
1449         <version>3.3.0</version>
1450       </plugin>
1451
1452       <!-- FIXME: activate this
1453       <plugin>
1454         <artifactId>maven-project-info-reports-plugin</artifactId>
1455       </plugin-->
1456       <plugin>
1457         <groupId>org.codehaus.mojo</groupId>
1458         <artifactId>jdepend-maven-plugin</artifactId>
1459         <reportSets>
1460           <reportSet>
1461             <reports>
1462               <report>generate-no-fork</report>
1463             </reports>
1464           </reportSet>
1465         </reportSets>
1466       </plugin>
1467     </plugins>
1468   </reporting>
1469 </project>
1470