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