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