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