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