Bump Netty to 4.1.56
[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>8.1.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/view/ODL_Root_Parent:Main</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     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
42
43     <!-- Java Versions -->
44     <maven.compiler.release>11</maven.compiler.release>
45
46     <!-- Used in controller, genius, infrautils, netconf, netvirt, ovsdb, serviceutils -->
47     <karaf.version>4.3.0</karaf.version>
48
49     <!-- Supporting Libraries -->
50     <!-- Only used internally -->
51     <bouncycastle.version>1.66</bouncycastle.version>
52
53     <!-- JaCoCo configuration, by default tied to Sonar configuration, but can be overridden separately
54          to allow projects to report Sonar values from the entire project. -->
55     <jacoco.destFile>${project.build.directory}/code-coverage/jacoco.exec</jacoco.destFile>
56     <jacoco.dataFile>${jacoco.destFile}</jacoco.dataFile>
57
58     <!-- Default Sonar configuration -->
59     <sonar.java.source>${maven.compiler.release}</sonar.java.source>
60     <sonar-jacoco-listeners.version>3.8</sonar-jacoco-listeners.version>
61     <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
62
63     <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
64     <sonar.exclusions>**/gen/**,**/generated-sources/**,**/generated-test-sources/**,**/yang-gen/**,**/yang-gen-config/**,**/yang-gen-sal/**,**/yang-gen-code/**,**/pax/**</sonar.exclusions>
65
66     <!-- Opt-in code quality checks -->
67     <pmd.cpd.fail>false</pmd.cpd.fail>                  <!-- Copy/paste detection -->
68     <duplicate-finder.skip>true</duplicate-finder.skip> <!-- Classpath duplicates -->
69
70     <!-- Redirect test output to files (overridable) -->
71     <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
72
73     <!-- Opt-out from maven-checkstyle-plugin failing the build on violations. Defaults
74          to true. Set to 'false' in pom.xml of project which desires to not enforce
75          no reported violations. -->
76     <odlparent.checkstyle.enforce>true</odlparent.checkstyle.enforce>
77
78     <!-- Opt-in into modernizer-maven-plugin failing the build on violations. Defaults
79          to true. Set to 'false' in pom.xml of project which desires to not enforce
80          no reported violations. -->
81     <odlparent.modernizer.enforce>true</odlparent.modernizer.enforce>
82
83     <!-- Target release for modernizer-maven-plugin. It defaults to '1.11',
84          meaning Java 11, but can be set to any version in pom.xml of project
85          which desires to override it (such as '1.12' for Java 12). -->
86     <odlparent.modernizer.target>1.11</odlparent.modernizer.target>
87
88     <!-- Opt-out from spotbugs-maven-plugin failing the build on violations. Defaults
89          to true. Set to 'false' in pom.xml of project which desires to not enforce
90          no reported violations. -->
91     <odlparent.spotbugs.enforce>true</odlparent.spotbugs.enforce>
92   </properties>
93
94   <dependencyManagement>
95     <dependencies>
96
97       <dependency>
98         <groupId>org.opendaylight.odlparent</groupId>
99         <artifactId>odlparent-artifacts</artifactId>
100         <version>8.1.0-SNAPSHOT</version>
101         <scope>import</scope>
102         <type>pom</type>
103       </dependency>
104
105       <!-- We import Karaf dependencies to ensure we converge by default on the versions used there -->
106       <dependency>
107         <groupId>org.apache.karaf.features</groupId>
108         <artifactId>framework</artifactId>
109         <version>${karaf.version}</version>
110         <scope>import</scope>
111         <type>pom</type>
112       </dependency>
113
114       <!-- Build tool dependencies (normally not here in <dependencies>,
115            but in a <dependency> in <pluginManagement> but for Checkstyle this
116            is required so that we can share the same version of Checkstyle
117            for both the Maven plugin below as well as  for custom Checkstyle
118            check rule projects, such as yangtools' checkstyle-logging) -->
119       <dependency>
120         <groupId>com.puppycrawl.tools</groupId>
121         <artifactId>checkstyle</artifactId>
122         <!-- This should match the plugin management on maven-checkstyle-plugin below -->
123         <version>8.38</version>
124       </dependency>
125
126       <!-- Testing Dependencies -->
127       <!-- JUnit, Hamcrest, Mockito and PowerMock need to be kept in sync -->
128       <dependency>
129         <groupId>junit</groupId>
130         <artifactId>junit</artifactId>
131         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
132         <version>4.13.1</version>
133         <scope>test</scope>
134       </dependency>
135       <dependency>
136          <groupId>org.skyscreamer</groupId>
137          <artifactId>jsonassert</artifactId>
138          <version>1.5.0</version>
139          <scope>test</scope>
140       </dependency>
141       <dependency>
142         <groupId>org.mockito</groupId>
143         <artifactId>mockito-core</artifactId>
144         <version>3.5.11</version>
145         <scope>test</scope>
146       </dependency>
147       <dependency>
148         <groupId>org.mockito</groupId>
149         <artifactId>mockito-inline</artifactId>
150         <version>3.5.11</version>
151         <scope>test</scope>
152       </dependency>
153       <dependency>
154         <groupId>org.hamcrest</groupId>
155         <artifactId>hamcrest</artifactId>
156         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
157         <version>2.2</version>
158         <scope>test</scope>
159       </dependency>
160       <dependency>
161         <groupId>org.hamcrest</groupId>
162         <artifactId>hamcrest-core</artifactId>
163         <version>2.2</version>
164         <scope>test</scope>
165       </dependency>
166       <dependency>
167         <groupId>org.hamcrest</groupId>
168         <artifactId>hamcrest-library</artifactId>
169         <version>2.2</version>
170         <scope>test</scope>
171       </dependency>
172       <dependency>
173         <groupId>com.google.truth</groupId>
174         <artifactId>truth</artifactId>
175         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
176         <version>1.1</version>
177         <scope>test</scope>
178       </dependency>
179       <dependency>
180         <groupId>com.google.truth.extensions</groupId>
181         <artifactId>truth-java8-extension</artifactId>
182         <version>1.1</version>
183         <scope>test</scope>
184       </dependency>
185       <dependency>
186         <groupId>org.awaitility</groupId>
187         <artifactId>awaitility</artifactId>
188         <version>4.0.3</version>
189         <scope>test</scope>
190       </dependency>
191       <dependency>
192         <groupId>org.powermock</groupId>
193         <artifactId>powermock-api-mockito2</artifactId>
194         <version>2.0.9</version>
195         <scope>test</scope>
196       </dependency>
197       <dependency>
198         <groupId>org.powermock</groupId>
199         <artifactId>powermock-api-support</artifactId>
200         <version>2.0.9</version>
201         <scope>test</scope>
202       </dependency>
203       <dependency>
204         <groupId>org.powermock</groupId>
205         <artifactId>powermock-core</artifactId>
206         <version>2.0.9</version>
207         <scope>test</scope>
208       </dependency>
209       <dependency>
210         <groupId>org.powermock</groupId>
211         <artifactId>powermock-module-junit4</artifactId>
212         <version>2.0.9</version>
213         <scope>test</scope>
214       </dependency>
215       <dependency>
216         <groupId>org.powermock</groupId>
217         <artifactId>powermock-reflect</artifactId>
218         <version>2.0.9</version>
219         <scope>test</scope>
220       </dependency>
221
222       <!--
223            Annotation Processors
224        -->
225       <dependency>
226         <!-- Generates immutable implementations, builders, the works -->
227         <groupId>org.immutables</groupId>
228         <artifactId>value</artifactId>
229         <classifier>annotations</classifier>
230         <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
231         <version>2.8.8</version>
232         <!-- Must be provided; scope=test here breaks APT in Eclipse :( -->
233         <scope>provided</scope>
234       </dependency>
235
236       <dependency>
237         <!-- Generates META-INF/services entries for ServiceLoader -->
238         <groupId>org.kohsuke.metainf-services</groupId>
239         <artifactId>metainf-services</artifactId>
240         <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
241         <version>1.8</version>
242         <optional>true</optional>
243         <scope>provided</scope>
244       </dependency>
245
246       <!--
247            Supporting Libraries
248        -->
249       <dependency>
250         <groupId>org.slf4j</groupId>
251         <artifactId>jcl-over-slf4j</artifactId>
252         <version>1.7.28</version>
253       </dependency>
254       <dependency>
255         <groupId>org.slf4j</groupId>
256         <artifactId>slf4j-api</artifactId>
257         <version>1.7.28</version>
258       </dependency>
259       <dependency>
260         <groupId>org.slf4j</groupId>
261         <artifactId>slf4j-log4j12</artifactId>
262         <version>1.7.28</version>
263       </dependency>
264       <dependency>
265         <groupId>org.slf4j</groupId>
266         <artifactId>log4j-over-slf4j</artifactId>
267         <version>1.7.28</version>
268       </dependency>
269       <dependency>
270         <groupId>org.slf4j</groupId>
271         <artifactId>slf4j-simple</artifactId>
272         <version>1.7.28</version>
273         <scope>test</scope>
274       </dependency>
275       <dependency>
276         <groupId>ch.qos.logback</groupId>
277         <artifactId>logback-core</artifactId>
278         <version>1.2.3</version>
279       </dependency>
280       <dependency>
281         <groupId>ch.qos.logback</groupId>
282         <artifactId>logback-classic</artifactId>
283         <version>1.2.3</version>
284       </dependency>
285
286       <!-- log4j2 -->
287       <dependency>
288         <groupId>org.apache.logging.log4j</groupId>
289         <artifactId>log4j-bom</artifactId>
290         <version>2.13.3</version>
291         <scope>import</scope>
292         <type>pom</type>
293       </dependency>
294
295       <dependency>
296         <groupId>com.google.guava</groupId>
297         <artifactId>guava</artifactId>
298         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
299         <version>29.0-jre</version>
300         <exclusions>
301           <exclusion>
302             <!-- Do not leak JSR305 onto the classpath by default -->
303             <groupId>com.google.code.findbugs</groupId>
304             <artifactId>jsr305</artifactId>
305           </exclusion>
306         </exclusions>
307       </dependency>
308       <dependency>
309         <groupId>com.google.guava</groupId>
310         <artifactId>guava-testlib</artifactId>
311         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
312         <version>29.0-jre</version>
313         <scope>test</scope>
314         <exclusions>
315           <exclusion>
316             <!-- Do not leak JSR305 onto the classpath by default -->
317             <groupId>com.google.code.findbugs</groupId>
318             <artifactId>jsr305</artifactId>
319           </exclusion>
320         </exclusions>
321       </dependency>
322       <dependency>
323         <groupId>org.checkerframework</groupId>
324         <artifactId>checker-qual</artifactId>
325         <version>2.11.1</version>
326       </dependency>
327       <dependency>
328         <groupId>com.google.errorprone</groupId>
329         <artifactId>error_prone_annotations</artifactId>
330         <version>2.3.4</version>
331       </dependency>
332
333       <dependency>
334         <groupId>commons-beanutils</groupId>
335         <artifactId>commons-beanutils</artifactId>
336         <version>1.9.4</version>
337       </dependency>
338       <dependency>
339         <groupId>org.apache.commons</groupId>
340         <artifactId>commons-lang3</artifactId>
341         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
342         <version>3.11</version>
343       </dependency>
344       <dependency>
345         <groupId>org.apache.commons</groupId>
346         <artifactId>commons-text</artifactId>
347         <version>1.9</version>
348       </dependency>
349       <dependency>
350         <groupId>commons-lang</groupId>
351         <artifactId>commons-lang</artifactId>
352         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
353         <version>2.6</version>
354       </dependency>
355       <dependency>
356         <groupId>commons-codec</groupId>
357         <artifactId>commons-codec</artifactId>
358         <version>1.15</version>
359       </dependency>
360       <!-- Jersey for JAXRS -->
361       <dependency>
362         <groupId>javax.ws.rs</groupId>
363         <artifactId>javax.ws.rs-api</artifactId>
364         <version>2.1.1</version>
365       </dependency>
366       <dependency>
367         <groupId>org.glassfish.jersey</groupId>
368         <artifactId>jersey-bom</artifactId>
369         <version>2.27</version>
370         <type>pom</type>
371         <scope>import</scope>
372       </dependency>
373
374       <dependency>
375         <groupId>jakarta.activation</groupId>
376         <artifactId>jakarta.activation-api</artifactId>
377         <version>1.2.2</version>
378       </dependency>
379
380       <dependency>
381         <groupId>javax.annotation</groupId>
382         <artifactId>javax.annotation-api</artifactId>
383         <version>1.3.1</version>
384         <optional>true</optional>
385       </dependency>
386       <dependency>
387         <groupId>xml-apis</groupId>
388         <artifactId>xml-apis</artifactId>
389         <version>1.4.01</version>
390       </dependency>
391
392       <!-- Plugin integration -->
393       <dependency>
394         <groupId>net.java.dev.stax-utils</groupId>
395         <artifactId>stax-utils</artifactId>
396         <version>20070216</version>
397       </dependency>
398       <dependency>
399         <groupId>org.sonatype.plexus</groupId>
400         <artifactId>plexus-build-api</artifactId>
401         <version>0.0.7</version>
402       </dependency>
403       <dependency>
404         <groupId>org.codehaus.plexus</groupId>
405         <artifactId>plexus-slf4j-logging</artifactId>
406         <version>1.1</version>
407       </dependency>
408
409       <!-- These three need to be consistent:
410         jackson-2.11.3 needs woodstox-6.2.3+
411         woodstox-5.3+ needs stax2-api-4.2.x
412         -->
413       <dependency>
414         <groupId>org.codehaus.woodstox</groupId>
415         <artifactId>stax2-api</artifactId>
416         <version>4.2.1</version>
417       </dependency>
418       <dependency>
419         <groupId>com.fasterxml.woodstox</groupId>
420         <artifactId>woodstox-core</artifactId>
421         <version>6.2.3</version>
422       </dependency>
423       <dependency>
424         <groupId>com.fasterxml.jackson</groupId>
425         <artifactId>jackson-bom</artifactId>
426         <version>2.11.3</version>
427         <scope>import</scope>
428         <type>pom</type>
429       </dependency>
430
431       <dependency>
432         <groupId>com.github.spotbugs</groupId>
433         <artifactId>spotbugs-annotations</artifactId>
434         <version>3.1.12</version>
435         <scope>provided</scope>
436         <!-- Contains retention=RUNTIME annotations, which are not really needed -->
437         <optional>true</optional>
438         <exclusions>
439           <exclusion>
440             <groupId>com.google.code.findbugs</groupId>
441             <artifactId>jsr305</artifactId>
442           </exclusion>
443         </exclusions>
444       </dependency>
445
446       <dependency>
447         <groupId>org.eclipse.jdt</groupId>
448         <artifactId>org.eclipse.jdt.annotation</artifactId>
449         <version>2.2.400</version>
450         <scope>provided</scope>
451       </dependency>
452       <!-- We're staying on 2.8.5 for now, 2.8.6 has issues:
453            https://github.com/google/gson/issues/1601
454            https://github.com/google/gson/issues/1602
455            https://github.com/google/gson/issues/1608
456            https://github.com/google/gson/issues/1630
457       -->
458       <dependency>
459         <groupId>com.google.code.gson</groupId>
460         <artifactId>gson</artifactId>
461         <version>2.8.5</version>
462       </dependency>
463       <dependency>
464         <groupId>commons-fileupload</groupId>
465         <artifactId>commons-fileupload</artifactId>
466         <version>1.4</version>
467       </dependency>
468       <dependency>
469         <groupId>commons-io</groupId>
470         <artifactId>commons-io</artifactId>
471         <version>2.8.0</version>
472       </dependency>
473       <dependency>
474         <groupId>commons-net</groupId>
475         <artifactId>commons-net</artifactId>
476         <version>3.7.2</version>
477       </dependency>
478
479       <!-- Netty -->
480       <dependency>
481         <groupId>io.netty</groupId>
482         <artifactId>netty-bom</artifactId>
483         <!-- If these are updated, the version in features.xml needs to be changed too -->
484         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
485         <version>4.1.56.Final</version>
486         <type>pom</type>
487         <scope>import</scope>
488       </dependency>
489
490       <dependency>
491         <groupId>javax.ws.rs</groupId>
492         <artifactId>jsr311-api</artifactId>
493         <version>1.1.1</version>
494       </dependency>
495       <dependency>
496         <groupId>javax.servlet</groupId>
497         <artifactId>javax.servlet-api</artifactId>
498         <version>3.1.0</version>
499       </dependency>
500       <dependency>
501         <groupId>org.apache.felix</groupId>
502         <artifactId>org.apache.felix.metatype</artifactId>
503         <version>1.2.2</version>
504       </dependency>
505       <dependency>
506         <groupId>org.bouncycastle</groupId>
507         <artifactId>bcpkix-jdk15on</artifactId>
508         <version>${bouncycastle.version}</version>
509       </dependency>
510       <dependency>
511         <groupId>org.bouncycastle</groupId>
512         <artifactId>bcprov-jdk15on</artifactId>
513         <version>${bouncycastle.version}</version>
514       </dependency>
515       <dependency>
516         <groupId>org.bouncycastle</groupId>
517         <artifactId>bcprov-ext-jdk15on</artifactId>
518         <version>${bouncycastle.version}</version>
519       </dependency>
520
521       <dependency>
522         <groupId>com.webcohesion.enunciate</groupId>
523         <artifactId>enunciate-core-annotations</artifactId>
524         <!-- This must be aligned with the version of enunciate-maven-plugin specified below -->
525         <version>2.13.1</version>
526       </dependency>
527
528       <dependency>
529         <groupId>org.javassist</groupId>
530         <artifactId>javassist</artifactId>
531         <version>3.27.0-GA</version>
532       </dependency>
533       <dependency>
534         <groupId>org.jboss.spec.javax.transaction</groupId>
535         <artifactId>jboss-transaction-api_1.1_spec</artifactId>
536         <version>1.0.1.Final</version>
537       </dependency>
538       <dependency>
539         <groupId>org.jolokia</groupId>
540         <artifactId>jolokia-osgi</artifactId>
541         <version>1.6.2</version>
542       </dependency>
543       <dependency>
544         <!--
545           These are usually used through osgi.cmpn, except when you also want
546           to be a JPMS module. In that case you need to depend on these and
547           have a 'require static org.osgi.service.component.annotations;'.
548           This incurs a warning about publishing the module to a public place.
549           We do not heed that warning, as nothing in this package is seen by
550           the runtime - thus the warning can be safely ignored :)
551
552           Keep this in sync with rest of OSGi:
553           - OSGi R7 (now) = 1.4.0
554         -->
555         <groupId>org.osgi</groupId>
556         <artifactId>org.osgi.service.component.annotations</artifactId>
557         <version>1.4.0</version>
558         <scope>provided</scope>
559       </dependency>
560       <dependency>
561         <groupId>org.osgi</groupId>
562         <artifactId>osgi.cmpn</artifactId>
563         <version>7.0.0</version>
564         <scope>provided</scope>
565       </dependency>
566       <dependency>
567         <groupId>org.osgi</groupId>
568         <artifactId>osgi.core</artifactId>
569         <version>7.0.0</version>
570         <scope>provided</scope>
571       </dependency>
572       <!-- For backwards compatibility -->
573       <!-- FIXME: 9.0.0: remove this declaration -->
574       <dependency>
575         <groupId>org.osgi</groupId>
576         <artifactId>org.osgi.core</artifactId>
577         <version>6.0.0</version>
578         <scope>provided</scope>
579       </dependency>
580
581       <dependency>
582         <groupId>org.osgi</groupId>
583         <!-- for https://bugs.opendaylight.org/show_bug.cgi?id=4290 -->
584         <artifactId>org.osgi.service.event</artifactId>
585         <version>1.4.0</version>
586       </dependency>
587       <dependency>
588         <groupId>org.apache.aries.quiesce</groupId>
589         <artifactId>org.apache.aries.quiesce.api</artifactId>
590         <version>1.0.0</version>
591       </dependency>
592
593       <!-- LMAX Disruptor -->
594       <dependency>
595         <groupId>com.lmax</groupId>
596         <artifactId>disruptor</artifactId>
597         <version>3.4.2</version>
598       </dependency>
599
600       <!-- Add Pax Exam -->
601       <dependency>
602         <groupId>org.ops4j.pax.exam</groupId>
603         <artifactId>pax-exam</artifactId>
604         <version>4.13.4</version>
605         <scope>test</scope>
606       </dependency>
607       <dependency>
608         <groupId>org.ops4j.pax.exam</groupId>
609         <artifactId>pax-exam-container-forked</artifactId>
610         <version>4.13.4</version>
611         <scope>test</scope>
612       </dependency>
613       <dependency>
614         <groupId>org.ops4j.pax.exam</groupId>
615         <artifactId>pax-exam-container-karaf</artifactId>
616         <version>4.13.4</version>
617         <scope>test</scope>
618       </dependency>
619       <dependency>
620         <groupId>org.ops4j.pax.exam</groupId>
621         <artifactId>pax-exam-container-native</artifactId>
622         <version>4.13.4</version>
623         <scope>test</scope>
624       </dependency>
625       <dependency>
626         <groupId>org.ops4j.pax.exam</groupId>
627         <artifactId>pax-exam-extender-service</artifactId>
628         <version>4.13.4</version>
629         <scope>test</scope>
630       </dependency>
631       <dependency>
632         <groupId>org.ops4j.pax.exam</groupId>
633         <artifactId>pax-exam-inject</artifactId>
634         <version>4.13.4</version>
635         <scope>test</scope>
636       </dependency>
637       <dependency>
638         <groupId>org.ops4j.pax.exam</groupId>
639         <artifactId>pax-exam-invoker-junit</artifactId>
640         <version>4.13.4</version>
641         <scope>test</scope>
642       </dependency>
643       <dependency>
644         <groupId>org.ops4j.pax.exam</groupId>
645         <artifactId>pax-exam-features</artifactId>
646         <version>4.13.4</version>
647         <type>xml</type>
648         <scope>test</scope>
649       </dependency>
650       <dependency>
651         <groupId>org.ops4j.pax.exam</groupId>
652         <artifactId>pax-exam-junit4</artifactId>
653         <version>4.13.4</version>
654         <scope>test</scope>
655       </dependency>
656       <dependency>
657         <groupId>org.ops4j.pax.exam</groupId>
658         <artifactId>pax-exam-link-mvn</artifactId>
659         <version>4.13.4</version>
660         <scope>test</scope>
661       </dependency>
662       <dependency>
663         <groupId>org.ops4j.pax.exam</groupId>
664         <artifactId>pax-exam-link-assembly</artifactId>
665         <version>4.13.4</version>
666         <scope>test</scope>
667       </dependency>
668
669       <dependency>
670         <groupId>org.ops4j.pax.url</groupId>
671         <artifactId>pax-url-link</artifactId>
672         <version>2.5.4</version>
673         <scope>test</scope>
674       </dependency>
675       <dependency>
676         <groupId>org.ops4j.pax.url</groupId>
677         <artifactId>pax-url-aether</artifactId>
678         <version>2.5.4</version>
679         <scope>test</scope>
680       </dependency>
681       <dependency>
682         <groupId>org.ops4j.pax.url</groupId>
683         <artifactId>pax-url-wrap</artifactId>
684         <version>2.5.4</version>
685       </dependency>
686
687       <dependency>
688         <groupId>org.ops4j.pax.web</groupId>
689         <artifactId>pax-web-api</artifactId>
690         <!-- Note: keep this version synchronized with karaf -->
691         <version>7.3.9</version>
692       </dependency>
693
694       <dependency>
695         <groupId>org.springframework.osgi</groupId>
696         <artifactId>spring-osgi-mock</artifactId>
697         <version>1.2.1</version>
698         <scope>test</scope>
699       </dependency>
700
701       <dependency>
702         <groupId>org.xmlunit</groupId>
703         <artifactId>xmlunit-core</artifactId>
704         <version>2.7.0</version>
705         <scope>test</scope>
706       </dependency>
707       <dependency>
708         <groupId>org.xmlunit</groupId>
709         <artifactId>xmlunit-assertj</artifactId>
710         <version>2.7.0</version>
711         <scope>test</scope>
712       </dependency>
713       <dependency>
714         <groupId>org.xmlunit</groupId>
715         <artifactId>xmlunit-matchers</artifactId>
716         <version>2.7.0</version>
717         <scope>test</scope>
718       </dependency>
719       <!-- FIXME: remove this once we have migrated over -->
720       <dependency>
721         <groupId>org.xmlunit</groupId>
722         <artifactId>xmlunit-legacy</artifactId>
723         <version>2.7.0</version>
724         <scope>test</scope>
725       </dependency>
726
727       <!-- Annotations for modernizer-maven-plugin -->
728       <dependency>
729         <groupId>org.gaul</groupId>
730         <artifactId>modernizer-maven-annotations</artifactId>
731         <!-- This should match the plugin version below -->
732         <version>2.1.0</version>
733         <scope>provided</scope>
734       </dependency>
735
736       <dependency>
737         <groupId>org.eclipse.jetty</groupId>
738         <artifactId>jetty-bom</artifactId>
739         <version>9.4.31.v20200723</version>
740         <scope>import</scope>
741         <type>pom</type>
742       </dependency>
743
744       <dependency>
745         <groupId>com.h2database</groupId>
746         <artifactId>h2</artifactId>
747         <version>1.4.200</version>
748       </dependency>
749
750       <!-- Xtend http://xtend-lang.org
751            NOTE: When you increase the version here,
752            then remember to also increase it for the
753            xtend-maven-plugin below! (We don't want to
754            use a Maven property, in order not to "leak" that.)
755        -->
756       <dependency>
757           <groupId>org.eclipse.xtend</groupId>
758           <artifactId>org.eclipse.xtend.lib</artifactId>
759           <version>2.24.0</version>
760       </dependency>
761       <dependency>
762           <groupId>org.eclipse.xtend</groupId>
763           <artifactId>org.eclipse.xtend.lib.macro</artifactId>
764           <version>2.24.0</version>
765       </dependency>
766       <dependency>
767           <groupId>org.eclipse.xtext</groupId>
768           <artifactId>org.eclipse.xtext.xbase.lib</artifactId>
769           <version>2.24.0</version>
770       </dependency>
771
772       <!-- Annotations -->
773       <!-- FIXME: ODLPARENT-246: remove this declaration -->
774       <dependency>
775         <groupId>javax.inject</groupId>
776         <artifactId>javax.inject</artifactId>
777         <version>1</version>
778         <optional>true</optional>
779       </dependency>
780       <!-- A better alternative for javax.inject, from https://guicedee.com/ -->
781       <dependency>
782         <groupId>com.guicedee.services</groupId>
783         <artifactId>javax.inject</artifactId>
784         <version>1.0.20.0</version>
785         <scope>provided</scope>
786         <optional>true</optional>
787       </dependency>
788
789       <!-- jung, a graph library -->
790       <dependency>
791         <groupId>net.sf.jung</groupId>
792         <artifactId>jung-api</artifactId>
793         <version>2.1.1</version>
794       </dependency>
795       <dependency>
796         <groupId>net.sf.jung</groupId>
797         <artifactId>jung-algorithms</artifactId>
798         <version>2.1.1</version>
799       </dependency>
800       <dependency>
801         <groupId>net.sf.jung</groupId>
802         <artifactId>jung-graph-impl</artifactId>
803         <version>2.1.1</version>
804       </dependency>
805
806       <!-- Karaf console support -->
807       <dependency>
808         <groupId>org.apache.karaf.shell</groupId>
809         <artifactId>org.apache.karaf.shell.core</artifactId>
810         <version>${karaf.version}</version>
811         <scope>provided</scope>
812       </dependency>
813       <dependency>
814         <groupId>org.apache.karaf.shell</groupId>
815         <artifactId>org.apache.karaf.shell.console</artifactId>
816         <version>${karaf.version}</version>
817         <scope>provided</scope>
818       </dependency>
819
820       <!-- ThreeTen-Extra, date/time complements -->
821       <dependency>
822         <groupId>org.threeten</groupId>
823         <artifactId>threeten-extra</artifactId>
824         <version>1.5.0</version>
825       </dependency>
826
827       <!-- When updating this version, consider antl4-maven-plugin below -->
828       <dependency>
829         <groupId>org.antlr</groupId>
830         <artifactId>antlr4-runtime</artifactId>
831         <version>4.8-1</version>
832       </dependency>
833       <!-- Aries' Blueprint version should be kept in sync to the version actually
834            used by our ${karaf[4].version} ... please bump this when increasing that.
835            TODO Find a smarter way to inherit this from a (TBD..) Karaf artifacts BOM! -->
836       <dependency>
837         <groupId>org.apache.aries.blueprint</groupId>
838         <artifactId>org.apache.aries.blueprint.core</artifactId>
839         <version>1.10.2</version>
840       </dependency>
841       <dependency>
842         <groupId>org.apache.aries.blueprint</groupId>
843         <artifactId>blueprint-maven-plugin-annotation</artifactId>
844         <version>1.3.0</version>
845         <optional>true</optional>
846       </dependency>
847
848       <!-- TrieMap library -->
849       <dependency>
850         <groupId>tech.pantheon.triemap</groupId>
851         <artifactId>bom</artifactId>
852         <version>1.2.0</version>
853         <scope>import</scope>
854         <type>pom</type>
855       </dependency>
856
857       <!-- Dropwizard metrics -->
858       <dependency>
859         <groupId>io.dropwizard.metrics</groupId>
860         <artifactId>metrics-bom</artifactId>
861         <version>4.1.12.1</version>
862         <scope>import</scope>
863         <type>pom</type>
864       </dependency>
865
866       <!-- JAXB for Java 11+, match this with Karaf -->
867       <dependency>
868         <groupId>jakarta.xml.bind</groupId>
869         <artifactId>jakarta.xml.bind-api</artifactId>
870         <version>2.3.2</version>
871       </dependency>
872       <dependency>
873         <groupId>org.glassfish.jaxb</groupId>
874         <artifactId>jaxb-runtime</artifactId>
875         <version>2.3.2</version>
876       </dependency>
877     </dependencies>
878   </dependencyManagement>
879
880   <dependencies>
881     <!--
882          We expect slf4j-api to be provided by the platform.
883          Karaf provides it, other containers need to provide it themselves.
884     -->
885     <dependency>
886       <groupId>org.slf4j</groupId>
887       <artifactId>slf4j-api</artifactId>
888       <scope>provided</scope>
889     </dependency>
890
891     <!--
892           Enable useful code quality annotations everywhere. Since these annotations
893           are not required at runtime.
894     -->
895     <dependency>
896       <groupId>org.eclipse.jdt</groupId>
897       <artifactId>org.eclipse.jdt.annotation</artifactId>
898       <scope>provided</scope>
899     </dependency>
900     <dependency>
901       <groupId>com.github.spotbugs</groupId>
902       <artifactId>spotbugs-annotations</artifactId>
903       <scope>provided</scope>
904       <optional>true</optional>
905     </dependency>
906     <dependency>
907       <groupId>org.gaul</groupId>
908       <artifactId>modernizer-maven-annotations</artifactId>
909       <scope>provided</scope>
910     </dependency>
911
912     <!--
913           Testing output should be routed through slf4j-simple.
914     -->
915     <dependency>
916       <groupId>org.slf4j</groupId>
917       <artifactId>slf4j-simple</artifactId>
918       <scope>test</scope>
919     </dependency>
920
921     <!--
922           Unit tests can use JUnit + Mockito + Hamcrest by default.
923     -->
924     <dependency>
925       <groupId>org.hamcrest</groupId>
926       <artifactId>hamcrest</artifactId>
927       <scope>test</scope>
928     </dependency>
929     <dependency>
930       <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
931       <groupId>org.hamcrest</groupId>
932       <artifactId>hamcrest-library</artifactId>
933       <scope>test</scope>
934     </dependency>
935     <dependency>
936       <groupId>junit</groupId>
937       <artifactId>junit</artifactId>
938       <scope>test</scope>
939     </dependency>
940     <dependency>
941       <groupId>org.mockito</groupId>
942       <artifactId>mockito-core</artifactId>
943       <scope>test</scope>
944     </dependency>
945   </dependencies>
946
947   <build>
948     <pluginManagement>
949       <plugins>
950         <!-- Official maven plugins, alpha-sorted by artifactId.
951              We do not need to specify the groupId. -->
952         <plugin>
953           <artifactId>maven-checkstyle-plugin</artifactId>
954           <version>3.1.1</version>
955           <dependencies>
956             <dependency>
957               <groupId>com.puppycrawl.tools</groupId>
958               <artifactId>checkstyle</artifactId>
959               <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
960               <version>8.38</version>
961             </dependency>
962             <dependency>
963               <groupId>org.opendaylight.odlparent</groupId>
964               <artifactId>checkstyle</artifactId>
965               <version>8.1.0-SNAPSHOT</version>
966             </dependency>
967             <dependency>
968               <groupId>com.github.sevntu-checkstyle</groupId>
969               <artifactId>sevntu-checks</artifactId>
970               <version>1.38.0</version>
971             </dependency>
972           </dependencies>
973           <configuration>
974             <configLocation>odl_checks.xml</configLocation>
975             <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
976             <!-- <sourceDirectories> are needed so that checkstyle ignores the
977                  generated sources directory -->
978             <sourceDirectories>
979               <directory>${project.build.sourceDirectory}</directory>
980             </sourceDirectories>
981             <includeResources>true</includeResources>
982             <includeTestSourceDirectory>true</includeTestSourceDirectory>
983             <includeTestResources>true</includeTestResources>
984             <includes>**\/*.java, **\/*.xtend</includes>
985             <excludes>
986               org/opendaylight/yang/gen/**,
987               **/protobuff/messages/**,
988               **/thrift/gen/*.java,
989               **/module-info.java
990             </excludes>
991             <failsOnError>false</failsOnError>
992             <consoleOutput>true</consoleOutput>
993           </configuration>
994           <executions>
995             <execution>
996               <id>check-license</id>
997               <goals>
998                 <goal>check</goal>
999               </goals>
1000               <phase>process-sources</phase>
1001               <configuration>
1002                 <configLocation>check-license.xml</configLocation>
1003                 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
1004                 <includeResources>false</includeResources>
1005                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
1006                 <includeTestResources>false</includeTestResources>
1007                 <sourceDirectories>
1008                   <directory>${project.build.sourceDirectory}</directory>
1009                 </sourceDirectories>
1010                 <excludes>
1011                   org/opendaylight/yang/gen/**,
1012                   **/protobuff/messages/**,
1013                   **/thrift/gen/*.java
1014                 </excludes>
1015                 <failsOnError>false</failsOnError>
1016                 <consoleOutput>true</consoleOutput>
1017               </configuration>
1018             </execution>
1019             <execution>
1020               <goals>
1021                 <goal>check</goal>
1022               </goals>
1023               <phase>process-sources</phase>
1024               <configuration>
1025                 <failOnViolation>${odlparent.checkstyle.enforce}</failOnViolation>
1026                 <skip>${odlparent.checkstyle.skip}</skip>
1027                 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
1028               </configuration>
1029             </execution>
1030           </executions>
1031         </plugin>
1032         <plugin>
1033           <groupId>org.apache.maven.plugins</groupId>
1034           <artifactId>maven-pmd-plugin</artifactId>
1035           <version>3.13.0</version>
1036           <executions>
1037             <execution>
1038               <id>cpd</id>
1039               <phase>process-sources</phase>
1040               <goals>
1041                 <goal>cpd-check</goal>
1042               </goals>
1043               <configuration>
1044                 <failOnViolation>${pmd.cpd.fail}</failOnViolation>
1045                 <!-- 100 "tokens" here correspond to approx. 5-10 lines of code -->
1046                 <minimumTokens>101</minimumTokens>
1047                 <printFailingErrors>true</printFailingErrors>
1048                 <excludeRoots>
1049                   <!-- FIXME: this should be a wildcard, but PMD is brain-damaged and does
1050                               not understand path prefixes nor wildcards. Details are available
1051                               at http://stackoverflow.com/questions/15647771/pmd-exclude-not-working
1052                               Hence people introducing new generated sources have to include
1053                               PMD config too.
1054                    -->
1055                   <excludeRoot>${project.build.directory}/generated-sources</excludeRoot>
1056                   <excludeRoot>${project.build.directory}/generated-test-sources</excludeRoot>
1057                 </excludeRoots>
1058                 <linkXRef>false</linkXRef>
1059               </configuration>
1060             </execution>
1061           </executions>
1062         </plugin>
1063         <plugin>
1064           <artifactId>maven-compiler-plugin</artifactId>
1065           <version>3.8.1</version>
1066           <configuration>
1067             <showWarnings>true</showWarnings>
1068             <compilerArgs>
1069               <arg>-parameters</arg>
1070               <arg>-Xlint:deprecation</arg>
1071               <arg>-Xlint:unchecked</arg>
1072             </compilerArgs>
1073             <annotationProcessorPaths>
1074               <dependency>
1075                 <groupId>org.immutables</groupId>
1076                 <artifactId>value</artifactId>
1077                 <!-- Keep this version in sync with dependency declaration above -->
1078                 <version>2.8.8</version>
1079               </dependency>
1080               <dependency>
1081                 <groupId>org.kohsuke.metainf-services</groupId>
1082                 <artifactId>metainf-services</artifactId>
1083                 <!-- Keep this version in sync with dependency declaration above -->
1084                 <version>1.8</version>
1085               </dependency>
1086             </annotationProcessorPaths>
1087           </configuration>
1088         </plugin>
1089         <plugin>
1090           <artifactId>maven-failsafe-plugin</artifactId>
1091           <version>2.22.2</version>
1092         </plugin>
1093         <plugin>
1094           <artifactId>maven-invoker-plugin</artifactId>
1095           <version>3.2.1</version>
1096         </plugin>
1097         <plugin>
1098           <artifactId>maven-dependency-plugin</artifactId>
1099           <executions>
1100             <execution>
1101               <id>unpack-license</id>
1102               <phase>generate-resources</phase>
1103               <goals>
1104                 <goal>copy</goal>
1105               </goals>
1106               <configuration>
1107                 <artifactItems>
1108                   <artifactItem>
1109                     <groupId>org.opendaylight.odlparent</groupId>
1110                     <artifactId>odl-license</artifactId>
1111                     <version>8.1.0-SNAPSHOT</version>
1112                     <type>license</type>
1113                     <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1114                     <destFileName>LICENSE</destFileName>
1115                     <overWrite>false</overWrite>
1116                   </artifactItem>
1117                 </artifactItems>
1118                 <silent>true</silent>
1119               </configuration>
1120             </execution>
1121           </executions>
1122         </plugin>
1123
1124         <plugin>
1125           <artifactId>maven-plugin-plugin</artifactId>
1126           <version>3.6.0</version>
1127         </plugin>
1128
1129         <plugin>
1130           <artifactId>maven-remote-resources-plugin</artifactId>
1131           <version>1.7.0</version>
1132         </plugin>
1133         <plugin>
1134           <artifactId>maven-resources-plugin</artifactId>
1135           <version>3.1.0</version>
1136         </plugin>
1137         <plugin>
1138           <artifactId>maven-shade-plugin</artifactId>
1139           <version>3.2.4</version>
1140         </plugin>
1141         <plugin>
1142           <artifactId>maven-source-plugin</artifactId>
1143           <version>3.2.1</version>
1144           <executions>
1145             <execution>
1146               <id>attach-sources</id>
1147               <phase>verify</phase>
1148               <goals>
1149                 <goal>jar-no-fork</goal>
1150               </goals>
1151             </execution>
1152           </executions>
1153         </plugin>
1154         <plugin>
1155           <artifactId>maven-surefire-plugin</artifactId>
1156           <version>2.22.2</version>
1157           <configuration>
1158             <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1159             <trimStackTrace>false</trimStackTrace>
1160           </configuration>
1161         </plugin>
1162
1163         <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1164         <plugin>
1165           <!-- Support Blueprint XML construction using annotations -->
1166           <groupId>org.apache.aries.blueprint</groupId>
1167           <artifactId>blueprint-maven-plugin</artifactId>
1168           <version>1.10.0</version>
1169           <!-- TODO remove dependencies when we bump from 1.10.0 to 1.11.0 (or 1.10.1);
1170              see https://jira.opendaylight.org/browse/ODLPARENT-167 & https://jira.apache.org/jira/browse/ARIES-1826 -->
1171           <dependencies>
1172             <dependency>
1173               <groupId>org.apache.xbean</groupId>
1174               <artifactId>xbean-finder-shaded</artifactId>
1175               <version>4.18</version>
1176             </dependency>
1177           </dependencies>
1178           <configuration>
1179             <scanPaths>
1180               <scanPath>${project.groupId}</scanPath>
1181             </scanPaths>
1182           </configuration>
1183           <executions>
1184             <execution>
1185               <goals>
1186                 <goal>blueprint-generate</goal>
1187               </goals>
1188             </execution>
1189           </executions>
1190         </plugin>
1191
1192         <plugin>
1193           <groupId>org.apache.felix</groupId>
1194           <artifactId>maven-bundle-plugin</artifactId>
1195           <version>4.2.1</version>
1196           <extensions>true</extensions>
1197           <configuration>
1198             <instructions>
1199               <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1200                    so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1201                    and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present.  -->
1202               <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>
1203
1204               <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1205                    to generate Import-Service and Export-Service headers. -->
1206               <_removeheaders>Import-Service,Export-Service</_removeheaders>
1207             </instructions>
1208           </configuration>
1209         </plugin>
1210
1211         <plugin>
1212           <groupId>org.apache.karaf.tooling</groupId>
1213           <artifactId>karaf-maven-plugin</artifactId>
1214           <version>${karaf.version}</version>
1215         </plugin>
1216
1217         <plugin>
1218           <groupId>org.apache.servicemix.tooling</groupId>
1219           <artifactId>depends-maven-plugin</artifactId>
1220           <version>1.4.0</version>
1221           <executions>
1222             <execution>
1223               <id>generate-depends-file</id>
1224               <goals>
1225                 <goal>generate-depends-file</goal>
1226               </goals>
1227             </execution>
1228           </executions>
1229         </plugin>
1230
1231         <plugin>
1232           <groupId>com.webcohesion.enunciate</groupId>
1233           <artifactId>enunciate-maven-plugin</artifactId>
1234           <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1235           <version>2.13.1</version>
1236         </plugin>
1237
1238         <plugin>
1239           <groupId>org.gaul</groupId>
1240           <artifactId>modernizer-maven-plugin</artifactId>
1241           <version>2.1.0</version>
1242           <configuration>
1243             <javaVersion>${odlparent.modernizer.target}</javaVersion>
1244             <failOnViolations>${odlparent.modernizer.enforce}</failOnViolations>
1245             <skip>${odlparent.modernizer.skip}</skip>
1246
1247             <exclusionPatterns>
1248               <!-- We are using Guava as per normal and we have grown a large body of code
1249                    around the patterns there. Furthermore the suggested replacements have
1250                    different behavior, hence we do NOT want to blindly migrate. Examples
1251                    include:
1252
1253                    - ImmutableCollection et al. are not just implementation details, they
1254                      form an API contract.
1255                    - ImmutableMap/ImmutableSet retain iteration order, whereas their
1256                      Map.of()/Set.of() counterparts have unstable iteration order (by design)
1257               -->
1258               <exclusionPattern>com/google/common/collect/Immutable.*</exclusionPattern>
1259             </exclusionPatterns>
1260           </configuration>
1261
1262           <executions>
1263             <execution>
1264               <id>modernizer</id>
1265               <phase>verify</phase>
1266               <goals>
1267                 <goal>modernizer</goal>
1268               </goals>
1269             </execution>
1270           </executions>
1271         </plugin>
1272
1273         <plugin>
1274           <groupId>com.github.spotbugs</groupId>
1275           <artifactId>spotbugs-maven-plugin</artifactId>
1276           <version>3.1.12.2</version>
1277           <dependencies>
1278             <dependency>
1279               <groupId>com.github.spotbugs</groupId>
1280               <artifactId>spotbugs</artifactId>
1281               <version>3.1.12</version>
1282             </dependency>
1283             <dependency>
1284               <groupId>org.opendaylight.odlparent</groupId>
1285               <artifactId>spotbugs</artifactId>
1286               <version>8.1.0-SNAPSHOT</version>
1287             </dependency>
1288             <dependency>
1289               <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 -->
1290               <groupId>org.slf4j</groupId>
1291               <artifactId>slf4j-simple</artifactId>
1292               <version>1.8.0-beta2</version>
1293             </dependency>
1294           </dependencies>
1295           <configuration>
1296             <plugins>
1297               <plugin>
1298                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1299                 <artifactId>bug-pattern</artifactId>
1300                 <version>1.5.0</version>
1301               </plugin>
1302             </plugins>
1303             <!--
1304               Enables analysis which takes more memory but finds more bugs.
1305               If you run out of memory, changes the value of the effort element
1306               to 'Low'.
1307             -->
1308             <effort>Max</effort>
1309             <!-- Reports all bugs (other values are medium and max) -->
1310             <threshold>Low</threshold>
1311             <!-- Build doesn't fail if problems are found -->
1312             <failOnError>${odlparent.spotbugs.enforce}</failOnError>
1313             <skip>${odlparent.spotbugs.skip}</skip>
1314             <!-- References the excluded rules -->
1315             <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1316             <!-- Produces XML report -->
1317             <xmlOutput>true</xmlOutput>
1318             <!-- Configures the directory in which the XML report is created -->
1319             <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1320           </configuration>
1321           <executions>
1322             <!--
1323               Ensures that SpotBugs inspects source code when project is compiled.
1324             -->
1325             <execution>
1326               <id>analyze-compile</id>
1327               <phase>compile</phase>
1328               <goals>
1329                 <goal>check</goal>
1330               </goals>
1331             </execution>
1332           </executions>
1333         </plugin>
1334         <plugin>
1335           <groupId>org.codehaus.mojo</groupId>
1336           <artifactId>properties-maven-plugin</artifactId>
1337           <version>1.0.0</version>
1338         </plugin>
1339         <plugin>
1340           <groupId>org.eclipse.xtend</groupId>
1341           <artifactId>xtend-maven-plugin</artifactId>
1342           <!-- NOTE: This version MUST be kept in sync with the Xtend version in <dependencyManagement> -->
1343           <version>2.24.0</version>
1344           <executions>
1345             <execution>
1346               <goals>
1347                 <goal>compile</goal>
1348                 <goal>testCompile</goal>
1349               </goals>
1350               <configuration>
1351                 <outputDirectory>${project.build.directory}/generated-sources/xtend</outputDirectory>
1352                 <testOutputDirectory>${project.build.directory}/generated-test-sources/xtend</testOutputDirectory>
1353               </configuration>
1354             </execution>
1355           </executions>
1356         </plugin>
1357         <plugin>
1358           <groupId>org.eclipse.m2e</groupId>
1359           <artifactId>lifecycle-mapping</artifactId>
1360           <version>1.0.0</version>
1361           <configuration>
1362             <lifecycleMappingMetadata>
1363               <pluginExecutions>
1364                 <pluginExecution>
1365                   <pluginExecutionFilter>
1366                     <groupId>org.apache.felix</groupId>
1367                     <artifactId>maven-bundle-plugin</artifactId>
1368                     <versionRange>[1.0,)</versionRange>
1369                     <goals>
1370                       <goal>manifest</goal>
1371                     </goals>
1372                   </pluginExecutionFilter>
1373                   <action>
1374                     <execute/>
1375                   </action>
1376                 </pluginExecution>
1377                 <pluginExecution>
1378                   <pluginExecutionFilter>
1379                     <groupId>org.apache.maven.plugins</groupId>
1380                     <artifactId>maven-enforcer-plugin</artifactId>
1381                     <versionRange>[1.0.0,)</versionRange>
1382                     <goals>
1383                       <goal>enforce</goal>
1384                     </goals>
1385                   </pluginExecutionFilter>
1386                   <action>
1387                     <ignore/>
1388                   </action>
1389                 </pluginExecution>
1390                 <pluginExecution>
1391                   <pluginExecutionFilter>
1392                     <groupId>org.apache.maven.plugins</groupId>
1393                     <artifactId>maven-dependency-plugin</artifactId>
1394                     <versionRange>[2.10,)</versionRange>
1395                     <goals>
1396                       <goal>copy</goal>
1397                     </goals>
1398                   </pluginExecutionFilter>
1399                   <action>
1400                     <ignore/>
1401                   </action>
1402                 </pluginExecution>
1403                 <pluginExecution>
1404                   <pluginExecutionFilter>
1405                     <groupId>org.apache.maven.plugins</groupId>
1406                     <artifactId>maven-pmd-plugin</artifactId>
1407                     <versionRange>[3.6,)</versionRange>
1408                     <goals>
1409                       <goal>cpd-check</goal>
1410                     </goals>
1411                   </pluginExecutionFilter>
1412                   <action>
1413                     <ignore/>
1414                   </action>
1415                 </pluginExecution>
1416                 <!-- The plugin will eventually be removed, remove this too at that point -->
1417                 <pluginExecution>
1418                   <pluginExecutionFilter>
1419                     <groupId>org.apache.maven.plugins</groupId>
1420                     <artifactId>maven-antrun-plugin</artifactId>
1421                     <versionRange>[1.8,)</versionRange>
1422                     <goals>
1423                       <goal>run</goal>
1424                     </goals>
1425                   </pluginExecutionFilter>
1426                   <action>
1427                     <ignore/>
1428                   </action>
1429                 </pluginExecution>
1430                 <pluginExecution>
1431                   <pluginExecutionFilter>
1432                     <groupId>org.apache.servicemix.tooling</groupId>
1433                     <artifactId>depends-maven-plugin</artifactId>
1434                     <versionRange>[1.2,)</versionRange>
1435                     <goals>
1436                       <goal>generate-depends-file</goal>
1437                     </goals>
1438                   </pluginExecutionFilter>
1439                   <action>
1440                     <execute/>
1441                   </action>
1442                 </pluginExecution>
1443                 <pluginExecution>
1444                   <pluginExecutionFilter>
1445                     <groupId>org.jacoco</groupId>
1446                     <artifactId>jacoco-maven-plugin</artifactId>
1447                     <versionRange>[0.7.0,)</versionRange>
1448                     <goals>
1449                       <goal>prepare-agent</goal>
1450                     </goals>
1451                   </pluginExecutionFilter>
1452                   <action>
1453                     <ignore/>
1454                   </action>
1455                 </pluginExecution>
1456
1457                 <pluginExecution>
1458                   <pluginExecutionFilter>
1459                     <groupId>org.ops4j.pax.exam</groupId>
1460                     <artifactId>maven-paxexam-plugin</artifactId>
1461                     <versionRange>[1.2.4,)</versionRange>
1462                     <goals>
1463                       <goal>generate-depends-file</goal>
1464                     </goals>
1465                   </pluginExecutionFilter>
1466                   <action>
1467                     <ignore/>
1468                   </action>
1469                 </pluginExecution>
1470
1471                 <pluginExecution>
1472                   <pluginExecutionFilter>
1473                     <groupId>org.basepom.maven</groupId>
1474                     <artifactId>
1475                       duplicate-finder-maven-plugin
1476                     </artifactId>
1477                     <versionRange>[1.2.1,)</versionRange>
1478                     <goals>
1479                       <goal>check</goal>
1480                     </goals>
1481                   </pluginExecutionFilter>
1482                   <action>
1483                     <ignore></ignore>
1484                   </action>
1485                 </pluginExecution>
1486               </pluginExecutions>
1487             </lifecycleMappingMetadata>
1488           </configuration>
1489         </plugin>
1490
1491         <plugin>
1492           <groupId>org.jacoco</groupId>
1493           <artifactId>jacoco-maven-plugin</artifactId>
1494           <configuration>
1495             <!-- Note: This exclusion list should match <sonar.exclusions>
1496                        property above -->
1497             <excludes>
1498               <exclude>**/gen/**</exclude>
1499               <exclude>**/generated-sources/**</exclude>
1500               <exclude>**/generated-test-sources/**</exclude>
1501               <exclude>**/yang-gen/**</exclude>
1502               <exclude>**/yang-gen-config/**</exclude>
1503               <exclude>**/yang-gen-sal/**</exclude>
1504               <exclude>**/yang-gen-code/**</exclude>
1505               <exclude>**/pax/**</exclude>
1506             </excludes>
1507           </configuration>
1508         </plugin>
1509
1510         <plugin>
1511           <groupId>org.ops4j.pax.exam</groupId>
1512           <artifactId>maven-paxexam-plugin</artifactId>
1513           <version>1.2.4</version>
1514         </plugin>
1515
1516         <!-- When updating this version, consider antl4-runtime above -->
1517         <plugin>
1518           <groupId>org.antlr</groupId>
1519           <artifactId>antlr4-maven-plugin</artifactId>
1520           <version>4.8-1</version>
1521         </plugin>
1522       </plugins>
1523     </pluginManagement>
1524
1525     <plugins>
1526       <plugin>
1527         <artifactId>maven-enforcer-plugin</artifactId>
1528         <executions>
1529           <execution>
1530             <id>enforce-banned-dependencies</id>
1531             <goals>
1532               <goal>enforce</goal>
1533             </goals>
1534             <configuration>
1535               <rules>
1536                 <bannedDependencies>
1537                   <message>Please always use mockito-core instead of mockito-all (see https://bugs.opendaylight.org/show_bug.cgi?id=7662), and spotbugs:annotations instead of findbugs:annotations</message>
1538                   <excludes>
1539                     <exclude>org.mockito:mockito-all</exclude>
1540                     <exclude>com.google.code.findbugs:annotations</exclude>
1541                   </excludes>
1542                 </bannedDependencies>
1543               </rules>
1544               <fail>true</fail>
1545             </configuration>
1546           </execution>
1547         </executions>
1548       </plugin>
1549       <plugin>
1550         <groupId>org.basepom.maven</groupId>
1551         <artifactId>duplicate-finder-maven-plugin</artifactId>
1552         <version>1.4.0</version>
1553         <executions>
1554           <execution>
1555             <id>find-duplicate-classpath-entries</id>
1556             <phase>verify</phase>
1557             <goals>
1558               <goal>check</goal>
1559             </goals>
1560           </execution>
1561         </executions>
1562         <configuration>
1563             <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1564             <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1565             <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1566             <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1567             <printEqualFiles>false</printEqualFiles>
1568             <quiet>true</quiet>
1569             <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1570                  as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1571                  we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1572                  also ignore: -->
1573             <ignoredResourcePatterns>
1574               <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1575               <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1576               <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1577               <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1578               <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1579               <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1580             </ignoredResourcePatterns>
1581             <ignoredDependencies>
1582               <ignoredDependency>
1583                 <groupId>org.slf4j</groupId>
1584                 <artifactId>slf4j-simple</artifactId>
1585               </ignoredDependency>
1586               <ignoredDependency>
1587                 <groupId>org.opendaylight.odlparent</groupId>
1588                 <artifactId>opendaylight-karaf-empty</artifactId>
1589               </ignoredDependency>
1590             </ignoredDependencies>
1591         </configuration>
1592       </plugin>
1593       <plugin>
1594         <artifactId>maven-dependency-plugin</artifactId>
1595       </plugin>
1596       <plugin>
1597         <artifactId>maven-checkstyle-plugin</artifactId>
1598       </plugin>
1599       <plugin>
1600           <artifactId>maven-pmd-plugin</artifactId>
1601       </plugin>
1602       <plugin>
1603         <artifactId>maven-source-plugin</artifactId>
1604       </plugin>
1605       <plugin>
1606         <artifactId>maven-javadoc-plugin</artifactId>
1607       </plugin>
1608       <plugin>
1609         <groupId>org.gaul</groupId>
1610         <artifactId>modernizer-maven-plugin</artifactId>
1611       </plugin>
1612       <plugin>
1613         <groupId>com.github.spotbugs</groupId>
1614         <artifactId>spotbugs-maven-plugin</artifactId>
1615       </plugin>
1616
1617       <!-- Jacoco / Sonar -->
1618       <plugin>
1619         <groupId>org.jacoco</groupId>
1620         <artifactId>jacoco-maven-plugin</artifactId>
1621         <executions>
1622           <execution>
1623             <id>pre-unit-test</id>
1624             <goals>
1625               <goal>prepare-agent</goal>
1626             </goals>
1627           </execution>
1628           <execution>
1629             <id>report</id>
1630             <goals>
1631               <goal>report</goal>
1632             </goals>
1633           </execution>
1634         </executions>
1635       </plugin>
1636
1637       <plugin>
1638         <groupId>com.alexecollins.maven.plugin</groupId>
1639         <artifactId>script-maven-plugin</artifactId>
1640         <version>1.0.0</version>
1641         <executions>
1642            <execution>
1643              <phase>prepare-package</phase>
1644              <goals>
1645                <goal>execute</goal>
1646              </goals>
1647              <configuration>
1648                <script>
1649                  // BeanShell is 2005-ish and thus doesn't support generics, varargs, try-with-resources or lambdas, so:
1650                  // (If we do this kind of inline code in pom.xml more often, we shold have a new simple module in
1651                  //  odl-parent, which has *.java that we compile, and then just depend on it here and call one-line
1652                  //  static class methods only - it will be MUCH easier to write!)
1653                  void copy(File root, String glob, File target) {
1654                      java.nio.file.DirectoryStream dirStream = java.nio.file.Files.newDirectoryStream(root.toPath(), glob);
1655                      Iterator dirStreamIterator = dirStream.iterator();
1656                      while (dirStreamIterator.hasNext()) {
1657                          java.nio.file.Path path = dirStreamIterator.next();
1658                          java.nio.file.Files.copy(path, new File(target, path.toFile().getName()).toPath(),
1659                              new java.nio.file.CopyOption[] {
1660                                  java.nio.file.StandardCopyOption.REPLACE_EXISTING,
1661                                  java.nio.file.StandardCopyOption.COPY_ATTRIBUTES
1662                              }
1663                          );
1664                      }
1665                      dirStream.close();
1666                  }
1667
1668                  File gitRepoRootDir = project.basedir;
1669                  while (!new File(gitRepoRootDir, ".git").exists() &amp;&amp; gitRepoRootDir.getParentFile() != null) {
1670                      gitRepoRootDir = gitRepoRootDir.getParentFile();
1671                  }
1672
1673                  File target = new File(project.build.outputDirectory);
1674                  target.mkdirs();
1675                  copy(gitRepoRootDir, "README*", target);
1676                  copy(gitRepoRootDir, "CONTRIBUTING*", target);
1677                  copy(gitRepoRootDir, "PROJECT_INFO.yaml", target);
1678                </script>
1679              </configuration>
1680            </execution>
1681          </executions>
1682          <dependencies>
1683            <dependency>
1684              <groupId>org.apache-extras.beanshell</groupId>
1685              <artifactId>bsh</artifactId>
1686              <version>2.0b6</version>
1687            </dependency>
1688          </dependencies>
1689       </plugin>
1690     </plugins>
1691   </build>
1692
1693   <reporting>
1694     <plugins>
1695       <plugin>
1696         <artifactId>maven-checkstyle-plugin</artifactId>
1697         <version>3.1.0</version>
1698       </plugin>
1699
1700       <!-- FIXME: activate this
1701       <plugin>
1702         <artifactId>maven-project-info-reports-plugin</artifactId>
1703       </plugin-->
1704       <plugin>
1705         <groupId>org.codehaus.mojo</groupId>
1706         <artifactId>jdepend-maven-plugin</artifactId>
1707         <reportSets>
1708           <reportSet>
1709             <reports>
1710               <report>generate-no-fork</report>
1711             </reports>
1712           </reportSet>
1713         </reportSets>
1714       </plugin>
1715     </plugins>
1716   </reporting>
1717 </project>
1718