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