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