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