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