Bump maven-bundle-plugin
[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.1</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.76.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.metatype.annotations</artifactId>
520         <version>1.4.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.resolver</artifactId>
533         <version>1.1.1</version>
534         <scope>provided</scope>
535       </dependency>
536       <dependency>
537         <groupId>org.osgi</groupId>
538         <artifactId>org.osgi.service.url</artifactId>
539         <version>1.0.1</version>
540         <scope>provided</scope>
541       </dependency>
542       <dependency>
543         <groupId>org.osgi</groupId>
544         <artifactId>org.osgi.util.tracker</artifactId>
545         <version>1.5.3</version>
546         <scope>provided</scope>
547       </dependency>
548
549       <!-- for https://jira.opendaylight.org/browse/ODLPARENT-24 -->
550       <dependency>
551         <groupId>org.apache.aries.quiesce</groupId>
552         <artifactId>org.apache.aries.quiesce.api</artifactId>
553         <version>1.0.0</version>
554       </dependency>
555
556       <!-- LMAX Disruptor -->
557       <dependency>
558         <groupId>com.lmax</groupId>
559         <artifactId>disruptor</artifactId>
560         <version>3.4.4</version>
561       </dependency>
562
563       <!-- Add Pax Exam -->
564       <dependency>
565         <groupId>org.ops4j.pax.exam</groupId>
566         <artifactId>pax-exam</artifactId>
567         <version>4.13.5</version>
568         <scope>test</scope>
569       </dependency>
570       <dependency>
571         <groupId>org.ops4j.pax.exam</groupId>
572         <artifactId>pax-exam-container-forked</artifactId>
573         <version>4.13.5</version>
574         <scope>test</scope>
575       </dependency>
576       <dependency>
577         <groupId>org.ops4j.pax.exam</groupId>
578         <artifactId>pax-exam-container-karaf</artifactId>
579         <version>4.13.5</version>
580         <scope>test</scope>
581       </dependency>
582       <dependency>
583         <groupId>org.ops4j.pax.exam</groupId>
584         <artifactId>pax-exam-container-native</artifactId>
585         <version>4.13.5</version>
586         <scope>test</scope>
587       </dependency>
588       <dependency>
589         <groupId>org.ops4j.pax.exam</groupId>
590         <artifactId>pax-exam-extender-service</artifactId>
591         <version>4.13.5</version>
592         <scope>test</scope>
593       </dependency>
594       <dependency>
595         <groupId>org.ops4j.pax.exam</groupId>
596         <artifactId>pax-exam-inject</artifactId>
597         <version>4.13.5</version>
598         <scope>test</scope>
599       </dependency>
600       <dependency>
601         <groupId>org.ops4j.pax.exam</groupId>
602         <artifactId>pax-exam-invoker-junit</artifactId>
603         <version>4.13.5</version>
604         <scope>test</scope>
605       </dependency>
606       <dependency>
607         <groupId>org.ops4j.pax.exam</groupId>
608         <artifactId>pax-exam-features</artifactId>
609         <version>4.13.5</version>
610         <type>xml</type>
611         <scope>test</scope>
612       </dependency>
613       <dependency>
614         <groupId>org.ops4j.pax.exam</groupId>
615         <artifactId>pax-exam-junit4</artifactId>
616         <version>4.13.5</version>
617         <scope>test</scope>
618       </dependency>
619       <dependency>
620         <groupId>org.ops4j.pax.exam</groupId>
621         <artifactId>pax-exam-link-mvn</artifactId>
622         <version>4.13.5</version>
623         <scope>test</scope>
624       </dependency>
625       <dependency>
626         <groupId>org.ops4j.pax.exam</groupId>
627         <artifactId>pax-exam-link-assembly</artifactId>
628         <version>4.13.5</version>
629         <scope>test</scope>
630       </dependency>
631
632       <dependency>
633         <groupId>org.ops4j.pax.url</groupId>
634         <artifactId>pax-url-link</artifactId>
635         <version>2.6.10</version>
636         <scope>test</scope>
637       </dependency>
638       <dependency>
639         <groupId>org.ops4j.pax.url</groupId>
640         <artifactId>pax-url-aether</artifactId>
641         <version>2.6.10</version>
642         <scope>test</scope>
643       </dependency>
644       <dependency>
645         <groupId>org.ops4j.pax.url</groupId>
646         <artifactId>pax-url-wrap</artifactId>
647         <version>2.6.10</version>
648       </dependency>
649
650       <dependency>
651         <groupId>org.springframework.osgi</groupId>
652         <artifactId>spring-osgi-mock</artifactId>
653         <version>1.2.1</version>
654         <scope>test</scope>
655       </dependency>
656
657       <dependency>
658         <groupId>org.xmlunit</groupId>
659         <artifactId>xmlunit-core</artifactId>
660         <version>2.9.0</version>
661         <scope>test</scope>
662       </dependency>
663       <dependency>
664         <groupId>org.xmlunit</groupId>
665         <artifactId>xmlunit-assertj</artifactId>
666         <version>2.9.0</version>
667         <scope>test</scope>
668       </dependency>
669       <dependency>
670         <groupId>org.xmlunit</groupId>
671         <artifactId>xmlunit-assertj3</artifactId>
672         <version>2.9.0</version>
673         <scope>test</scope>
674       </dependency>
675       <dependency>
676         <groupId>org.xmlunit</groupId>
677         <artifactId>xmlunit-matchers</artifactId>
678         <version>2.9.0</version>
679         <scope>test</scope>
680       </dependency>
681       <!-- FIXME: remove this once we have migrated over -->
682       <dependency>
683         <groupId>org.xmlunit</groupId>
684         <artifactId>xmlunit-legacy</artifactId>
685         <version>2.9.0</version>
686         <scope>test</scope>
687       </dependency>
688
689       <!-- Annotations for modernizer-maven-plugin -->
690       <dependency>
691         <groupId>org.gaul</groupId>
692         <artifactId>modernizer-maven-annotations</artifactId>
693         <!-- This should match the plugin version below -->
694         <version>2.4.0</version>
695         <scope>provided</scope>
696       </dependency>
697
698       <dependency>
699         <groupId>org.eclipse.jetty</groupId>
700         <artifactId>jetty-bom</artifactId>
701         <version>9.4.46.v20220331</version>
702         <scope>import</scope>
703         <type>pom</type>
704       </dependency>
705
706       <!-- Annotations -->
707       <!-- A better alternative for javax.inject, from https://guicedee.com/ -->
708       <dependency>
709         <groupId>com.guicedee.services</groupId>
710         <artifactId>javax.inject</artifactId>
711         <version>1.0.20.0</version>
712         <scope>provided</scope>
713         <optional>true</optional>
714       </dependency>
715
716       <!-- jung, a graph library -->
717       <dependency>
718         <groupId>net.sf.jung</groupId>
719         <artifactId>jung-api</artifactId>
720         <version>2.1.1</version>
721       </dependency>
722       <dependency>
723         <groupId>net.sf.jung</groupId>
724         <artifactId>jung-algorithms</artifactId>
725         <version>2.1.1</version>
726       </dependency>
727       <dependency>
728         <groupId>net.sf.jung</groupId>
729         <artifactId>jung-graph-impl</artifactId>
730         <version>2.1.1</version>
731       </dependency>
732
733       <!-- ThreeTen-Extra, date/time complements -->
734       <dependency>
735         <groupId>org.threeten</groupId>
736         <artifactId>threeten-extra</artifactId>
737         <version>1.7.0</version>
738       </dependency>
739
740       <!-- When updating this version, consider antl4-maven-plugin below -->
741       <dependency>
742         <groupId>org.antlr</groupId>
743         <artifactId>antlr4-runtime</artifactId>
744         <version>4.9.3</version>
745       </dependency>
746
747       <!-- TrieMap library -->
748       <dependency>
749         <groupId>tech.pantheon.triemap</groupId>
750         <artifactId>bom</artifactId>
751         <version>1.2.0</version>
752         <scope>import</scope>
753         <type>pom</type>
754       </dependency>
755
756       <!-- Dropwizard metrics -->
757       <dependency>
758         <groupId>io.dropwizard.metrics</groupId>
759         <artifactId>metrics-bom</artifactId>
760         <version>4.2.9</version>
761         <scope>import</scope>
762         <type>pom</type>
763       </dependency>
764
765       <!-- Sonar/JaCoCo integration -->
766       <dependency>
767         <groupId>org.sonarsource.java</groupId>
768         <artifactId>sonar-jacoco-listeners</artifactId>
769         <version>${sonar-jacoco-listeners.version}</version>
770         <scope>test</scope>
771       </dependency>
772     </dependencies>
773   </dependencyManagement>
774
775   <dependencies>
776     <!--
777          We expect slf4j-api to be provided by the platform.
778          Karaf provides it, other containers need to provide it themselves.
779     -->
780     <dependency>
781       <groupId>org.slf4j</groupId>
782       <artifactId>slf4j-api</artifactId>
783       <scope>provided</scope>
784     </dependency>
785
786     <!--
787           Enable useful code quality annotations everywhere. Since these annotations
788           are not required at runtime.
789     -->
790     <dependency>
791       <groupId>org.eclipse.jdt</groupId>
792       <artifactId>org.eclipse.jdt.annotation</artifactId>
793       <scope>provided</scope>
794     </dependency>
795     <dependency>
796       <groupId>com.github.spotbugs</groupId>
797       <artifactId>spotbugs-annotations</artifactId>
798       <scope>provided</scope>
799       <optional>true</optional>
800     </dependency>
801     <dependency>
802       <groupId>org.gaul</groupId>
803       <artifactId>modernizer-maven-annotations</artifactId>
804       <scope>provided</scope>
805     </dependency>
806
807     <!--
808           Testing output should be routed through slf4j-simple.
809     -->
810     <dependency>
811       <groupId>org.slf4j</groupId>
812       <artifactId>slf4j-simple</artifactId>
813       <scope>test</scope>
814     </dependency>
815
816     <!--
817           Unit tests can use JUnit + Mockito + Hamcrest by default.
818     -->
819     <dependency>
820       <groupId>org.hamcrest</groupId>
821       <artifactId>hamcrest</artifactId>
822       <scope>test</scope>
823     </dependency>
824     <dependency>
825       <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
826       <groupId>org.hamcrest</groupId>
827       <artifactId>hamcrest-library</artifactId>
828       <scope>test</scope>
829     </dependency>
830
831     <!-- JUnit 5 integration -->
832     <dependency>
833       <groupId>org.junit.jupiter</groupId>
834       <artifactId>junit-jupiter-api</artifactId>
835       <scope>test</scope>
836     </dependency>
837     <dependency>
838       <groupId>org.junit.jupiter</groupId>
839       <artifactId>junit-jupiter-engine</artifactId>
840       <scope>test</scope>
841     </dependency>
842     <dependency>
843       <groupId>org.mockito</groupId>
844       <artifactId>mockito-junit-jupiter</artifactId>
845       <scope>test</scope>
846     </dependency>
847
848     <!-- JUnit 4 integration -->
849     <dependency>
850       <groupId>junit</groupId>
851       <artifactId>junit</artifactId>
852       <scope>test</scope>
853     </dependency>
854     <dependency>
855       <groupId>org.junit.jupiter</groupId>
856       <artifactId>junit-jupiter-migrationsupport</artifactId>
857       <scope>test</scope>
858     </dependency>
859     <dependency>
860       <groupId>org.junit.vintage</groupId>
861       <artifactId>junit-vintage-engine</artifactId>
862       <scope>test</scope>
863     </dependency>
864     <dependency>
865       <groupId>org.mockito</groupId>
866       <artifactId>mockito-core</artifactId>
867       <scope>test</scope>
868     </dependency>
869   </dependencies>
870
871   <build>
872     <pluginManagement>
873       <plugins>
874         <!-- Official maven plugins, alpha-sorted by artifactId.
875              We do not need to specify the groupId. -->
876         <plugin>
877           <artifactId>maven-checkstyle-plugin</artifactId>
878           <version>3.1.2</version>
879           <dependencies>
880             <dependency>
881               <groupId>com.puppycrawl.tools</groupId>
882               <artifactId>checkstyle</artifactId>
883               <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
884               <version>10.1</version>
885             </dependency>
886             <dependency>
887               <groupId>org.opendaylight.odlparent</groupId>
888               <artifactId>checkstyle</artifactId>
889               <version>11.0.0-SNAPSHOT</version>
890             </dependency>
891             <dependency>
892               <groupId>com.github.sevntu-checkstyle</groupId>
893               <artifactId>sevntu-checks</artifactId>
894               <version>1.41.0</version>
895             </dependency>
896           </dependencies>
897           <configuration>
898             <configLocation>odl_checks.xml</configLocation>
899             <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
900             <!-- <sourceDirectories> are needed so that checkstyle ignores the
901                  generated sources directory -->
902             <sourceDirectories>
903               <directory>${project.build.sourceDirectory}</directory>
904             </sourceDirectories>
905             <includeResources>true</includeResources>
906             <includeTestSourceDirectory>true</includeTestSourceDirectory>
907             <includeTestResources>true</includeTestResources>
908             <includes>**\/*.java</includes>
909             <excludes>
910               org/opendaylight/yang/gen/**,
911               **/protobuff/messages/**,
912               **/thrift/gen/*.java,
913               **/module-info.java
914             </excludes>
915             <failsOnError>false</failsOnError>
916             <consoleOutput>true</consoleOutput>
917           </configuration>
918           <executions>
919             <execution>
920               <id>check-license</id>
921               <goals>
922                 <goal>check</goal>
923               </goals>
924               <phase>process-sources</phase>
925               <configuration>
926                 <configLocation>check-license.xml</configLocation>
927                 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
928                 <includeResources>false</includeResources>
929                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
930                 <includeTestResources>false</includeTestResources>
931                 <sourceDirectories>
932                   <directory>${project.build.sourceDirectory}</directory>
933                 </sourceDirectories>
934                 <excludes>
935                   org/opendaylight/yang/gen/**,
936                   **/protobuff/messages/**,
937                   **/thrift/gen/*.java
938                 </excludes>
939                 <failsOnError>false</failsOnError>
940                 <consoleOutput>true</consoleOutput>
941               </configuration>
942             </execution>
943             <execution>
944               <goals>
945                 <goal>check</goal>
946               </goals>
947               <phase>process-sources</phase>
948               <configuration>
949                 <failOnViolation>${odlparent.checkstyle.enforce}</failOnViolation>
950                 <skip>${odlparent.checkstyle.skip}</skip>
951                 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
952               </configuration>
953             </execution>
954           </executions>
955         </plugin>
956         <plugin>
957           <artifactId>maven-compiler-plugin</artifactId>
958           <configuration>
959             <showWarnings>true</showWarnings>
960             <compilerArgs>
961               <arg>-parameters</arg>
962               <arg>-Xlint:all</arg>
963               <!-- Disable 'No processor claimed any of these annotations' -->
964               <arg>-Xlint:-processing</arg>
965               <!-- Disable 'declares no explicit constructors, thereby exposing a default constructor'
966                    because it causes a lot of warnings in downstreams. -->
967               <arg>-Xlint:-missing-explicit-ctor</arg>
968             </compilerArgs>
969             <annotationProcessorPaths>
970               <dependency>
971                 <groupId>org.immutables</groupId>
972                 <artifactId>value</artifactId>
973                 <!-- Keep this version in sync with dependency declaration above -->
974                 <version>2.8.8</version>
975               </dependency>
976               <dependency>
977                 <groupId>org.kohsuke.metainf-services</groupId>
978                 <artifactId>metainf-services</artifactId>
979                 <!-- Keep this version in sync with dependency declaration above -->
980                 <version>1.9</version>
981               </dependency>
982             </annotationProcessorPaths>
983           </configuration>
984         </plugin>
985         <plugin>
986           <artifactId>maven-failsafe-plugin</artifactId>
987           <version>3.0.0-M6</version>
988         </plugin>
989         <plugin>
990           <artifactId>maven-invoker-plugin</artifactId>
991           <version>3.2.2</version>
992         </plugin>
993         <plugin>
994           <artifactId>maven-dependency-plugin</artifactId>
995           <executions>
996             <execution>
997               <id>unpack-license</id>
998               <phase>generate-resources</phase>
999               <goals>
1000                 <goal>copy</goal>
1001               </goals>
1002               <configuration>
1003                 <artifactItems>
1004                   <artifactItem>
1005                     <groupId>org.opendaylight.odlparent</groupId>
1006                     <artifactId>odl-license</artifactId>
1007                     <version>11.0.0-SNAPSHOT</version>
1008                     <type>license</type>
1009                     <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1010                     <destFileName>LICENSE</destFileName>
1011                     <overWrite>false</overWrite>
1012                   </artifactItem>
1013                 </artifactItems>
1014                 <silent>true</silent>
1015               </configuration>
1016             </execution>
1017             <execution>
1018               <id>analyze-declarations</id>
1019               <goals>
1020                 <goal>analyze-only</goal>
1021               </goals>
1022               <configuration>
1023                 <failOnWarning>${odlparent.dependency.enforce}</failOnWarning>
1024                 <ignoreNonCompile>true</ignoreNonCompile>
1025                 <skip>${odlparent.dependency.skip}</skip>
1026               </configuration>
1027             </execution>
1028           </executions>
1029         </plugin>
1030
1031         <plugin>
1032           <artifactId>maven-plugin-plugin</artifactId>
1033           <version>3.6.2</version>
1034         </plugin>
1035
1036         <plugin>
1037           <artifactId>maven-remote-resources-plugin</artifactId>
1038           <version>1.7.0</version>
1039         </plugin>
1040         <plugin>
1041           <artifactId>maven-shade-plugin</artifactId>
1042           <version>3.3.0</version>
1043         </plugin>
1044         <plugin>
1045           <artifactId>maven-source-plugin</artifactId>
1046           <version>3.2.1</version>
1047           <executions>
1048             <execution>
1049               <id>attach-sources</id>
1050               <phase>verify</phase>
1051               <goals>
1052                 <goal>jar-no-fork</goal>
1053               </goals>
1054             </execution>
1055           </executions>
1056         </plugin>
1057         <plugin>
1058           <artifactId>maven-surefire-plugin</artifactId>
1059           <version>3.0.0-M6</version>
1060           <configuration>
1061             <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1062             <trimStackTrace>false</trimStackTrace>
1063           </configuration>
1064         </plugin>
1065
1066         <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1067         <plugin>
1068           <groupId>org.basepom.maven</groupId>
1069           <artifactId>duplicate-finder-maven-plugin</artifactId>
1070           <version>1.5.0</version>
1071         </plugin>
1072
1073         <plugin>
1074           <groupId>com.github.ekryd.echo-maven-plugin</groupId>
1075           <artifactId>echo-maven-plugin</artifactId>
1076           <version>1.3.2</version>
1077         </plugin>
1078
1079         <plugin>
1080           <groupId>org.apache.felix</groupId>
1081           <artifactId>maven-bundle-plugin</artifactId>
1082           <version>5.1.5</version>
1083           <extensions>true</extensions>
1084           <configuration>
1085             <instructions>
1086               <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1087                    so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1088                    and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present.  -->
1089               <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>
1090
1091               <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1092                    to generate Import-Service and Export-Service headers. -->
1093               <_removeheaders>Import-Service,Export-Service</_removeheaders>
1094             </instructions>
1095           </configuration>
1096         </plugin>
1097
1098         <plugin>
1099           <groupId>org.apache.karaf.tooling</groupId>
1100           <artifactId>karaf-maven-plugin</artifactId>
1101           <version>${karaf.version}</version>
1102           <extensions>true</extensions>
1103         </plugin>
1104
1105         <plugin>
1106           <groupId>org.apache.servicemix.tooling</groupId>
1107           <artifactId>depends-maven-plugin</artifactId>
1108           <version>1.4.0</version>
1109           <executions>
1110             <execution>
1111               <id>generate-depends-file</id>
1112               <goals>
1113                 <goal>generate-depends-file</goal>
1114               </goals>
1115             </execution>
1116           </executions>
1117         </plugin>
1118
1119         <plugin>
1120           <groupId>com.webcohesion.enunciate</groupId>
1121           <artifactId>enunciate-maven-plugin</artifactId>
1122           <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1123           <version>2.13.3</version>
1124         </plugin>
1125
1126         <plugin>
1127           <groupId>org.gaul</groupId>
1128           <artifactId>modernizer-maven-plugin</artifactId>
1129           <version>2.4.0</version>
1130           <configuration>
1131             <javaVersion>${odlparent.modernizer.target}</javaVersion>
1132             <failOnViolations>${odlparent.modernizer.enforce}</failOnViolations>
1133             <skip>${odlparent.modernizer.skip}</skip>
1134
1135             <exclusionPatterns>
1136               <!-- We are using Guava as per normal and we have grown a large body of code
1137                    around the patterns there. Furthermore the suggested replacements have
1138                    different behavior, hence we do NOT want to blindly migrate. Examples
1139                    include:
1140
1141                    - Iterables, which we are widely use for efficient discovery of when
1142                      the Iterable is actually a Collection
1143               -->
1144               <exclusionPattern>com/google/common/collect/Iterables.*</exclusionPattern>
1145             </exclusionPatterns>
1146           </configuration>
1147
1148           <executions>
1149             <execution>
1150               <id>modernizer</id>
1151               <phase>verify</phase>
1152               <goals>
1153                 <goal>modernizer</goal>
1154               </goals>
1155             </execution>
1156           </executions>
1157         </plugin>
1158
1159         <plugin>
1160           <groupId>org.apache.karaf.tooling</groupId>
1161           <artifactId>karaf-services-maven-plugin</artifactId>
1162           <version>${karaf.version}</version>
1163           <executions>
1164             <execution>
1165               <id>service-metadata-generate</id>
1166               <phase>process-classes</phase>
1167               <goals>
1168                 <goal>service-metadata-generate</goal>
1169               </goals>
1170             </execution>
1171           </executions>
1172         </plugin>
1173
1174         <plugin>
1175           <groupId>com.github.spotbugs</groupId>
1176           <artifactId>spotbugs-maven-plugin</artifactId>
1177           <version>4.6.0.0</version>
1178           <dependencies>
1179             <dependency>
1180               <groupId>com.github.spotbugs</groupId>
1181               <artifactId>spotbugs</artifactId>
1182               <version>4.6.0</version>
1183             </dependency>
1184             <dependency>
1185               <groupId>org.opendaylight.odlparent</groupId>
1186               <artifactId>spotbugs</artifactId>
1187               <version>11.0.0-SNAPSHOT</version>
1188             </dependency>
1189             <dependency>
1190               <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 4 -->
1191               <groupId>org.slf4j</groupId>
1192               <artifactId>slf4j-simple</artifactId>
1193               <version>1.8.0-beta4</version>
1194             </dependency>
1195           </dependencies>
1196           <configuration>
1197             <plugins>
1198               <plugin>
1199                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1200                 <artifactId>bug-pattern</artifactId>
1201                 <version>1.5.0</version>
1202               </plugin>
1203             </plugins>
1204             <!--
1205               Enables analysis which takes more memory but finds more bugs.
1206               If you run out of memory, changes the value of the effort element
1207               to 'Low'.
1208             -->
1209             <effort>Max</effort>
1210             <!-- Reports all bugs (other values are medium and max) -->
1211             <threshold>Low</threshold>
1212             <!-- Build doesn't fail if problems are found -->
1213             <failOnError>${odlparent.spotbugs.enforce}</failOnError>
1214             <skip>${odlparent.spotbugs.skip}</skip>
1215             <!-- References the excluded rules -->
1216             <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1217             <!-- Produces XML report -->
1218             <xmlOutput>true</xmlOutput>
1219             <!-- Configures the directory in which the XML report is created -->
1220             <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1221           </configuration>
1222           <executions>
1223             <!--
1224               Ensures that SpotBugs inspects source code when project is compiled.
1225             -->
1226             <execution>
1227               <id>analyze-compile</id>
1228               <phase>compile</phase>
1229               <goals>
1230                 <goal>check</goal>
1231               </goals>
1232             </execution>
1233           </executions>
1234         </plugin>
1235         <plugin>
1236           <groupId>org.codehaus.mojo</groupId>
1237           <artifactId>properties-maven-plugin</artifactId>
1238           <version>1.0.0</version>
1239         </plugin>
1240         <plugin>
1241           <groupId>org.eclipse.m2e</groupId>
1242           <artifactId>lifecycle-mapping</artifactId>
1243           <version>1.0.0</version>
1244           <configuration>
1245             <lifecycleMappingMetadata>
1246               <pluginExecutions>
1247                 <pluginExecution>
1248                   <pluginExecutionFilter>
1249                     <groupId>org.apache.felix</groupId>
1250                     <artifactId>maven-bundle-plugin</artifactId>
1251                     <versionRange>[1.0,)</versionRange>
1252                     <goals>
1253                       <goal>manifest</goal>
1254                     </goals>
1255                   </pluginExecutionFilter>
1256                   <action>
1257                     <execute/>
1258                   </action>
1259                 </pluginExecution>
1260                 <pluginExecution>
1261                   <pluginExecutionFilter>
1262                     <groupId>org.apache.maven.plugins</groupId>
1263                     <artifactId>maven-enforcer-plugin</artifactId>
1264                     <versionRange>[1.0.0,)</versionRange>
1265                     <goals>
1266                       <goal>enforce</goal>
1267                     </goals>
1268                   </pluginExecutionFilter>
1269                   <action>
1270                     <ignore/>
1271                   </action>
1272                 </pluginExecution>
1273                 <pluginExecution>
1274                   <pluginExecutionFilter>
1275                     <groupId>org.apache.maven.plugins</groupId>
1276                     <artifactId>maven-dependency-plugin</artifactId>
1277                     <versionRange>[2.10,)</versionRange>
1278                     <goals>
1279                       <goal>copy</goal>
1280                     </goals>
1281                   </pluginExecutionFilter>
1282                   <action>
1283                     <ignore/>
1284                   </action>
1285                 </pluginExecution>
1286                 <!-- The plugin will eventually be removed, remove this too at that point -->
1287                 <pluginExecution>
1288                   <pluginExecutionFilter>
1289                     <groupId>org.apache.maven.plugins</groupId>
1290                     <artifactId>maven-antrun-plugin</artifactId>
1291                     <versionRange>[1.8,)</versionRange>
1292                     <goals>
1293                       <goal>run</goal>
1294                     </goals>
1295                   </pluginExecutionFilter>
1296                   <action>
1297                     <ignore/>
1298                   </action>
1299                 </pluginExecution>
1300                 <pluginExecution>
1301                   <pluginExecutionFilter>
1302                     <groupId>org.apache.servicemix.tooling</groupId>
1303                     <artifactId>depends-maven-plugin</artifactId>
1304                     <versionRange>[1.2,)</versionRange>
1305                     <goals>
1306                       <goal>generate-depends-file</goal>
1307                     </goals>
1308                   </pluginExecutionFilter>
1309                   <action>
1310                     <execute/>
1311                   </action>
1312                 </pluginExecution>
1313                 <pluginExecution>
1314                   <pluginExecutionFilter>
1315                     <groupId>org.jacoco</groupId>
1316                     <artifactId>jacoco-maven-plugin</artifactId>
1317                     <versionRange>[0.7.0,)</versionRange>
1318                     <goals>
1319                       <goal>prepare-agent</goal>
1320                     </goals>
1321                   </pluginExecutionFilter>
1322                   <action>
1323                     <ignore/>
1324                   </action>
1325                 </pluginExecution>
1326
1327                 <pluginExecution>
1328                   <pluginExecutionFilter>
1329                     <groupId>org.ops4j.pax.exam</groupId>
1330                     <artifactId>maven-paxexam-plugin</artifactId>
1331                     <versionRange>[1.2.4,)</versionRange>
1332                     <goals>
1333                       <goal>generate-depends-file</goal>
1334                     </goals>
1335                   </pluginExecutionFilter>
1336                   <action>
1337                     <ignore/>
1338                   </action>
1339                 </pluginExecution>
1340
1341                 <pluginExecution>
1342                   <pluginExecutionFilter>
1343                     <groupId>org.basepom.maven</groupId>
1344                     <artifactId>
1345                       duplicate-finder-maven-plugin
1346                     </artifactId>
1347                     <versionRange>[1.2.1,)</versionRange>
1348                     <goals>
1349                       <goal>check</goal>
1350                     </goals>
1351                   </pluginExecutionFilter>
1352                   <action>
1353                     <ignore></ignore>
1354                   </action>
1355                 </pluginExecution>
1356               </pluginExecutions>
1357             </lifecycleMappingMetadata>
1358           </configuration>
1359         </plugin>
1360
1361         <plugin>
1362           <groupId>org.jacoco</groupId>
1363           <artifactId>jacoco-maven-plugin</artifactId>
1364           <configuration>
1365             <!-- Note: This exclusion list should match <sonar.exclusions>
1366                        property above -->
1367             <excludes>
1368               <exclude>**/gen/**</exclude>
1369               <exclude>**/generated-sources/**</exclude>
1370               <exclude>**/generated-test-sources/**</exclude>
1371               <exclude>**/yang-gen/**</exclude>
1372               <exclude>**/yang-gen-config/**</exclude>
1373               <exclude>**/yang-gen-sal/**</exclude>
1374               <exclude>**/yang-gen-code/**</exclude>
1375               <exclude>**/pax/**</exclude>
1376             </excludes>
1377           </configuration>
1378         </plugin>
1379
1380         <plugin>
1381           <groupId>org.ops4j.pax.exam</groupId>
1382           <artifactId>maven-paxexam-plugin</artifactId>
1383           <version>1.2.4</version>
1384         </plugin>
1385
1386         <!-- When updating this version, consider antl4-runtime above -->
1387         <plugin>
1388           <groupId>org.antlr</groupId>
1389           <artifactId>antlr4-maven-plugin</artifactId>
1390           <version>4.9.3</version>
1391         </plugin>
1392       </plugins>
1393     </pluginManagement>
1394
1395     <plugins>
1396       <plugin>
1397         <artifactId>maven-enforcer-plugin</artifactId>
1398         <executions>
1399           <execution>
1400             <id>enforce-banned-dependencies</id>
1401             <goals>
1402               <goal>enforce</goal>
1403             </goals>
1404             <configuration>
1405               <rules>
1406                 <bannedDependencies>
1407                   <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>
1408                   <excludes>
1409                     <exclude>org.mockito:mockito-all</exclude>
1410                     <exclude>com.google.code.findbugs:annotations</exclude>
1411                   </excludes>
1412                 </bannedDependencies>
1413               </rules>
1414               <fail>true</fail>
1415             </configuration>
1416           </execution>
1417         </executions>
1418       </plugin>
1419       <plugin>
1420         <groupId>org.basepom.maven</groupId>
1421         <artifactId>duplicate-finder-maven-plugin</artifactId>
1422         <executions>
1423           <execution>
1424             <id>find-duplicate-classpath-entries</id>
1425             <phase>verify</phase>
1426             <goals>
1427               <goal>check</goal>
1428             </goals>
1429           </execution>
1430         </executions>
1431         <configuration>
1432             <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1433             <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1434             <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1435             <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1436             <printEqualFiles>false</printEqualFiles>
1437             <quiet>true</quiet>
1438             <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1439                  as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1440                  we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1441                  also ignore: -->
1442             <ignoredResourcePatterns>
1443               <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1444               <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1445               <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1446               <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1447               <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1448               <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1449               <ignoredResourcePattern>.api_description</ignoredResourcePattern>
1450             </ignoredResourcePatterns>
1451             <ignoredDependencies>
1452               <ignoredDependency>
1453                 <groupId>org.slf4j</groupId>
1454                 <artifactId>slf4j-simple</artifactId>
1455               </ignoredDependency>
1456               <ignoredDependency>
1457                 <groupId>org.opendaylight.odlparent</groupId>
1458                 <artifactId>opendaylight-karaf-empty</artifactId>
1459               </ignoredDependency>
1460             </ignoredDependencies>
1461         </configuration>
1462       </plugin>
1463       <plugin>
1464         <artifactId>maven-dependency-plugin</artifactId>
1465       </plugin>
1466       <plugin>
1467         <artifactId>maven-checkstyle-plugin</artifactId>
1468       </plugin>
1469       <plugin>
1470         <artifactId>maven-source-plugin</artifactId>
1471       </plugin>
1472       <plugin>
1473         <artifactId>maven-javadoc-plugin</artifactId>
1474       </plugin>
1475       <plugin>
1476         <groupId>org.gaul</groupId>
1477         <artifactId>modernizer-maven-plugin</artifactId>
1478       </plugin>
1479       <plugin>
1480         <groupId>com.github.spotbugs</groupId>
1481         <artifactId>spotbugs-maven-plugin</artifactId>
1482       </plugin>
1483
1484       <!-- Jacoco / Sonar -->
1485       <plugin>
1486         <groupId>org.jacoco</groupId>
1487         <artifactId>jacoco-maven-plugin</artifactId>
1488         <executions>
1489           <execution>
1490             <id>pre-unit-test</id>
1491             <goals>
1492               <goal>prepare-agent</goal>
1493             </goals>
1494           </execution>
1495           <execution>
1496             <id>report</id>
1497             <goals>
1498               <goal>report</goal>
1499             </goals>
1500           </execution>
1501         </executions>
1502       </plugin>
1503
1504       <plugin>
1505         <groupId>org.opendaylight.odlparent</groupId>
1506         <artifactId>copy-files-plugin</artifactId>
1507         <version>11.0.0-SNAPSHOT</version>
1508         <executions>
1509           <execution>
1510             <phase>prepare-package</phase>
1511             <goals>
1512               <goal>copy-files</goal>
1513             </goals>
1514             <configuration>
1515               <globs>
1516                 <glob>README*</glob>
1517                 <glob>CONTRIBUTING*</glob>
1518                 <glob>PROJECT_INFO.yaml</glob>
1519               </globs>
1520             </configuration>
1521           </execution>
1522         </executions>
1523       </plugin>
1524     </plugins>
1525   </build>
1526
1527   <reporting>
1528     <plugins>
1529       <plugin>
1530         <artifactId>maven-checkstyle-plugin</artifactId>
1531         <version>3.1.0</version>
1532       </plugin>
1533
1534       <!-- FIXME: activate this
1535       <plugin>
1536         <artifactId>maven-project-info-reports-plugin</artifactId>
1537       </plugin-->
1538       <plugin>
1539         <groupId>org.codehaus.mojo</groupId>
1540         <artifactId>jdepend-maven-plugin</artifactId>
1541         <reportSets>
1542           <reportSet>
1543             <reports>
1544               <report>generate-no-fork</report>
1545             </reports>
1546           </reportSet>
1547         </reportSets>
1548       </plugin>
1549     </plugins>
1550   </reporting>
1551 </project>
1552