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