Bump modernizer-maven-plugin to 2.4.0
[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.1-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.6</karaf.version>
42
43     <!-- Supporting Libraries -->
44     <!-- Only used internally -->
45     <bouncycastle.version>1.70</bouncycastle.version>
46
47     <!-- JaCoCo configuration, by default tied to Sonar configuration, but can be overridden separately
48          to allow projects to report Sonar values from the entire project. -->
49     <jacoco.destFile>${project.build.directory}/code-coverage/jacoco.exec</jacoco.destFile>
50     <jacoco.dataFile>${jacoco.destFile}</jacoco.dataFile>
51
52     <!-- Default Sonar configuration -->
53     <sonar.java.source>${maven.compiler.release}</sonar.java.source>
54     <sonar-jacoco-listeners.version>3.8</sonar-jacoco-listeners.version>
55     <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
56
57     <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
58     <sonar.exclusions>**/gen/**,**/generated-sources/**,**/generated-test-sources/**,**/yang-gen/**,**/yang-gen-config/**,**/yang-gen-sal/**,**/yang-gen-code/**,**/pax/**</sonar.exclusions>
59
60     <!-- Opt-in code quality checks -->
61     <duplicate-finder.skip>true</duplicate-finder.skip> <!-- Classpath duplicates -->
62
63     <!-- Redirect test output to files (overridable) -->
64     <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
65
66     <!-- Opt-out from maven-checkstyle-plugin failing the build on violations. Defaults
67          to true. Set to 'false' in pom.xml of project which desires to not enforce
68          no reported violations. -->
69     <odlparent.checkstyle.enforce>true</odlparent.checkstyle.enforce>
70
71     <!-- Opt-in into modernizer-maven-plugin failing the build on violations. Defaults
72          to true. Set to 'false' in pom.xml of project which desires to not enforce
73          no reported violations. -->
74     <odlparent.modernizer.enforce>true</odlparent.modernizer.enforce>
75
76     <!-- Target release for modernizer-maven-plugin. It defaults to '1.11',
77          meaning Java 11, but can be set to any version in pom.xml of project
78          which desires to override it (such as '1.12' for Java 12). -->
79     <odlparent.modernizer.target>1.11</odlparent.modernizer.target>
80
81     <!-- Opt-out from spotbugs-maven-plugin failing the build on violations. Defaults
82          to true. Set to 'false' in pom.xml of project which desires to not enforce
83          no reported violations. -->
84     <odlparent.spotbugs.enforce>true</odlparent.spotbugs.enforce>
85
86     <!-- Opt-in into maven-dependency-plugin dependency declaration consistency
87          enforcement. Defaults to false. Set to 'true' in pom.xml of a project which
88          desires to have the consistency of its dependencies checked and enforced. -->
89     <odlparent.dependency.enforce>false</odlparent.dependency.enforce>
90
91     <!-- Opt-out from maven-dependency-plugin dependency declaration consistency
92          checking. Defaults to false. Set to 'true' in pom.xml of a project which
93          desires to not check the consistency of its dependencies. -->
94     <odlparent.dependency.skip>false</odlparent.dependency.skip>
95   </properties>
96
97   <dependencyManagement>
98     <dependencies>
99
100       <dependency>
101         <groupId>org.opendaylight.odlparent</groupId>
102         <artifactId>odlparent-artifacts</artifactId>
103         <version>10.0.1-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.4.0</version>
155         <scope>test</scope>
156       </dependency>
157       <dependency>
158         <groupId>org.mockito</groupId>
159         <artifactId>mockito-junit-jupiter</artifactId>
160         <version>4.4.0</version>
161         <scope>test</scope>
162       </dependency>
163       <dependency>
164         <groupId>org.mockito</groupId>
165         <artifactId>mockito-inline</artifactId>
166         <version>4.4.0</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.10</version>
239       </dependency>
240       <dependency>
241         <groupId>ch.qos.logback</groupId>
242         <artifactId>logback-classic</artifactId>
243         <version>1.2.10</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.12.6 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.12.6</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.74.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-jdk15on</artifactId>
457         <version>${bouncycastle.version}</version>
458       </dependency>
459       <dependency>
460         <groupId>org.bouncycastle</groupId>
461         <artifactId>bcprov-jdk15on</artifactId>
462         <version>${bouncycastle.version}</version>
463       </dependency>
464       <dependency>
465         <groupId>org.bouncycastle</groupId>
466         <artifactId>bcprov-ext-jdk15on</artifactId>
467         <version>${bouncycastle.version}</version>
468       </dependency>
469       <dependency>
470         <groupId>org.bouncycastle</groupId>
471         <artifactId>bcutil-jdk15on</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.43.v20210629</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.8</version>
1091         <scope>import</scope>
1092         <type>pom</type>
1093       </dependency>
1094
1095     </dependencies>
1096   </dependencyManagement>
1097
1098   <dependencies>
1099     <!--
1100          We expect slf4j-api to be provided by the platform.
1101          Karaf provides it, other containers need to provide it themselves.
1102     -->
1103     <dependency>
1104       <groupId>org.slf4j</groupId>
1105       <artifactId>slf4j-api</artifactId>
1106       <scope>provided</scope>
1107     </dependency>
1108
1109     <!--
1110           Enable useful code quality annotations everywhere. Since these annotations
1111           are not required at runtime.
1112     -->
1113     <dependency>
1114       <groupId>org.eclipse.jdt</groupId>
1115       <artifactId>org.eclipse.jdt.annotation</artifactId>
1116       <scope>provided</scope>
1117     </dependency>
1118     <dependency>
1119       <groupId>com.github.spotbugs</groupId>
1120       <artifactId>spotbugs-annotations</artifactId>
1121       <scope>provided</scope>
1122       <optional>true</optional>
1123     </dependency>
1124     <dependency>
1125       <groupId>org.gaul</groupId>
1126       <artifactId>modernizer-maven-annotations</artifactId>
1127       <scope>provided</scope>
1128     </dependency>
1129
1130     <!--
1131           Testing output should be routed through slf4j-simple.
1132     -->
1133     <dependency>
1134       <groupId>org.slf4j</groupId>
1135       <artifactId>slf4j-simple</artifactId>
1136       <scope>test</scope>
1137     </dependency>
1138
1139     <!--
1140           Unit tests can use JUnit + Mockito + Hamcrest by default.
1141     -->
1142     <dependency>
1143       <groupId>org.hamcrest</groupId>
1144       <artifactId>hamcrest</artifactId>
1145       <scope>test</scope>
1146     </dependency>
1147     <dependency>
1148       <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
1149       <groupId>org.hamcrest</groupId>
1150       <artifactId>hamcrest-library</artifactId>
1151       <scope>test</scope>
1152     </dependency>
1153
1154     <!-- JUnit 5 integration -->
1155     <dependency>
1156       <groupId>org.junit.jupiter</groupId>
1157       <artifactId>junit-jupiter-api</artifactId>
1158       <scope>test</scope>
1159     </dependency>
1160     <dependency>
1161       <groupId>org.junit.jupiter</groupId>
1162       <artifactId>junit-jupiter-engine</artifactId>
1163       <scope>test</scope>
1164     </dependency>
1165     <dependency>
1166       <groupId>org.mockito</groupId>
1167       <artifactId>mockito-junit-jupiter</artifactId>
1168       <scope>test</scope>
1169     </dependency>
1170
1171     <!-- JUnit 4 integration -->
1172     <dependency>
1173       <groupId>junit</groupId>
1174       <artifactId>junit</artifactId>
1175       <scope>test</scope>
1176     </dependency>
1177     <dependency>
1178       <groupId>org.junit.jupiter</groupId>
1179       <artifactId>junit-jupiter-migrationsupport</artifactId>
1180       <scope>test</scope>
1181     </dependency>
1182     <dependency>
1183       <groupId>org.junit.vintage</groupId>
1184       <artifactId>junit-vintage-engine</artifactId>
1185       <scope>test</scope>
1186     </dependency>
1187     <dependency>
1188       <groupId>org.mockito</groupId>
1189       <artifactId>mockito-core</artifactId>
1190       <scope>test</scope>
1191     </dependency>
1192   </dependencies>
1193
1194   <build>
1195     <pluginManagement>
1196       <plugins>
1197         <!-- Official maven plugins, alpha-sorted by artifactId.
1198              We do not need to specify the groupId. -->
1199         <plugin>
1200           <artifactId>maven-checkstyle-plugin</artifactId>
1201           <version>3.1.2</version>
1202           <dependencies>
1203             <dependency>
1204               <groupId>com.puppycrawl.tools</groupId>
1205               <artifactId>checkstyle</artifactId>
1206               <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
1207               <version>10.1</version>
1208             </dependency>
1209             <dependency>
1210               <groupId>org.opendaylight.odlparent</groupId>
1211               <artifactId>checkstyle</artifactId>
1212               <version>10.0.1-SNAPSHOT</version>
1213             </dependency>
1214             <dependency>
1215               <groupId>com.github.sevntu-checkstyle</groupId>
1216               <artifactId>sevntu-checks</artifactId>
1217               <version>1.41.0</version>
1218             </dependency>
1219           </dependencies>
1220           <configuration>
1221             <configLocation>odl_checks.xml</configLocation>
1222             <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
1223             <!-- <sourceDirectories> are needed so that checkstyle ignores the
1224                  generated sources directory -->
1225             <sourceDirectories>
1226               <directory>${project.build.sourceDirectory}</directory>
1227             </sourceDirectories>
1228             <includeResources>true</includeResources>
1229             <includeTestSourceDirectory>true</includeTestSourceDirectory>
1230             <includeTestResources>true</includeTestResources>
1231             <includes>**\/*.java</includes>
1232             <excludes>
1233               org/opendaylight/yang/gen/**,
1234               **/protobuff/messages/**,
1235               **/thrift/gen/*.java,
1236               **/module-info.java
1237             </excludes>
1238             <failsOnError>false</failsOnError>
1239             <consoleOutput>true</consoleOutput>
1240           </configuration>
1241           <executions>
1242             <execution>
1243               <id>check-license</id>
1244               <goals>
1245                 <goal>check</goal>
1246               </goals>
1247               <phase>process-sources</phase>
1248               <configuration>
1249                 <configLocation>check-license.xml</configLocation>
1250                 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
1251                 <includeResources>false</includeResources>
1252                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
1253                 <includeTestResources>false</includeTestResources>
1254                 <sourceDirectories>
1255                   <directory>${project.build.sourceDirectory}</directory>
1256                 </sourceDirectories>
1257                 <excludes>
1258                   org/opendaylight/yang/gen/**,
1259                   **/protobuff/messages/**,
1260                   **/thrift/gen/*.java
1261                 </excludes>
1262                 <failsOnError>false</failsOnError>
1263                 <consoleOutput>true</consoleOutput>
1264               </configuration>
1265             </execution>
1266             <execution>
1267               <goals>
1268                 <goal>check</goal>
1269               </goals>
1270               <phase>process-sources</phase>
1271               <configuration>
1272                 <failOnViolation>${odlparent.checkstyle.enforce}</failOnViolation>
1273                 <skip>${odlparent.checkstyle.skip}</skip>
1274                 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
1275               </configuration>
1276             </execution>
1277           </executions>
1278         </plugin>
1279         <plugin>
1280           <artifactId>maven-compiler-plugin</artifactId>
1281           <configuration>
1282             <showWarnings>true</showWarnings>
1283             <compilerArgs>
1284               <arg>-parameters</arg>
1285               <arg>-Xlint:all</arg>
1286               <!-- Disable 'No processor claimed any of these annotations' -->
1287               <arg>-Xlint:-processing</arg>
1288             </compilerArgs>
1289             <annotationProcessorPaths>
1290               <dependency>
1291                 <groupId>org.immutables</groupId>
1292                 <artifactId>value</artifactId>
1293                 <!-- Keep this version in sync with dependency declaration above -->
1294                 <version>2.8.8</version>
1295               </dependency>
1296               <dependency>
1297                 <groupId>org.kohsuke.metainf-services</groupId>
1298                 <artifactId>metainf-services</artifactId>
1299                 <!-- Keep this version in sync with dependency declaration above -->
1300                 <version>1.9</version>
1301               </dependency>
1302             </annotationProcessorPaths>
1303           </configuration>
1304         </plugin>
1305         <plugin>
1306           <artifactId>maven-failsafe-plugin</artifactId>
1307           <version>2.22.2</version>
1308         </plugin>
1309         <plugin>
1310           <artifactId>maven-invoker-plugin</artifactId>
1311           <version>3.2.2</version>
1312         </plugin>
1313         <plugin>
1314           <artifactId>maven-dependency-plugin</artifactId>
1315           <executions>
1316             <execution>
1317               <id>unpack-license</id>
1318               <phase>generate-resources</phase>
1319               <goals>
1320                 <goal>copy</goal>
1321               </goals>
1322               <configuration>
1323                 <artifactItems>
1324                   <artifactItem>
1325                     <groupId>org.opendaylight.odlparent</groupId>
1326                     <artifactId>odl-license</artifactId>
1327                     <version>10.0.1-SNAPSHOT</version>
1328                     <type>license</type>
1329                     <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1330                     <destFileName>LICENSE</destFileName>
1331                     <overWrite>false</overWrite>
1332                   </artifactItem>
1333                 </artifactItems>
1334                 <silent>true</silent>
1335               </configuration>
1336             </execution>
1337             <execution>
1338               <id>analyze-declarations</id>
1339               <goals>
1340                 <goal>analyze-only</goal>
1341               </goals>
1342               <configuration>
1343                 <failOnWarning>${odlparent.dependency.enforce}</failOnWarning>
1344                 <ignoreNonCompile>true</ignoreNonCompile>
1345                 <skip>${odlparent.dependency.skip}</skip>
1346               </configuration>
1347             </execution>
1348           </executions>
1349         </plugin>
1350
1351         <plugin>
1352           <artifactId>maven-plugin-plugin</artifactId>
1353           <version>3.6.2</version>
1354         </plugin>
1355
1356         <plugin>
1357           <artifactId>maven-remote-resources-plugin</artifactId>
1358           <version>1.7.0</version>
1359         </plugin>
1360         <plugin>
1361           <artifactId>maven-shade-plugin</artifactId>
1362           <version>3.2.4</version>
1363         </plugin>
1364         <plugin>
1365           <artifactId>maven-source-plugin</artifactId>
1366           <version>3.2.1</version>
1367           <executions>
1368             <execution>
1369               <id>attach-sources</id>
1370               <phase>verify</phase>
1371               <goals>
1372                 <goal>jar-no-fork</goal>
1373               </goals>
1374             </execution>
1375           </executions>
1376         </plugin>
1377         <plugin>
1378           <artifactId>maven-surefire-plugin</artifactId>
1379           <version>2.22.2</version>
1380           <configuration>
1381             <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1382             <trimStackTrace>false</trimStackTrace>
1383           </configuration>
1384         </plugin>
1385
1386         <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1387         <plugin>
1388           <groupId>org.basepom.maven</groupId>
1389           <artifactId>duplicate-finder-maven-plugin</artifactId>
1390           <version>1.5.0</version>
1391         </plugin>
1392
1393         <plugin>
1394           <groupId>com.github.ekryd.echo-maven-plugin</groupId>
1395           <artifactId>echo-maven-plugin</artifactId>
1396           <version>1.3.2</version>
1397         </plugin>
1398
1399         <plugin>
1400           <groupId>org.apache.felix</groupId>
1401           <artifactId>maven-bundle-plugin</artifactId>
1402           <version>5.1.4</version>
1403           <extensions>true</extensions>
1404           <configuration>
1405             <instructions>
1406               <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1407                    so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1408                    and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present.  -->
1409               <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>
1410
1411               <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1412                    to generate Import-Service and Export-Service headers. -->
1413               <_removeheaders>Import-Service,Export-Service</_removeheaders>
1414             </instructions>
1415           </configuration>
1416         </plugin>
1417
1418         <plugin>
1419           <groupId>org.apache.karaf.tooling</groupId>
1420           <artifactId>karaf-maven-plugin</artifactId>
1421           <version>${karaf.version}</version>
1422           <extensions>true</extensions>
1423         </plugin>
1424
1425         <plugin>
1426           <groupId>org.apache.servicemix.tooling</groupId>
1427           <artifactId>depends-maven-plugin</artifactId>
1428           <version>1.4.0</version>
1429           <executions>
1430             <execution>
1431               <id>generate-depends-file</id>
1432               <goals>
1433                 <goal>generate-depends-file</goal>
1434               </goals>
1435             </execution>
1436           </executions>
1437         </plugin>
1438
1439         <plugin>
1440           <groupId>com.webcohesion.enunciate</groupId>
1441           <artifactId>enunciate-maven-plugin</artifactId>
1442           <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1443           <version>2.13.3</version>
1444         </plugin>
1445
1446         <plugin>
1447           <groupId>org.gaul</groupId>
1448           <artifactId>modernizer-maven-plugin</artifactId>
1449           <version>2.4.0</version>
1450           <configuration>
1451             <javaVersion>${odlparent.modernizer.target}</javaVersion>
1452             <failOnViolations>${odlparent.modernizer.enforce}</failOnViolations>
1453             <skip>${odlparent.modernizer.skip}</skip>
1454
1455             <exclusionPatterns>
1456               <!-- We are using Guava as per normal and we have grown a large body of code
1457                    around the patterns there. Furthermore the suggested replacements have
1458                    different behavior, hence we do NOT want to blindly migrate. Examples
1459                    include:
1460
1461                    - Iterables, which we are widely use for efficient discovery of when
1462                      the Iterable is actually a Collection
1463               -->
1464               <exclusionPattern>com/google/common/collect/Iterables.*</exclusionPattern>
1465             </exclusionPatterns>
1466           </configuration>
1467
1468           <executions>
1469             <execution>
1470               <id>modernizer</id>
1471               <phase>verify</phase>
1472               <goals>
1473                 <goal>modernizer</goal>
1474               </goals>
1475             </execution>
1476           </executions>
1477         </plugin>
1478
1479         <plugin>
1480           <groupId>org.apache.karaf.tooling</groupId>
1481           <artifactId>karaf-services-maven-plugin</artifactId>
1482           <version>${karaf.version}</version>
1483           <executions>
1484             <execution>
1485               <id>service-metadata-generate</id>
1486               <phase>process-classes</phase>
1487               <goals>
1488                 <goal>service-metadata-generate</goal>
1489               </goals>
1490             </execution>
1491           </executions>
1492         </plugin>
1493
1494         <plugin>
1495           <groupId>com.github.spotbugs</groupId>
1496           <artifactId>spotbugs-maven-plugin</artifactId>
1497           <version>4.6.0.0</version>
1498           <dependencies>
1499             <dependency>
1500               <groupId>com.github.spotbugs</groupId>
1501               <artifactId>spotbugs</artifactId>
1502               <version>4.6.0</version>
1503             </dependency>
1504             <dependency>
1505               <groupId>org.opendaylight.odlparent</groupId>
1506               <artifactId>spotbugs</artifactId>
1507               <version>10.0.1-SNAPSHOT</version>
1508             </dependency>
1509             <dependency>
1510               <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 4 -->
1511               <groupId>org.slf4j</groupId>
1512               <artifactId>slf4j-simple</artifactId>
1513               <version>1.8.0-beta4</version>
1514             </dependency>
1515           </dependencies>
1516           <configuration>
1517             <plugins>
1518               <plugin>
1519                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1520                 <artifactId>bug-pattern</artifactId>
1521                 <version>1.5.0</version>
1522               </plugin>
1523             </plugins>
1524             <!--
1525               Enables analysis which takes more memory but finds more bugs.
1526               If you run out of memory, changes the value of the effort element
1527               to 'Low'.
1528             -->
1529             <effort>Max</effort>
1530             <!-- Reports all bugs (other values are medium and max) -->
1531             <threshold>Low</threshold>
1532             <!-- Build doesn't fail if problems are found -->
1533             <failOnError>${odlparent.spotbugs.enforce}</failOnError>
1534             <skip>${odlparent.spotbugs.skip}</skip>
1535             <!-- References the excluded rules -->
1536             <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1537             <!-- Produces XML report -->
1538             <xmlOutput>true</xmlOutput>
1539             <!-- Configures the directory in which the XML report is created -->
1540             <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1541           </configuration>
1542           <executions>
1543             <!--
1544               Ensures that SpotBugs inspects source code when project is compiled.
1545             -->
1546             <execution>
1547               <id>analyze-compile</id>
1548               <phase>compile</phase>
1549               <goals>
1550                 <goal>check</goal>
1551               </goals>
1552             </execution>
1553           </executions>
1554         </plugin>
1555         <plugin>
1556           <groupId>org.codehaus.mojo</groupId>
1557           <artifactId>properties-maven-plugin</artifactId>
1558           <version>1.0.0</version>
1559         </plugin>
1560         <plugin>
1561           <groupId>org.eclipse.m2e</groupId>
1562           <artifactId>lifecycle-mapping</artifactId>
1563           <version>1.0.0</version>
1564           <configuration>
1565             <lifecycleMappingMetadata>
1566               <pluginExecutions>
1567                 <pluginExecution>
1568                   <pluginExecutionFilter>
1569                     <groupId>org.apache.felix</groupId>
1570                     <artifactId>maven-bundle-plugin</artifactId>
1571                     <versionRange>[1.0,)</versionRange>
1572                     <goals>
1573                       <goal>manifest</goal>
1574                     </goals>
1575                   </pluginExecutionFilter>
1576                   <action>
1577                     <execute/>
1578                   </action>
1579                 </pluginExecution>
1580                 <pluginExecution>
1581                   <pluginExecutionFilter>
1582                     <groupId>org.apache.maven.plugins</groupId>
1583                     <artifactId>maven-enforcer-plugin</artifactId>
1584                     <versionRange>[1.0.0,)</versionRange>
1585                     <goals>
1586                       <goal>enforce</goal>
1587                     </goals>
1588                   </pluginExecutionFilter>
1589                   <action>
1590                     <ignore/>
1591                   </action>
1592                 </pluginExecution>
1593                 <pluginExecution>
1594                   <pluginExecutionFilter>
1595                     <groupId>org.apache.maven.plugins</groupId>
1596                     <artifactId>maven-dependency-plugin</artifactId>
1597                     <versionRange>[2.10,)</versionRange>
1598                     <goals>
1599                       <goal>copy</goal>
1600                     </goals>
1601                   </pluginExecutionFilter>
1602                   <action>
1603                     <ignore/>
1604                   </action>
1605                 </pluginExecution>
1606                 <!-- The plugin will eventually be removed, remove this too at that point -->
1607                 <pluginExecution>
1608                   <pluginExecutionFilter>
1609                     <groupId>org.apache.maven.plugins</groupId>
1610                     <artifactId>maven-antrun-plugin</artifactId>
1611                     <versionRange>[1.8,)</versionRange>
1612                     <goals>
1613                       <goal>run</goal>
1614                     </goals>
1615                   </pluginExecutionFilter>
1616                   <action>
1617                     <ignore/>
1618                   </action>
1619                 </pluginExecution>
1620                 <pluginExecution>
1621                   <pluginExecutionFilter>
1622                     <groupId>org.apache.servicemix.tooling</groupId>
1623                     <artifactId>depends-maven-plugin</artifactId>
1624                     <versionRange>[1.2,)</versionRange>
1625                     <goals>
1626                       <goal>generate-depends-file</goal>
1627                     </goals>
1628                   </pluginExecutionFilter>
1629                   <action>
1630                     <execute/>
1631                   </action>
1632                 </pluginExecution>
1633                 <pluginExecution>
1634                   <pluginExecutionFilter>
1635                     <groupId>org.jacoco</groupId>
1636                     <artifactId>jacoco-maven-plugin</artifactId>
1637                     <versionRange>[0.7.0,)</versionRange>
1638                     <goals>
1639                       <goal>prepare-agent</goal>
1640                     </goals>
1641                   </pluginExecutionFilter>
1642                   <action>
1643                     <ignore/>
1644                   </action>
1645                 </pluginExecution>
1646
1647                 <pluginExecution>
1648                   <pluginExecutionFilter>
1649                     <groupId>org.ops4j.pax.exam</groupId>
1650                     <artifactId>maven-paxexam-plugin</artifactId>
1651                     <versionRange>[1.2.4,)</versionRange>
1652                     <goals>
1653                       <goal>generate-depends-file</goal>
1654                     </goals>
1655                   </pluginExecutionFilter>
1656                   <action>
1657                     <ignore/>
1658                   </action>
1659                 </pluginExecution>
1660
1661                 <pluginExecution>
1662                   <pluginExecutionFilter>
1663                     <groupId>org.basepom.maven</groupId>
1664                     <artifactId>
1665                       duplicate-finder-maven-plugin
1666                     </artifactId>
1667                     <versionRange>[1.2.1,)</versionRange>
1668                     <goals>
1669                       <goal>check</goal>
1670                     </goals>
1671                   </pluginExecutionFilter>
1672                   <action>
1673                     <ignore></ignore>
1674                   </action>
1675                 </pluginExecution>
1676               </pluginExecutions>
1677             </lifecycleMappingMetadata>
1678           </configuration>
1679         </plugin>
1680
1681         <plugin>
1682           <groupId>org.jacoco</groupId>
1683           <artifactId>jacoco-maven-plugin</artifactId>
1684           <configuration>
1685             <!-- Note: This exclusion list should match <sonar.exclusions>
1686                        property above -->
1687             <excludes>
1688               <exclude>**/gen/**</exclude>
1689               <exclude>**/generated-sources/**</exclude>
1690               <exclude>**/generated-test-sources/**</exclude>
1691               <exclude>**/yang-gen/**</exclude>
1692               <exclude>**/yang-gen-config/**</exclude>
1693               <exclude>**/yang-gen-sal/**</exclude>
1694               <exclude>**/yang-gen-code/**</exclude>
1695               <exclude>**/pax/**</exclude>
1696             </excludes>
1697           </configuration>
1698         </plugin>
1699
1700         <plugin>
1701           <groupId>org.ops4j.pax.exam</groupId>
1702           <artifactId>maven-paxexam-plugin</artifactId>
1703           <version>1.2.4</version>
1704         </plugin>
1705
1706         <!-- When updating this version, consider antl4-runtime above -->
1707         <plugin>
1708           <groupId>org.antlr</groupId>
1709           <artifactId>antlr4-maven-plugin</artifactId>
1710           <version>4.9.3</version>
1711         </plugin>
1712       </plugins>
1713     </pluginManagement>
1714
1715     <plugins>
1716       <plugin>
1717         <artifactId>maven-enforcer-plugin</artifactId>
1718         <executions>
1719           <execution>
1720             <id>enforce-banned-dependencies</id>
1721             <goals>
1722               <goal>enforce</goal>
1723             </goals>
1724             <configuration>
1725               <rules>
1726                 <bannedDependencies>
1727                   <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>
1728                   <excludes>
1729                     <exclude>org.mockito:mockito-all</exclude>
1730                     <exclude>com.google.code.findbugs:annotations</exclude>
1731                   </excludes>
1732                 </bannedDependencies>
1733               </rules>
1734               <fail>true</fail>
1735             </configuration>
1736           </execution>
1737         </executions>
1738       </plugin>
1739       <plugin>
1740         <groupId>org.basepom.maven</groupId>
1741         <artifactId>duplicate-finder-maven-plugin</artifactId>
1742         <executions>
1743           <execution>
1744             <id>find-duplicate-classpath-entries</id>
1745             <phase>verify</phase>
1746             <goals>
1747               <goal>check</goal>
1748             </goals>
1749           </execution>
1750         </executions>
1751         <configuration>
1752             <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1753             <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1754             <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1755             <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1756             <printEqualFiles>false</printEqualFiles>
1757             <quiet>true</quiet>
1758             <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1759                  as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1760                  we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1761                  also ignore: -->
1762             <ignoredResourcePatterns>
1763               <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1764               <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1765               <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1766               <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1767               <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1768               <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1769               <ignoredResourcePattern>.api_description</ignoredResourcePattern>
1770             </ignoredResourcePatterns>
1771             <ignoredDependencies>
1772               <ignoredDependency>
1773                 <groupId>org.slf4j</groupId>
1774                 <artifactId>slf4j-simple</artifactId>
1775               </ignoredDependency>
1776               <ignoredDependency>
1777                 <groupId>org.opendaylight.odlparent</groupId>
1778                 <artifactId>opendaylight-karaf-empty</artifactId>
1779               </ignoredDependency>
1780             </ignoredDependencies>
1781         </configuration>
1782       </plugin>
1783       <plugin>
1784         <artifactId>maven-dependency-plugin</artifactId>
1785       </plugin>
1786       <plugin>
1787         <artifactId>maven-checkstyle-plugin</artifactId>
1788       </plugin>
1789       <plugin>
1790         <artifactId>maven-source-plugin</artifactId>
1791       </plugin>
1792       <plugin>
1793         <artifactId>maven-javadoc-plugin</artifactId>
1794       </plugin>
1795       <plugin>
1796         <groupId>org.gaul</groupId>
1797         <artifactId>modernizer-maven-plugin</artifactId>
1798       </plugin>
1799       <plugin>
1800         <groupId>com.github.spotbugs</groupId>
1801         <artifactId>spotbugs-maven-plugin</artifactId>
1802       </plugin>
1803
1804       <!-- Jacoco / Sonar -->
1805       <plugin>
1806         <groupId>org.jacoco</groupId>
1807         <artifactId>jacoco-maven-plugin</artifactId>
1808         <executions>
1809           <execution>
1810             <id>pre-unit-test</id>
1811             <goals>
1812               <goal>prepare-agent</goal>
1813             </goals>
1814           </execution>
1815           <execution>
1816             <id>report</id>
1817             <goals>
1818               <goal>report</goal>
1819             </goals>
1820           </execution>
1821         </executions>
1822       </plugin>
1823
1824       <plugin>
1825         <groupId>org.opendaylight.odlparent</groupId>
1826         <artifactId>copy-files-plugin</artifactId>
1827         <version>10.0.1-SNAPSHOT</version>
1828         <executions>
1829           <execution>
1830             <phase>prepare-package</phase>
1831             <goals>
1832               <goal>copy-files</goal>
1833             </goals>
1834             <configuration>
1835               <globs>
1836                 <glob>README*</glob>
1837                 <glob>CONTRIBUTING*</glob>
1838                 <glob>PROJECT_INFO.yaml</glob>
1839               </globs>
1840             </configuration>
1841           </execution>
1842         </executions>
1843       </plugin>
1844     </plugins>
1845   </build>
1846
1847   <reporting>
1848     <plugins>
1849       <plugin>
1850         <artifactId>maven-checkstyle-plugin</artifactId>
1851         <version>3.1.0</version>
1852       </plugin>
1853
1854       <!-- FIXME: activate this
1855       <plugin>
1856         <artifactId>maven-project-info-reports-plugin</artifactId>
1857       </plugin-->
1858       <plugin>
1859         <groupId>org.codehaus.mojo</groupId>
1860         <artifactId>jdepend-maven-plugin</artifactId>
1861         <reportSets>
1862           <reportSet>
1863             <reports>
1864               <report>generate-no-fork</report>
1865             </reports>
1866           </reportSet>
1867         </reportSets>
1868       </plugin>
1869     </plugins>
1870   </reporting>
1871 </project>
1872