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