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