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