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