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