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