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