Document that we’re staying on Gson 2.8.5
[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>7.0.0-SNAPSHOT</version>
17     <relativePath>../odlparent-lite</relativePath>
18   </parent>
19
20   <artifactId>odlparent</artifactId>
21   <packaging>pom</packaging>
22   <name>ODL :: odlparent :: ${project.artifactId}</name>
23
24   <scm>
25     <connection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</connection>
26     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</developerConnection>
27     <tag>HEAD</tag>
28     <url>https://wiki.opendaylight.org/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 openflowplugin -->
47     <enforcer.version>3.0.0-M2</enforcer.version>
48     <!-- Used in controller, genius, infrautils, netconf, netvirt, ovsdb, serviceutils -->
49     <karaf.version>4.2.6</karaf.version>
50     <!-- Used in bgpcep, lispflowmapping -->
51     <projectinfo>2.8.1</projectinfo>
52
53     <!-- Supporting Libraries -->
54     <!-- Only used internally -->
55     <bouncycastle.version>1.64</bouncycastle.version>
56
57     <!-- JaCoCo configuration, by default tied to Sonar configuration, but can be overridden separately
58          to allow projects to report Sonar values from the entire project. -->
59     <jacoco.destFile>${project.build.directory}/code-coverage/jacoco.exec</jacoco.destFile>
60
61     <!-- Default Sonar configuration -->
62     <sonar-jacoco-listeners.version>3.8</sonar-jacoco-listeners.version>
63     <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
64     <sonar.jacoco.reportPath>${jacoco.destFile}</sonar.jacoco.reportPath>
65     <sonar.jacoco.itReportPath>${project.build.directory}/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
66
67     <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
68     <sonar.exclusions>**/gen/**,**/generated-sources/**,**/generated-test-sources/**,**/yang-gen/**,**/yang-gen-config/**,**/yang-gen-sal/**,**/yang-gen-code/**,**/pax/**</sonar.exclusions>
69
70     <!-- Opt-in code quality checks -->
71     <pmd.cpd.fail>false</pmd.cpd.fail>                  <!-- Copy/paste detection -->
72     <duplicate-finder.skip>true</duplicate-finder.skip> <!-- Classpath duplicates -->
73
74     <!-- Redirect test output to files (overridable) -->
75     <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
76
77     <!-- Opt-out from maven-checkstyle-plugin failing the build on violations. Defaults
78          to true. Set to 'false' in pom.xml of project which desires to not enforce
79          no reported violations. -->
80     <odlparent.checkstyle.enforce>true</odlparent.checkstyle.enforce>
81
82     <!-- Opt-in into modernizer-maven-plugin failing the build on violations. Defaults
83          to false. Set to 'true' in pom.xml of project which desires to enforce
84          no reported violations. -->
85     <odlparent.modernizer.enforce>false</odlparent.modernizer.enforce>
86
87     <!-- Target release for modernizer-maven-plugin. It defaults to '1.8',
88          meaning Java 8, but can be set to any version in pom.xml of project
89          which desires to override it (such as '1.11' for Java 11). -->
90     <odlparent.modernizer.target>1.8</odlparent.modernizer.target>
91
92     <!-- Opt-out from spotbugs-maven-plugin failing the build on violations. Defaults
93          to true. Set to 'false' in pom.xml of project which desires to not enforce
94          no reported violations. -->
95     <odlparent.spotbugs.enforce>true</odlparent.spotbugs.enforce>
96   </properties>
97
98   <dependencyManagement>
99     <dependencies>
100
101       <dependency>
102         <groupId>org.opendaylight.odlparent</groupId>
103         <artifactId>odlparent-artifacts</artifactId>
104         <version>7.0.0-SNAPSHOT</version>
105         <scope>import</scope>
106         <type>pom</type>
107       </dependency>
108
109       <!-- We import Karaf dependencies to ensure we converge by default on the versions used there -->
110       <dependency>
111         <groupId>org.apache.karaf.features</groupId>
112         <artifactId>framework</artifactId>
113         <version>${karaf.version}</version>
114         <scope>import</scope>
115         <type>pom</type>
116       </dependency>
117
118       <!-- Build tool dependencies (normally not here in <dependencies>,
119            but in a <dependency> in <pluginManagement> but for Checkstyle this
120            is required so that we can share the same version of Checkstyle
121            for both the Maven plugin below as well as  for custom Checkstyle
122            check rule projects, such as yangtools' checkstyle-logging) -->
123       <dependency>
124         <groupId>com.puppycrawl.tools</groupId>
125         <artifactId>checkstyle</artifactId>
126         <!-- This should match the plugin management on maven-checkstyle-plugin below -->
127         <version>8.26</version>
128       </dependency>
129
130       <!-- Testing Dependencies -->
131       <!-- JUnit, Hamcrest, Mockito and PowerMock need to be kept in sync -->
132       <dependency>
133         <groupId>junit</groupId>
134         <artifactId>junit</artifactId>
135         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
136         <version>4.13</version>
137         <scope>test</scope>
138       </dependency>
139       <dependency>
140          <groupId>org.skyscreamer</groupId>
141          <artifactId>jsonassert</artifactId>
142          <version>1.5.0</version>
143          <scope>test</scope>
144       </dependency>
145       <dependency>
146         <groupId>org.mockito</groupId>
147         <artifactId>mockito-core</artifactId>
148         <version>2.28.2</version>
149         <scope>test</scope>
150       </dependency>
151       <dependency>
152         <groupId>org.mockito</groupId>
153         <artifactId>mockito-inline</artifactId>
154         <version>2.28.2</version>
155         <scope>test</scope>
156       </dependency>
157       <dependency>
158         <groupId>org.hamcrest</groupId>
159         <artifactId>hamcrest</artifactId>
160         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
161         <version>2.2</version>
162         <scope>test</scope>
163       </dependency>
164       <dependency>
165         <groupId>org.hamcrest</groupId>
166         <artifactId>hamcrest-core</artifactId>
167         <version>2.2</version>
168         <scope>test</scope>
169       </dependency>
170       <dependency>
171         <groupId>org.hamcrest</groupId>
172         <artifactId>hamcrest-library</artifactId>
173         <version>2.2</version>
174         <scope>test</scope>
175       </dependency>
176       <dependency>
177         <groupId>com.google.truth</groupId>
178         <artifactId>truth</artifactId>
179         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
180         <version>1.0.1</version>
181         <scope>test</scope>
182       </dependency>
183       <dependency>
184         <groupId>com.google.truth.extensions</groupId>
185         <artifactId>truth-java8-extension</artifactId>
186         <version>1.0.1</version>
187         <scope>test</scope>
188       </dependency>
189       <dependency>
190         <groupId>org.awaitility</groupId>
191         <artifactId>awaitility</artifactId>
192         <version>3.0.0</version>
193         <scope>test</scope>
194       </dependency>
195       <dependency>
196         <groupId>org.awaitility</groupId>
197         <artifactId>awaitility-proxy</artifactId>
198         <version>3.0.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.4</version>
205         <scope>test</scope>
206       </dependency>
207       <dependency>
208         <groupId>org.powermock</groupId>
209         <artifactId>powermock-api-support</artifactId>
210         <version>2.0.4</version>
211         <scope>test</scope>
212       </dependency>
213       <dependency>
214         <groupId>org.powermock</groupId>
215         <artifactId>powermock-core</artifactId>
216         <version>2.0.4</version>
217         <scope>test</scope>
218       </dependency>
219       <dependency>
220         <groupId>org.powermock</groupId>
221         <artifactId>powermock-module-junit4</artifactId>
222         <version>2.0.4</version>
223         <scope>test</scope>
224       </dependency>
225       <dependency>
226         <groupId>org.powermock</groupId>
227         <artifactId>powermock-reflect</artifactId>
228         <version>2.0.4</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.7.5</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>org.slf4j</groupId>
261         <artifactId>jcl-over-slf4j</artifactId>
262         <version>1.7.28</version>
263       </dependency>
264       <dependency>
265         <groupId>org.slf4j</groupId>
266         <artifactId>slf4j-api</artifactId>
267         <version>1.7.28</version>
268       </dependency>
269       <dependency>
270         <groupId>org.slf4j</groupId>
271         <artifactId>slf4j-log4j12</artifactId>
272         <version>1.7.28</version>
273       </dependency>
274       <dependency>
275         <groupId>org.slf4j</groupId>
276         <artifactId>log4j-over-slf4j</artifactId>
277         <version>1.7.28</version>
278       </dependency>
279       <dependency>
280         <groupId>org.slf4j</groupId>
281         <artifactId>slf4j-simple</artifactId>
282         <version>1.7.28</version>
283         <scope>test</scope>
284       </dependency>
285       <dependency>
286         <groupId>ch.qos.logback</groupId>
287         <artifactId>logback-core</artifactId>
288         <version>1.2.3</version>
289       </dependency>
290       <dependency>
291         <groupId>ch.qos.logback</groupId>
292         <artifactId>logback-classic</artifactId>
293         <version>1.2.3</version>
294       </dependency>
295
296       <!-- log4j2 -->
297       <dependency>
298         <groupId>org.apache.logging.log4j</groupId>
299         <artifactId>log4j-bom</artifactId>
300         <version>2.13.0</version>
301         <scope>import</scope>
302         <type>pom</type>
303       </dependency>
304
305       <dependency>
306         <groupId>com.google.guava</groupId>
307         <artifactId>guava</artifactId>
308         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
309         <version>27.1-jre</version>
310         <exclusions>
311           <exclusion>
312             <!-- Do not leak JSR305 onto the classpath by default -->
313             <groupId>com.google.code.findbugs</groupId>
314             <artifactId>jsr305</artifactId>
315           </exclusion>
316         </exclusions>
317       </dependency>
318       <dependency>
319         <groupId>com.google.guava</groupId>
320         <artifactId>guava-testlib</artifactId>
321         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
322         <version>27.1-jre</version>
323         <scope>test</scope>
324         <exclusions>
325           <exclusion>
326             <!-- Do not leak JSR305 onto the classpath by default -->
327             <groupId>com.google.code.findbugs</groupId>
328             <artifactId>jsr305</artifactId>
329           </exclusion>
330         </exclusions>
331       </dependency>
332
333       <dependency>
334         <groupId>commons-beanutils</groupId>
335         <artifactId>commons-beanutils</artifactId>
336         <version>1.9.4</version>
337       </dependency>
338       <dependency>
339         <groupId>org.apache.commons</groupId>
340         <artifactId>commons-lang3</artifactId>
341         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
342         <version>3.9</version>
343       </dependency>
344       <dependency>
345         <groupId>org.apache.commons</groupId>
346         <artifactId>commons-text</artifactId>
347         <version>1.8</version>
348       </dependency>
349       <dependency>
350         <groupId>commons-lang</groupId>
351         <artifactId>commons-lang</artifactId>
352         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
353         <version>2.6</version>
354       </dependency>
355       <dependency>
356         <groupId>commons-codec</groupId>
357         <artifactId>commons-codec</artifactId>
358         <version>1.14</version>
359       </dependency>
360       <!-- Jersey for JAXRS -->
361       <dependency>
362         <groupId>javax.ws.rs</groupId>
363         <artifactId>javax.ws.rs-api</artifactId>
364         <version>2.0.1</version>
365       </dependency>
366       <dependency>
367         <groupId>org.glassfish.jersey</groupId>
368         <artifactId>jersey-bom</artifactId>
369         <version>2.25.1</version>
370         <type>pom</type>
371         <scope>import</scope>
372       </dependency>
373       <dependency>
374         <groupId>org.glassfish</groupId>
375         <artifactId>javax.json</artifactId>
376         <version>1.1.2</version>
377       </dependency>
378
379       <dependency>
380         <groupId>org.checkerframework</groupId>
381         <artifactId>checker-qual</artifactId>
382         <version>2.5.8</version>
383       </dependency>
384       <dependency>
385         <groupId>com.google.errorprone</groupId>
386         <artifactId>error_prone_annotations</artifactId>
387         <version>2.3.3</version>
388       </dependency>
389
390       <dependency>
391         <groupId>javax.activation</groupId>
392         <artifactId>activation</artifactId>
393         <version>1.1.1</version>
394       </dependency>
395       <dependency>
396         <groupId>javax.annotation</groupId>
397         <artifactId>javax.annotation-api</artifactId>
398         <version>1.3</version>
399         <optional>true</optional>
400       </dependency>
401       <dependency>
402         <groupId>xml-apis</groupId>
403         <artifactId>xml-apis</artifactId>
404         <version>1.4.01</version>
405       </dependency>
406
407       <!-- Plugin integration -->
408       <dependency>
409         <groupId>net.java.dev.stax-utils</groupId>
410         <artifactId>stax-utils</artifactId>
411         <version>20070216</version>
412       </dependency>
413       <dependency>
414         <groupId>org.sonatype.plexus</groupId>
415         <artifactId>plexus-build-api</artifactId>
416         <version>0.0.7</version>
417       </dependency>
418       <dependency>
419         <groupId>org.codehaus.plexus</groupId>
420         <artifactId>plexus-slf4j-logging</artifactId>
421         <version>1.1</version>
422       </dependency>
423
424       <!-- These three need to be consistent:
425         jackson-2.9.10 needs woodstox-5.3.x
426         woodstox-5.3 needs stax2-api-4.2.x
427         -->
428       <dependency>
429         <groupId>org.codehaus.woodstox</groupId>
430         <artifactId>stax2-api</artifactId>
431         <version>4.2</version>
432       </dependency>
433       <dependency>
434         <groupId>com.fasterxml.woodstox</groupId>
435         <artifactId>woodstox-core</artifactId>
436         <version>5.3.0</version>
437       </dependency>
438       <dependency>
439         <groupId>com.fasterxml.jackson</groupId>
440         <artifactId>jackson-bom</artifactId>
441         <version>2.9.10.20200103</version>
442         <scope>import</scope>
443         <type>pom</type>
444       </dependency>
445
446       <dependency>
447         <groupId>com.github.spotbugs</groupId>
448         <artifactId>spotbugs-annotations</artifactId>
449         <version>3.1.12</version>
450         <scope>provided</scope>
451         <!-- Contains retention=RUNTIME annotations, which are not really needed -->
452         <optional>true</optional>
453         <exclusions>
454           <exclusion>
455             <groupId>com.google.code.findbugs</groupId>
456             <artifactId>jsr305</artifactId>
457           </exclusion>
458         </exclusions>
459       </dependency>
460
461       <dependency>
462         <groupId>org.eclipse.jdt</groupId>
463         <artifactId>org.eclipse.jdt.annotation</artifactId>
464         <version>2.2.100</version>
465         <scope>provided</scope>
466       </dependency>
467       <!-- We're staying on 2.8.5 for now, 2.8.6 has issues:
468            https://github.com/google/gson/issues/1601
469            https://github.com/google/gson/issues/1602
470            https://github.com/google/gson/issues/1608
471            https://github.com/google/gson/issues/1630
472       -->
473       <dependency>
474         <groupId>com.google.code.gson</groupId>
475         <artifactId>gson</artifactId>
476         <version>2.8.5</version>
477       </dependency>
478       <dependency>
479         <groupId>commons-fileupload</groupId>
480         <artifactId>commons-fileupload</artifactId>
481         <version>1.4</version>
482       </dependency>
483       <dependency>
484         <groupId>commons-io</groupId>
485         <artifactId>commons-io</artifactId>
486         <version>2.6</version>
487       </dependency>
488       <dependency>
489         <groupId>commons-net</groupId>
490         <artifactId>commons-net</artifactId>
491         <version>3.6</version>
492       </dependency>
493
494       <!-- Netty -->
495       <dependency>
496         <groupId>io.netty</groupId>
497         <artifactId>netty-all</artifactId>
498         <!-- If these are updated, the version in features.xml needs to be changed too -->
499         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
500         <version>4.1.45.Final</version>
501       </dependency>
502       <dependency>
503         <groupId>io.netty</groupId>
504         <artifactId>netty-buffer</artifactId>
505         <version>4.1.45.Final</version>
506       </dependency>
507       <dependency>
508         <groupId>io.netty</groupId>
509         <artifactId>netty-codec</artifactId>
510         <version>4.1.45.Final</version>
511       </dependency>
512       <dependency>
513         <groupId>io.netty</groupId>
514         <artifactId>netty-codec-http</artifactId>
515         <version>4.1.45.Final</version>
516       </dependency>
517       <dependency>
518         <groupId>io.netty</groupId>
519         <artifactId>netty-common</artifactId>
520         <version>4.1.45.Final</version>
521       </dependency>
522       <dependency>
523         <groupId>io.netty</groupId>
524         <artifactId>netty-handler</artifactId>
525         <version>4.1.45.Final</version>
526       </dependency>
527       <dependency>
528         <groupId>io.netty</groupId>
529         <artifactId>netty-transport</artifactId>
530         <version>4.1.45.Final</version>
531       </dependency>
532       <!-- Here we need to define all available native epoll implementations; we can't limit ourselves to the build
533       platform and we can't require the build platform to have an implementation (e.g. OS X) -->
534       <dependency>
535         <groupId>io.netty</groupId>
536         <artifactId>netty-transport-native-epoll</artifactId>
537         <classifier>linux-x86_64</classifier>
538         <version>4.1.45.Final</version>
539       </dependency>
540       <dependency>
541         <groupId>javax.ws.rs</groupId>
542         <artifactId>jsr311-api</artifactId>
543         <version>1.1.1</version>
544       </dependency>
545       <dependency>
546         <groupId>javax.servlet</groupId>
547         <artifactId>javax.servlet-api</artifactId>
548         <version>3.1.0</version>
549       </dependency>
550       <dependency>
551         <groupId>org.apache.felix</groupId>
552         <artifactId>org.apache.felix.dependencymanager</artifactId>
553         <version>4.4.1</version>
554       </dependency>
555       <dependency>
556         <groupId>org.apache.felix</groupId>
557         <artifactId>org.apache.felix.dependencymanager.shell</artifactId>
558         <version>4.0.6</version>
559       </dependency>
560       <dependency>
561         <groupId>org.apache.felix</groupId>
562         <artifactId>org.apache.felix.metatype</artifactId>
563         <version>1.2.2</version>
564       </dependency>
565       <dependency>
566         <groupId>org.bouncycastle</groupId>
567         <artifactId>bcpkix-jdk15on</artifactId>
568         <version>${bouncycastle.version}</version>
569       </dependency>
570       <dependency>
571         <groupId>org.bouncycastle</groupId>
572         <artifactId>bcprov-jdk15on</artifactId>
573         <version>${bouncycastle.version}</version>
574       </dependency>
575       <dependency>
576         <groupId>org.bouncycastle</groupId>
577         <artifactId>bcprov-ext-jdk15on</artifactId>
578         <version>${bouncycastle.version}</version>
579       </dependency>
580
581       <dependency>
582         <groupId>com.webcohesion.enunciate</groupId>
583         <artifactId>enunciate-core-annotations</artifactId>
584         <!-- This must be aligned with the version of enunciate-maven-plugin specified below -->
585         <version>2.11.1</version>
586       </dependency>
587
588       <dependency>
589         <groupId>org.codehaus.jettison</groupId>
590         <artifactId>jettison</artifactId>
591         <version>1.4.0</version>
592       </dependency>
593       <!-- To upgrade org.eclipse.persistence dependencies to 2.6.0+, we need to ensure all downstreams consumers
594          pull in javax.validation first:
595          http://stackoverflow.com/questions/28568154/how-to-get-eclipselink-2-6-0-m3-working-with-jersey-1-18-3 -->
596       <dependency>
597         <groupId>org.eclipse.persistence</groupId>
598         <artifactId>org.eclipse.persistence.antlr</artifactId>
599         <version>2.7.3</version>
600       </dependency>
601       <dependency>
602         <groupId>org.eclipse.persistence</groupId>
603         <artifactId>org.eclipse.persistence.core</artifactId>
604         <version>2.7.3</version>
605       </dependency>
606       <dependency>
607         <groupId>org.eclipse.persistence</groupId>
608         <artifactId>org.eclipse.persistence.moxy</artifactId>
609         <version>2.7.3</version>
610       </dependency>
611       <dependency>
612         <groupId>javax.validation</groupId>
613         <artifactId>validation-api</artifactId>
614         <version>1.1.0.Final</version>
615       </dependency>
616       <dependency>
617         <groupId>org.javassist</groupId>
618         <artifactId>javassist</artifactId>
619         <version>3.26.0-GA</version>
620       </dependency>
621       <dependency>
622         <groupId>org.jboss.spec.javax.transaction</groupId>
623         <artifactId>jboss-transaction-api_1.1_spec</artifactId>
624         <version>1.0.1.Final</version>
625       </dependency>
626       <dependency>
627         <groupId>org.jolokia</groupId>
628         <artifactId>jolokia-osgi</artifactId>
629         <version>1.6.2</version>
630       </dependency>
631       <dependency>
632         <groupId>org.osgi</groupId>
633         <artifactId>osgi.cmpn</artifactId>
634         <version>6.0.0</version>
635         <scope>provided</scope>
636       </dependency>
637       <dependency>
638         <groupId>org.osgi</groupId>
639         <artifactId>org.osgi.core</artifactId>
640         <version>6.0.0</version>
641         <scope>provided</scope>
642       </dependency>
643       <dependency>
644         <groupId>org.osgi</groupId>
645         <!-- for https://bugs.opendaylight.org/show_bug.cgi?id=4290 -->
646         <artifactId>org.osgi.service.event</artifactId>
647         <version>1.3.1</version>
648       </dependency>
649       <dependency>
650         <groupId>org.apache.aries.quiesce</groupId>
651         <artifactId>org.apache.aries.quiesce.api</artifactId>
652         <version>1.0.0</version>
653       </dependency>
654       <dependency>
655         <groupId>org.ow2.asm</groupId>
656         <artifactId>asm</artifactId>
657         <version>7.0</version>
658       </dependency>
659
660       <!-- Configuration library -->
661       <!-- This needs to be kept in sync with the version used by akka -->
662       <dependency>
663         <groupId>com.typesafe</groupId>
664         <artifactId>config</artifactId>
665         <version>1.3.3</version>
666       </dependency>
667
668       <!-- Reactive Streams, used by Akka -->
669       <dependency>
670         <groupId>org.reactivestreams</groupId>
671         <artifactId>reactive-streams</artifactId>
672         <version>1.0.3</version>
673       </dependency>
674
675       <!-- Akka -->
676       <dependency>
677         <groupId>com.typesafe</groupId>
678         <artifactId>ssl-config-core_2.12</artifactId>
679         <version>0.3.8</version>
680       </dependency>
681       <dependency>
682         <groupId>com.typesafe.akka</groupId>
683         <artifactId>akka-actor_2.12</artifactId>
684         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
685         <version>2.5.29</version>
686       </dependency>
687       <dependency>
688         <groupId>com.typesafe.akka</groupId>
689         <artifactId>akka-cluster_2.12</artifactId>
690         <version>2.5.29</version>
691       </dependency>
692       <dependency>
693         <groupId>com.typesafe.akka</groupId>
694         <artifactId>akka-osgi_2.12</artifactId>
695         <version>2.5.29</version>
696       </dependency>
697       <dependency>
698         <groupId>com.typesafe.akka</groupId>
699         <artifactId>akka-persistence_2.12</artifactId>
700         <version>2.5.29</version>
701       </dependency>
702       <dependency>
703         <groupId>com.typesafe.akka</groupId>
704         <artifactId>akka-persistence-tck_2.12</artifactId>
705         <version>2.5.29</version>
706         <scope>test</scope>
707       </dependency>
708       <dependency>
709         <groupId>com.typesafe.akka</groupId>
710         <artifactId>akka-protobuf_2.12</artifactId>
711         <version>2.5.29</version>
712       </dependency>
713       <dependency>
714         <groupId>com.typesafe.akka</groupId>
715         <artifactId>akka-remote_2.12</artifactId>
716         <version>2.5.29</version>
717       </dependency>
718       <dependency>
719         <groupId>com.typesafe.akka</groupId>
720         <artifactId>akka-slf4j_2.12</artifactId>
721         <version>2.5.29</version>
722       </dependency>
723       <dependency>
724         <groupId>com.typesafe.akka</groupId>
725         <artifactId>akka-stream_2.12</artifactId>
726         <version>2.5.29</version>
727       </dependency>
728       <dependency>
729         <groupId>com.typesafe.akka</groupId>
730         <artifactId>akka-testkit_2.12</artifactId>
731         <version>2.5.29</version>
732         <scope>test</scope>
733       </dependency>
734       <dependency>
735         <groupId>org.scala-lang.modules</groupId>
736         <artifactId>scala-java8-compat_2.12</artifactId>
737         <version>0.8.0</version>
738       </dependency>
739       <dependency>
740         <groupId>org.scala-lang.modules</groupId>
741         <artifactId>scala-parser-combinators_2.12</artifactId>
742         <version>1.1.2</version>
743       </dependency>
744       <dependency>
745         <groupId>org.uncommons.maths</groupId>
746         <artifactId>uncommons-maths</artifactId>
747         <version>1.2.2a</version>
748       </dependency>
749
750       <!-- Aeron, required by Akka -->
751       <dependency>
752         <groupId>org.agrona</groupId>
753         <artifactId>agrona</artifactId>
754         <version>0.9.33</version>
755       </dependency>
756       <dependency>
757         <groupId>io.aeron</groupId>
758         <artifactId>aeron-client</artifactId>
759         <version>1.15.3</version>
760       </dependency>
761       <dependency>
762         <groupId>io.aeron</groupId>
763         <artifactId>aeron-driver</artifactId>
764         <version>1.15.3</version>
765       </dependency>
766
767       <!-- Scala -->
768       <dependency>
769         <groupId>org.scala-lang</groupId>
770         <artifactId>scala-library</artifactId>
771         <version>2.12.10</version>
772       </dependency>
773       <dependency>
774         <groupId>org.scala-lang</groupId>
775         <artifactId>scala-reflect</artifactId>
776         <version>2.12.10</version>
777       </dependency>
778
779       <!-- LMAX Disruptor -->
780       <dependency>
781         <groupId>com.lmax</groupId>
782         <artifactId>disruptor</artifactId>
783         <version>3.4.2</version>
784       </dependency>
785
786       <!-- Add Pax Exam -->
787       <dependency>
788         <groupId>org.ops4j.pax.exam</groupId>
789         <artifactId>pax-exam</artifactId>
790         <version>4.13.1</version>
791         <scope>test</scope>
792       </dependency>
793       <dependency>
794         <groupId>org.ops4j.pax.exam</groupId>
795         <artifactId>pax-exam-container-forked</artifactId>
796         <version>4.13.1</version>
797         <scope>test</scope>
798       </dependency>
799       <dependency>
800         <groupId>org.ops4j.pax.exam</groupId>
801         <artifactId>pax-exam-container-karaf</artifactId>
802         <version>4.13.1</version>
803         <scope>test</scope>
804       </dependency>
805       <dependency>
806         <groupId>org.ops4j.pax.exam</groupId>
807         <artifactId>pax-exam-container-native</artifactId>
808         <version>4.13.1</version>
809         <scope>test</scope>
810       </dependency>
811       <dependency>
812         <groupId>org.ops4j.pax.exam</groupId>
813         <artifactId>pax-exam-extender-service</artifactId>
814         <version>4.13.1</version>
815         <scope>test</scope>
816       </dependency>
817       <dependency>
818         <groupId>org.ops4j.pax.exam</groupId>
819         <artifactId>pax-exam-inject</artifactId>
820         <version>4.13.1</version>
821         <scope>test</scope>
822       </dependency>
823       <dependency>
824         <groupId>org.ops4j.pax.exam</groupId>
825         <artifactId>pax-exam-invoker-junit</artifactId>
826         <version>4.13.1</version>
827         <scope>test</scope>
828       </dependency>
829       <dependency>
830         <groupId>org.ops4j.pax.exam</groupId>
831         <artifactId>pax-exam-features</artifactId>
832         <version>4.13.1</version>
833         <type>xml</type>
834         <scope>test</scope>
835       </dependency>
836       <dependency>
837         <groupId>org.ops4j.pax.exam</groupId>
838         <artifactId>pax-exam-junit4</artifactId>
839         <version>4.13.1</version>
840         <scope>test</scope>
841       </dependency>
842       <dependency>
843         <groupId>org.ops4j.pax.exam</groupId>
844         <artifactId>pax-exam-link-mvn</artifactId>
845         <version>4.13.1</version>
846         <scope>test</scope>
847       </dependency>
848       <dependency>
849         <groupId>org.ops4j.pax.exam</groupId>
850         <artifactId>pax-exam-link-assembly</artifactId>
851         <version>4.13.1</version>
852         <scope>test</scope>
853       </dependency>
854
855       <dependency>
856         <groupId>org.ops4j.pax.url</groupId>
857         <artifactId>pax-url-link</artifactId>
858         <version>2.5.4</version>
859         <scope>test</scope>
860       </dependency>
861       <dependency>
862         <groupId>org.ops4j.pax.url</groupId>
863         <artifactId>pax-url-aether</artifactId>
864         <version>2.5.4</version>
865         <scope>test</scope>
866       </dependency>
867       <dependency>
868         <groupId>org.ops4j.pax.url</groupId>
869         <artifactId>pax-url-wrap</artifactId>
870         <version>2.5.4</version>
871       </dependency>
872
873       <dependency>
874         <groupId>org.ops4j.pax.web</groupId>
875         <artifactId>pax-web-api</artifactId>
876         <!-- Note: keep this version synchronized with karaf -->
877         <version>7.2.10</version>
878       </dependency>
879
880       <dependency>
881         <groupId>org.springframework.osgi</groupId>
882         <artifactId>spring-osgi-mock</artifactId>
883         <version>1.2.1</version>
884         <scope>test</scope>
885       </dependency>
886
887       <dependency>
888         <groupId>org.xmlunit</groupId>
889         <artifactId>xmlunit-core</artifactId>
890         <version>2.6.3</version>
891         <scope>test</scope>
892       </dependency>
893       <dependency>
894         <groupId>org.xmlunit</groupId>
895         <artifactId>xmlunit-assertj</artifactId>
896         <version>2.6.3</version>
897         <scope>test</scope>
898       </dependency>
899       <dependency>
900         <groupId>org.xmlunit</groupId>
901         <artifactId>xmlunit-matchers</artifactId>
902         <version>2.6.3</version>
903         <scope>test</scope>
904       </dependency>
905       <!-- FIXME: remove this once we have migrated over -->
906       <dependency>
907         <groupId>org.xmlunit</groupId>
908         <artifactId>xmlunit-legacy</artifactId>
909         <version>2.6.3</version>
910         <scope>test</scope>
911       </dependency>
912
913       <!-- Annotations for modernizer-maven-plugin -->
914       <dependency>
915         <groupId>org.gaul</groupId>
916         <artifactId>modernizer-maven-annotations</artifactId>
917         <!-- This should match the plugin version below -->
918         <version>2.0.0</version>
919         <scope>provided</scope>
920       </dependency>
921
922       <dependency>
923         <groupId>org.eclipse.jetty</groupId>
924         <artifactId>jetty-bom</artifactId>
925         <version>9.4.18.v20190429</version>
926         <scope>import</scope>
927         <type>pom</type>
928       </dependency>
929
930       <dependency>
931         <groupId>com.h2database</groupId>
932         <artifactId>h2</artifactId>
933         <version>1.4.200</version>
934       </dependency>
935
936       <!-- Xtend http://xtend-lang.org
937            NOTE: When you increase the version here,
938            then remember to also increase it for the
939            xtend-maven-plugin below! (We don't want to
940            use a Maven property, in order not to "leak" that.)
941        -->
942       <dependency>
943           <groupId>org.eclipse.xtend</groupId>
944           <artifactId>org.eclipse.xtend.lib</artifactId>
945           <version>2.19.0</version>
946       </dependency>
947       <dependency>
948           <groupId>org.eclipse.xtend</groupId>
949           <artifactId>org.eclipse.xtend.lib.macro</artifactId>
950           <version>2.19.0</version>
951       </dependency>
952       <dependency>
953           <groupId>org.eclipse.xtext</groupId>
954           <artifactId>org.eclipse.xtext.xbase.lib</artifactId>
955           <version>2.19.0</version>
956       </dependency>
957
958       <!-- Annotations -->
959       <dependency>
960         <groupId>javax.inject</groupId>
961         <artifactId>javax.inject</artifactId>
962         <version>1</version>
963         <optional>true</optional>
964       </dependency>
965
966       <!-- jung, a graph library -->
967       <dependency>
968         <groupId>net.sf.jung</groupId>
969         <artifactId>jung-api</artifactId>
970         <version>2.1.1</version>
971       </dependency>
972       <dependency>
973         <groupId>net.sf.jung</groupId>
974         <artifactId>jung-algorithms</artifactId>
975         <version>2.1.1</version>
976       </dependency>
977       <dependency>
978         <groupId>net.sf.jung</groupId>
979         <artifactId>jung-graph-impl</artifactId>
980         <version>2.1.1</version>
981       </dependency>
982
983       <!-- Karaf console support -->
984       <dependency>
985         <groupId>org.apache.karaf.shell</groupId>
986         <artifactId>org.apache.karaf.shell.core</artifactId>
987         <version>${karaf.version}</version>
988         <scope>provided</scope>
989       </dependency>
990       <dependency>
991         <groupId>org.apache.karaf.shell</groupId>
992         <artifactId>org.apache.karaf.shell.console</artifactId>
993         <version>${karaf.version}</version>
994         <scope>provided</scope>
995       </dependency>
996
997       <!-- ThreeTen-Extra, date/time complements -->
998       <dependency>
999         <groupId>org.threeten</groupId>
1000         <artifactId>threeten-extra</artifactId>
1001         <version>1.5.0</version>
1002       </dependency>
1003
1004       <!-- When updating this version, consider antl4-maven-plugin below -->
1005       <dependency>
1006         <groupId>org.antlr</groupId>
1007         <artifactId>antlr4-runtime</artifactId>
1008         <version>4.7.2</version>
1009       </dependency>
1010       <!-- Aries' Blueprint version should be kept in sync to the version actually
1011            used by our ${karaf[4].version} ... please bump this when increasing that.
1012            TODO Find a smarter way to inherit this from a (TBD..) Karaf artifacts BOM! -->
1013       <dependency>
1014         <groupId>org.apache.aries.blueprint</groupId>
1015         <artifactId>org.apache.aries.blueprint.core</artifactId>
1016         <version>1.10.2</version>
1017       </dependency>
1018       <dependency>
1019         <groupId>org.apache.aries.blueprint</groupId>
1020         <artifactId>blueprint-maven-plugin-annotation</artifactId>
1021         <version>1.3.0</version>
1022         <optional>true</optional>
1023       </dependency>
1024
1025       <!-- Apache SSHD with netty -->
1026       <dependency>
1027         <groupId>org.apache.sshd</groupId>
1028         <artifactId>sshd-netty</artifactId>
1029         <version>2.3.0</version>
1030         <exclusions>
1031           <exclusion>
1032             <!-- We provide sshd-osgi instead -->
1033             <groupId>org.apache.sshd</groupId>
1034             <artifactId>sshd-core</artifactId>
1035           </exclusion>
1036         </exclusions>
1037       </dependency>
1038       <dependency>
1039         <groupId>org.apache.sshd</groupId>
1040         <artifactId>sshd-osgi</artifactId>
1041         <version>2.3.0</version>
1042       </dependency>
1043       <dependency>
1044         <groupId>net.i2p.crypto</groupId>
1045         <artifactId>eddsa</artifactId>
1046         <version>0.3.0</version>
1047       </dependency>
1048
1049       <!-- TrieMap library -->
1050       <dependency>
1051         <groupId>tech.pantheon.triemap</groupId>
1052         <artifactId>bom</artifactId>
1053         <version>1.1.0</version>
1054         <scope>import</scope>
1055         <type>pom</type>
1056       </dependency>
1057
1058       <!-- Dropwizard metrics -->
1059       <dependency>
1060         <groupId>io.dropwizard.metrics</groupId>
1061         <artifactId>metrics-bom</artifactId>
1062         <version>4.0.5</version>
1063         <scope>import</scope>
1064         <type>pom</type>
1065       </dependency>
1066
1067       <!-- JAXB for Java 11+, match this with Karaf -->
1068       <dependency>
1069         <groupId>javax.xml.bind</groupId>
1070         <artifactId>jaxb-api</artifactId>
1071         <version>2.3.0</version>
1072       </dependency>
1073       <dependency>
1074         <groupId>org.glassfish.jaxb</groupId>
1075         <artifactId>jaxb-runtime</artifactId>
1076         <version>2.3.1</version>
1077       </dependency>
1078     </dependencies>
1079   </dependencyManagement>
1080
1081   <dependencies>
1082     <!--
1083          We expect slf4j-api to be provided by the platform.
1084          Karaf provides it, other containers need to provide it themselves.
1085     -->
1086     <dependency>
1087       <groupId>org.slf4j</groupId>
1088       <artifactId>slf4j-api</artifactId>
1089       <scope>provided</scope>
1090     </dependency>
1091
1092     <!--
1093           Enable useful code quality annotations everywhere. Since these annotations
1094           are not required at runtime.
1095     -->
1096     <dependency>
1097       <groupId>org.eclipse.jdt</groupId>
1098       <artifactId>org.eclipse.jdt.annotation</artifactId>
1099       <scope>provided</scope>
1100     </dependency>
1101     <dependency>
1102       <groupId>com.github.spotbugs</groupId>
1103       <artifactId>spotbugs-annotations</artifactId>
1104       <scope>provided</scope>
1105       <optional>true</optional>
1106     </dependency>
1107     <dependency>
1108       <groupId>org.gaul</groupId>
1109       <artifactId>modernizer-maven-annotations</artifactId>
1110       <scope>provided</scope>
1111     </dependency>
1112
1113     <!--
1114           Testing output should be routed through slf4j-simple.
1115     -->
1116     <dependency>
1117       <groupId>org.slf4j</groupId>
1118       <artifactId>slf4j-simple</artifactId>
1119       <scope>test</scope>
1120     </dependency>
1121
1122     <!--
1123           Unit tests can use JUnit + Mockito + Hamcrest by default.
1124     -->
1125     <dependency>
1126       <groupId>org.hamcrest</groupId>
1127       <artifactId>hamcrest</artifactId>
1128       <scope>test</scope>
1129     </dependency>
1130     <dependency>
1131       <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
1132       <groupId>org.hamcrest</groupId>
1133       <artifactId>hamcrest-library</artifactId>
1134       <scope>test</scope>
1135     </dependency>
1136     <dependency>
1137       <groupId>junit</groupId>
1138       <artifactId>junit</artifactId>
1139       <scope>test</scope>
1140     </dependency>
1141     <dependency>
1142       <groupId>org.mockito</groupId>
1143       <artifactId>mockito-core</artifactId>
1144       <scope>test</scope>
1145     </dependency>
1146   </dependencies>
1147
1148   <build>
1149     <pluginManagement>
1150       <plugins>
1151         <!-- Official maven plugins, alpha-sorted by artifactId.
1152              We do not need to specify the groupId. -->
1153         <plugin>
1154           <artifactId>maven-checkstyle-plugin</artifactId>
1155           <version>3.1.0</version>
1156           <dependencies>
1157             <dependency>
1158               <groupId>com.puppycrawl.tools</groupId>
1159               <artifactId>checkstyle</artifactId>
1160               <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
1161               <version>8.26</version>
1162             </dependency>
1163             <dependency>
1164               <groupId>org.opendaylight.odlparent</groupId>
1165               <artifactId>checkstyle</artifactId>
1166               <version>7.0.0-SNAPSHOT</version>
1167             </dependency>
1168             <dependency>
1169               <groupId>com.github.sevntu-checkstyle</groupId>
1170               <artifactId>sevntu-checks</artifactId>
1171               <version>1.36.0</version>
1172             </dependency>
1173           </dependencies>
1174           <configuration>
1175             <configLocation>odl_checks.xml</configLocation>
1176             <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
1177             <!-- <sourceDirectories> are needed so that checkstyle ignores the
1178                  generated sources directory -->
1179             <sourceDirectories>
1180               <directory>${project.build.sourceDirectory}</directory>
1181             </sourceDirectories>
1182             <includeResources>true</includeResources>
1183             <includeTestSourceDirectory>true</includeTestSourceDirectory>
1184             <includeTestResources>true</includeTestResources>
1185             <includes>**\/*.java, **\/*.xtend</includes>
1186             <excludes>
1187               org/opendaylight/yang/gen/**,
1188               **/protobuff/messages/**,
1189               **/thrift/gen/*.java,
1190               **/module-info.java
1191             </excludes>
1192             <failsOnError>false</failsOnError>
1193             <consoleOutput>true</consoleOutput>
1194           </configuration>
1195           <executions>
1196             <execution>
1197               <id>check-license</id>
1198               <goals>
1199                 <goal>check</goal>
1200               </goals>
1201               <phase>process-sources</phase>
1202               <configuration>
1203                 <configLocation>check-license.xml</configLocation>
1204                 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
1205                 <includeResources>false</includeResources>
1206                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
1207                 <includeTestResources>false</includeTestResources>
1208                 <sourceDirectories>
1209                   <directory>${project.build.sourceDirectory}</directory>
1210                 </sourceDirectories>
1211                 <excludes>
1212                   org/opendaylight/yang/gen/**,
1213                   **/protobuff/messages/**,
1214                   **/thrift/gen/*.java
1215                 </excludes>
1216                 <failsOnError>false</failsOnError>
1217                 <consoleOutput>true</consoleOutput>
1218               </configuration>
1219             </execution>
1220             <execution>
1221               <goals>
1222                 <goal>check</goal>
1223               </goals>
1224               <phase>process-sources</phase>
1225               <configuration>
1226                 <failOnViolation>${odlparent.checkstyle.enforce}</failOnViolation>
1227                 <skip>${odlparent.checkstyle.skip}</skip>
1228                 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
1229               </configuration>
1230             </execution>
1231           </executions>
1232         </plugin>
1233         <plugin>
1234           <groupId>org.apache.maven.plugins</groupId>
1235           <artifactId>maven-pmd-plugin</artifactId>
1236           <version>3.12.0</version>
1237           <executions>
1238             <execution>
1239               <id>cpd</id>
1240               <phase>process-sources</phase>
1241               <goals>
1242                 <goal>cpd-check</goal>
1243               </goals>
1244               <configuration>
1245                 <failOnViolation>${pmd.cpd.fail}</failOnViolation>
1246                 <!-- 100 "tokens" here correspond to approx. 5-10 lines of code -->
1247                 <minimumTokens>101</minimumTokens>
1248                 <printFailingErrors>true</printFailingErrors>
1249                 <excludeRoots>
1250                   <!-- FIXME: this should be a wildcard, but PMD is brain-damaged and does
1251                               not understand path prefixes nor wildcards. Details are available
1252                               at http://stackoverflow.com/questions/15647771/pmd-exclude-not-working
1253                               Hence people introducing new generated sources have to include
1254                               PMD config too.
1255                    -->
1256                   <excludeRoot>${project.build.directory}/generated-sources</excludeRoot>
1257                   <excludeRoot>${project.build.directory}/generated-test-sources</excludeRoot>
1258                 </excludeRoots>
1259                 <linkXRef>false</linkXRef>
1260               </configuration>
1261             </execution>
1262           </executions>
1263         </plugin>
1264         <plugin>
1265           <artifactId>maven-compiler-plugin</artifactId>
1266           <version>3.8.1</version>
1267           <configuration>
1268             <showWarnings>true</showWarnings>
1269             <compilerArgs>
1270               <arg>-parameters</arg>
1271               <arg>-Xlint:deprecation</arg>
1272               <arg>-Xlint:unchecked</arg>
1273             </compilerArgs>
1274             <annotationProcessorPaths>
1275               <dependency>
1276                 <groupId>org.immutables</groupId>
1277                 <artifactId>value</artifactId>
1278                 <!-- Keep this version in sync with dependency declaration above -->
1279                 <version>2.7.5</version>
1280               </dependency>
1281               <dependency>
1282                 <groupId>org.kohsuke.metainf-services</groupId>
1283                 <artifactId>metainf-services</artifactId>
1284                 <!-- Keep this version in sync with dependency declaration above -->
1285                 <version>1.8</version>
1286               </dependency>
1287             </annotationProcessorPaths>
1288           </configuration>
1289         </plugin>
1290         <plugin>
1291           <artifactId>maven-enforcer-plugin</artifactId>
1292           <version>${enforcer.version}</version>
1293         </plugin>
1294         <plugin>
1295           <artifactId>maven-failsafe-plugin</artifactId>
1296           <version>2.22.2</version>
1297         </plugin>
1298         <plugin>
1299           <artifactId>maven-invoker-plugin</artifactId>
1300           <version>3.2.0</version>
1301         </plugin>
1302         <plugin>
1303           <artifactId>maven-dependency-plugin</artifactId>
1304           <executions>
1305             <execution>
1306               <id>unpack-license</id>
1307               <phase>generate-resources</phase>
1308               <goals>
1309                 <goal>copy</goal>
1310               </goals>
1311               <configuration>
1312                 <artifactItems>
1313                   <artifactItem>
1314                     <groupId>org.opendaylight.odlparent</groupId>
1315                     <artifactId>odl-license</artifactId>
1316                     <version>7.0.0-SNAPSHOT</version>
1317                     <type>license</type>
1318                     <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1319                     <destFileName>LICENSE</destFileName>
1320                     <overWrite>false</overWrite>
1321                   </artifactItem>
1322                 </artifactItems>
1323                 <silent>true</silent>
1324               </configuration>
1325             </execution>
1326           </executions>
1327         </plugin>
1328
1329         <plugin>
1330           <artifactId>maven-plugin-plugin</artifactId>
1331           <version>3.6.0</version>
1332         </plugin>
1333
1334         <plugin>
1335           <artifactId>maven-remote-resources-plugin</artifactId>
1336           <version>1.6.0</version>
1337         </plugin>
1338         <plugin>
1339           <artifactId>maven-resources-plugin</artifactId>
1340           <version>3.1.0</version>
1341         </plugin>
1342         <plugin>
1343           <artifactId>maven-shade-plugin</artifactId>
1344           <version>3.2.1</version>
1345         </plugin>
1346         <plugin>
1347           <artifactId>maven-source-plugin</artifactId>
1348           <version>3.2.1</version>
1349           <executions>
1350             <execution>
1351               <id>attach-sources</id>
1352               <phase>verify</phase>
1353               <goals>
1354                 <goal>jar-no-fork</goal>
1355               </goals>
1356             </execution>
1357           </executions>
1358         </plugin>
1359         <plugin>
1360           <artifactId>maven-surefire-plugin</artifactId>
1361           <version>2.22.2</version>
1362           <configuration>
1363             <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1364             <trimStackTrace>false</trimStackTrace>
1365           </configuration>
1366         </plugin>
1367
1368         <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1369         <plugin>
1370           <!-- Support Blueprint XML construction using annotations -->
1371           <groupId>org.apache.aries.blueprint</groupId>
1372           <artifactId>blueprint-maven-plugin</artifactId>
1373           <version>1.10.0</version>
1374           <!-- TODO remove dependencies when we bump from 1.10.0 to 1.11.0 (or 1.10.1);
1375              see https://jira.opendaylight.org/browse/ODLPARENT-167 & https://jira.apache.org/jira/browse/ARIES-1826 -->
1376           <dependencies>
1377             <dependency>
1378               <groupId>org.apache.xbean</groupId>
1379               <artifactId>xbean-finder-shaded</artifactId>
1380               <version>4.14</version>
1381             </dependency>
1382           </dependencies>
1383           <configuration>
1384             <scanPaths>
1385               <scanPath>${project.groupId}</scanPath>
1386             </scanPaths>
1387           </configuration>
1388           <executions>
1389             <execution>
1390               <goals>
1391                 <goal>blueprint-generate</goal>
1392               </goals>
1393             </execution>
1394           </executions>
1395         </plugin>
1396
1397         <plugin>
1398           <groupId>org.apache.felix</groupId>
1399           <artifactId>maven-bundle-plugin</artifactId>
1400           <version>4.2.1</version>
1401           <extensions>true</extensions>
1402           <configuration>
1403             <instructions>
1404               <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1405                    so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1406                    and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present.  -->
1407               <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>
1408
1409               <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1410                    to generate Import-Service and Export-Service headers. -->
1411               <_removeheaders>Import-Service,Export-Service</_removeheaders>
1412             </instructions>
1413           </configuration>
1414         </plugin>
1415
1416         <plugin>
1417           <groupId>org.apache.karaf.tooling</groupId>
1418           <artifactId>karaf-maven-plugin</artifactId>
1419           <version>${karaf.version}</version>
1420         </plugin>
1421
1422         <plugin>
1423           <groupId>org.apache.servicemix.tooling</groupId>
1424           <artifactId>depends-maven-plugin</artifactId>
1425           <version>1.4.0</version>
1426           <executions>
1427             <execution>
1428               <id>generate-depends-file</id>
1429               <goals>
1430                 <goal>generate-depends-file</goal>
1431               </goals>
1432             </execution>
1433           </executions>
1434         </plugin>
1435
1436         <plugin>
1437           <groupId>com.webcohesion.enunciate</groupId>
1438           <artifactId>enunciate-maven-plugin</artifactId>
1439           <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1440           <version>2.11.1</version>
1441         </plugin>
1442
1443         <plugin>
1444           <groupId>org.gaul</groupId>
1445           <artifactId>modernizer-maven-plugin</artifactId>
1446           <version>2.0.0</version>
1447           <configuration>
1448             <javaVersion>${odlparent.modernizer.target}</javaVersion>
1449             <failOnViolations>${odlparent.modernizer.enforce}</failOnViolations>
1450             <skip>${odlparent.modernizer.skip}</skip>
1451           </configuration>
1452
1453           <executions>
1454             <execution>
1455               <id>modernizer</id>
1456               <phase>verify</phase>
1457               <goals>
1458                 <goal>modernizer</goal>
1459               </goals>
1460             </execution>
1461           </executions>
1462         </plugin>
1463
1464         <plugin>
1465           <groupId>com.github.spotbugs</groupId>
1466           <artifactId>spotbugs-maven-plugin</artifactId>
1467           <version>3.1.12.2</version>
1468           <dependencies>
1469             <dependency>
1470               <groupId>com.github.spotbugs</groupId>
1471               <artifactId>spotbugs</artifactId>
1472               <version>3.1.12</version>
1473             </dependency>
1474             <dependency>
1475               <groupId>org.opendaylight.odlparent</groupId>
1476               <artifactId>spotbugs</artifactId>
1477               <version>7.0.0-SNAPSHOT</version>
1478             </dependency>
1479             <dependency>
1480               <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 -->
1481               <groupId>org.slf4j</groupId>
1482               <artifactId>slf4j-simple</artifactId>
1483               <version>1.8.0-beta2</version>
1484             </dependency>
1485           </dependencies>
1486           <configuration>
1487             <plugins>
1488               <plugin>
1489                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1490                 <artifactId>bug-pattern</artifactId>
1491                 <!-- NOTE: This version MUST be kept in sync with the same version in the old findbugs-maven-plugin above, if possible -->
1492                 <version>1.4.2</version>
1493               </plugin>
1494             </plugins>
1495             <!--
1496               Enables analysis which takes more memory but finds more bugs.
1497               If you run out of memory, changes the value of the effort element
1498               to 'Low'.
1499             -->
1500             <effort>Max</effort>
1501             <!-- Reports all bugs (other values are medium and max) -->
1502             <threshold>Low</threshold>
1503             <!-- Build doesn't fail if problems are found -->
1504             <failOnError>${odlparent.spotbugs.enforce}</failOnError>
1505             <skip>${odlparent.spotbugs.skip}</skip>
1506             <!-- References the excluded rules -->
1507             <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1508             <!-- Produces XML report -->
1509             <xmlOutput>true</xmlOutput>
1510             <!-- Configures the directory in which the XML report is created -->
1511             <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1512           </configuration>
1513           <executions>
1514             <!--
1515               Ensures that SpotBugs inspects source code when project is compiled.
1516             -->
1517             <execution>
1518               <id>analyze-compile</id>
1519               <phase>compile</phase>
1520               <goals>
1521                 <goal>check</goal>
1522               </goals>
1523             </execution>
1524           </executions>
1525         </plugin>
1526         <plugin>
1527           <groupId>org.codehaus.mojo</groupId>
1528           <artifactId>properties-maven-plugin</artifactId>
1529           <version>1.0.0</version>
1530         </plugin>
1531         <plugin>
1532           <groupId>org.eclipse.xtend</groupId>
1533           <artifactId>xtend-maven-plugin</artifactId>
1534           <!-- NOTE: This version MUST be kept in sync with the Xtend version in <dependencyManagement> -->
1535           <version>2.19.0</version>
1536           <executions>
1537             <execution>
1538               <goals>
1539                 <goal>compile</goal>
1540                 <goal>testCompile</goal>
1541               </goals>
1542               <configuration>
1543                 <outputDirectory>${project.build.directory}/generated-sources/xtend</outputDirectory>
1544                 <testOutputDirectory>${project.build.directory}/generated-test-sources/xtend</testOutputDirectory>
1545               </configuration>
1546             </execution>
1547           </executions>
1548         </plugin>
1549         <plugin>
1550           <groupId>org.eclipse.m2e</groupId>
1551           <artifactId>lifecycle-mapping</artifactId>
1552           <version>1.0.0</version>
1553           <configuration>
1554             <lifecycleMappingMetadata>
1555               <pluginExecutions>
1556                 <pluginExecution>
1557                   <pluginExecutionFilter>
1558                     <groupId>org.apache.felix</groupId>
1559                     <artifactId>maven-bundle-plugin</artifactId>
1560                     <versionRange>[1.0,)</versionRange>
1561                     <goals>
1562                       <goal>manifest</goal>
1563                     </goals>
1564                   </pluginExecutionFilter>
1565                   <action>
1566                     <execute/>
1567                   </action>
1568                 </pluginExecution>
1569                 <pluginExecution>
1570                   <pluginExecutionFilter>
1571                     <groupId>org.apache.maven.plugins</groupId>
1572                     <artifactId>maven-enforcer-plugin</artifactId>
1573                     <versionRange>[1.0.0,)</versionRange>
1574                     <goals>
1575                       <goal>enforce</goal>
1576                     </goals>
1577                   </pluginExecutionFilter>
1578                   <action>
1579                     <ignore/>
1580                   </action>
1581                 </pluginExecution>
1582                 <pluginExecution>
1583                   <pluginExecutionFilter>
1584                     <groupId>org.apache.maven.plugins</groupId>
1585                     <artifactId>maven-dependency-plugin</artifactId>
1586                     <versionRange>[2.10,)</versionRange>
1587                     <goals>
1588                       <goal>copy</goal>
1589                     </goals>
1590                   </pluginExecutionFilter>
1591                   <action>
1592                     <ignore/>
1593                   </action>
1594                 </pluginExecution>
1595                 <pluginExecution>
1596                   <pluginExecutionFilter>
1597                     <groupId>org.apache.maven.plugins</groupId>
1598                     <artifactId>maven-pmd-plugin</artifactId>
1599                     <versionRange>[3.6,)</versionRange>
1600                     <goals>
1601                       <goal>cpd-check</goal>
1602                     </goals>
1603                   </pluginExecutionFilter>
1604                   <action>
1605                     <ignore/>
1606                   </action>
1607                 </pluginExecution>
1608                 <!-- The plugin will eventually be removed, remove this too at that point -->
1609                 <pluginExecution>
1610                   <pluginExecutionFilter>
1611                     <groupId>org.apache.maven.plugins</groupId>
1612                     <artifactId>maven-antrun-plugin</artifactId>
1613                     <versionRange>[1.8,)</versionRange>
1614                     <goals>
1615                       <goal>run</goal>
1616                     </goals>
1617                   </pluginExecutionFilter>
1618                   <action>
1619                     <ignore/>
1620                   </action>
1621                 </pluginExecution>
1622                 <pluginExecution>
1623                   <pluginExecutionFilter>
1624                     <groupId>org.apache.servicemix.tooling</groupId>
1625                     <artifactId>depends-maven-plugin</artifactId>
1626                     <versionRange>[1.2,)</versionRange>
1627                     <goals>
1628                       <goal>generate-depends-file</goal>
1629                     </goals>
1630                   </pluginExecutionFilter>
1631                   <action>
1632                     <execute/>
1633                   </action>
1634                 </pluginExecution>
1635                 <pluginExecution>
1636                   <pluginExecutionFilter>
1637                     <groupId>org.jacoco</groupId>
1638                     <artifactId>jacoco-maven-plugin</artifactId>
1639                     <versionRange>[0.7.0,)</versionRange>
1640                     <goals>
1641                       <goal>prepare-agent</goal>
1642                     </goals>
1643                   </pluginExecutionFilter>
1644                   <action>
1645                     <ignore/>
1646                   </action>
1647                 </pluginExecution>
1648
1649                 <pluginExecution>
1650                   <pluginExecutionFilter>
1651                     <groupId>org.ops4j.pax.exam</groupId>
1652                     <artifactId>maven-paxexam-plugin</artifactId>
1653                     <versionRange>[1.2.4,)</versionRange>
1654                     <goals>
1655                       <goal>generate-depends-file</goal>
1656                     </goals>
1657                   </pluginExecutionFilter>
1658                   <action>
1659                     <ignore/>
1660                   </action>
1661                 </pluginExecution>
1662
1663                 <pluginExecution>
1664                   <pluginExecutionFilter>
1665                     <groupId>org.basepom.maven</groupId>
1666                     <artifactId>
1667                       duplicate-finder-maven-plugin
1668                     </artifactId>
1669                     <versionRange>[1.2.1,)</versionRange>
1670                     <goals>
1671                       <goal>check</goal>
1672                     </goals>
1673                   </pluginExecutionFilter>
1674                   <action>
1675                     <ignore></ignore>
1676                   </action>
1677                 </pluginExecution>
1678               </pluginExecutions>
1679             </lifecycleMappingMetadata>
1680           </configuration>
1681         </plugin>
1682
1683         <plugin>
1684           <groupId>org.jacoco</groupId>
1685           <artifactId>jacoco-maven-plugin</artifactId>
1686           <configuration>
1687             <!-- Note: This exclusion list should match <sonar.exclusions>
1688                        property above -->
1689             <excludes>
1690               <exclude>**/gen/**</exclude>
1691               <exclude>**/generated-sources/**</exclude>
1692               <exclude>**/generated-test-sources/**</exclude>
1693               <exclude>**/yang-gen/**</exclude>
1694               <exclude>**/yang-gen-config/**</exclude>
1695               <exclude>**/yang-gen-sal/**</exclude>
1696               <exclude>**/yang-gen-code/**</exclude>
1697               <exclude>**/pax/**</exclude>
1698             </excludes>
1699           </configuration>
1700         </plugin>
1701
1702         <plugin>
1703           <groupId>org.ops4j.pax.exam</groupId>
1704           <artifactId>maven-paxexam-plugin</artifactId>
1705           <version>1.2.4</version>
1706         </plugin>
1707
1708         <!-- When updating this version, consider antl4-runtime above -->
1709         <plugin>
1710           <groupId>org.antlr</groupId>
1711           <artifactId>antlr4-maven-plugin</artifactId>
1712           <version>4.7.2</version>
1713         </plugin>
1714       </plugins>
1715     </pluginManagement>
1716
1717     <plugins>
1718       <plugin>
1719         <artifactId>maven-enforcer-plugin</artifactId>
1720         <executions>
1721           <execution>
1722             <id>enforce-banned-dependencies</id>
1723             <goals>
1724               <goal>enforce</goal>
1725             </goals>
1726             <configuration>
1727               <rules>
1728                 <bannedDependencies>
1729                   <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>
1730                   <excludes>
1731                     <exclude>org.mockito:mockito-all</exclude>
1732                     <exclude>com.google.code.findbugs:annotations</exclude>
1733                   </excludes>
1734                 </bannedDependencies>
1735               </rules>
1736               <fail>true</fail>
1737             </configuration>
1738           </execution>
1739         </executions>
1740       </plugin>
1741       <plugin>
1742         <groupId>org.basepom.maven</groupId>
1743         <artifactId>duplicate-finder-maven-plugin</artifactId>
1744         <version>1.3.0</version>
1745         <executions>
1746           <execution>
1747             <id>find-duplicate-classpath-entries</id>
1748             <phase>verify</phase>
1749             <goals>
1750               <goal>check</goal>
1751             </goals>
1752           </execution>
1753         </executions>
1754         <configuration>
1755             <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1756             <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1757             <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1758             <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1759             <printEqualFiles>false</printEqualFiles>
1760             <quiet>true</quiet>
1761             <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1762                  as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1763                  we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1764                  also ignore: -->
1765             <ignoredResourcePatterns>
1766               <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1767               <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1768               <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1769               <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1770               <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1771               <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1772             </ignoredResourcePatterns>
1773             <ignoredClassPatterns>
1774               <ignoredClassPattern>META-INF.versions.*$</ignoredClassPattern>
1775             </ignoredClassPatterns>
1776             <ignoredDependencies>
1777               <ignoredDependency>
1778                 <groupId>org.slf4j</groupId>
1779                 <artifactId>slf4j-simple</artifactId>
1780               </ignoredDependency>
1781               <ignoredDependency>
1782                 <groupId>org.opendaylight.odlparent</groupId>
1783                 <artifactId>opendaylight-karaf-empty</artifactId>
1784               </ignoredDependency>
1785             </ignoredDependencies>
1786         </configuration>
1787       </plugin>
1788       <plugin>
1789         <artifactId>maven-dependency-plugin</artifactId>
1790       </plugin>
1791       <plugin>
1792         <artifactId>maven-checkstyle-plugin</artifactId>
1793       </plugin>
1794       <plugin>
1795           <artifactId>maven-pmd-plugin</artifactId>
1796       </plugin>
1797       <plugin>
1798         <artifactId>maven-source-plugin</artifactId>
1799       </plugin>
1800       <plugin>
1801         <artifactId>maven-javadoc-plugin</artifactId>
1802       </plugin>
1803       <plugin>
1804         <groupId>org.gaul</groupId>
1805         <artifactId>modernizer-maven-plugin</artifactId>
1806       </plugin>
1807       <plugin>
1808         <groupId>com.github.spotbugs</groupId>
1809         <artifactId>spotbugs-maven-plugin</artifactId>
1810       </plugin>
1811
1812       <!-- Jacoco / Sonar -->
1813       <plugin>
1814         <groupId>org.jacoco</groupId>
1815         <artifactId>jacoco-maven-plugin</artifactId>
1816         <executions>
1817           <execution>
1818             <id>pre-unit-test</id>
1819             <goals>
1820               <goal>prepare-agent</goal>
1821             </goals>
1822             <configuration>
1823               <destFile>${jacoco.destFile}</destFile>
1824             </configuration>
1825           </execution>
1826         </executions>
1827       </plugin>
1828
1829       <plugin>
1830         <groupId>com.alexecollins.maven.plugin</groupId>
1831         <artifactId>script-maven-plugin</artifactId>
1832         <version>1.0.0</version>
1833         <executions>
1834            <execution>
1835              <phase>prepare-package</phase>
1836              <goals>
1837                <goal>execute</goal>
1838              </goals>
1839              <configuration>
1840                <script>
1841                  // BeanShell is 2005-ish and thus doesn't support generics, varargs, try-with-resources or lambdas, so:
1842                  // (If we do this kind of inline code in pom.xml more often, we shold have a new simple module in
1843                  //  odl-parent, which has *.java that we compile, and then just depend on it here and call one-line
1844                  //  static class methods only - it will be MUCH easier to write!)
1845                  void copy(File root, String glob, File target) {
1846                      java.nio.file.DirectoryStream dirStream = java.nio.file.Files.newDirectoryStream(root.toPath(), glob);
1847                      Iterator dirStreamIterator = dirStream.iterator();
1848                      while (dirStreamIterator.hasNext()) {
1849                          java.nio.file.Path path = dirStreamIterator.next();
1850                          java.nio.file.Files.copy(path, new File(target, path.toFile().getName()).toPath(),
1851                              new java.nio.file.CopyOption[] {
1852                                  java.nio.file.StandardCopyOption.REPLACE_EXISTING,
1853                                  java.nio.file.StandardCopyOption.COPY_ATTRIBUTES
1854                              }
1855                          );
1856                      }
1857                      dirStream.close();
1858                  }
1859
1860                  File gitRepoRootDir = project.basedir;
1861                  while (!new File(gitRepoRootDir, ".git").exists() &amp;&amp; gitRepoRootDir.getParentFile() != null) {
1862                      gitRepoRootDir = gitRepoRootDir.getParentFile();
1863                  }
1864
1865                  File target = new File(project.build.outputDirectory);
1866                  target.mkdirs();
1867                  copy(gitRepoRootDir, "README*", target);
1868                  copy(gitRepoRootDir, "CONTRIBUTING*", target);
1869                  copy(gitRepoRootDir, "PROJECT_INFO.yaml", target);
1870                </script>
1871              </configuration>
1872            </execution>
1873          </executions>
1874          <dependencies>
1875            <dependency>
1876              <groupId>org.apache-extras.beanshell</groupId>
1877              <artifactId>bsh</artifactId>
1878              <version>2.0b6</version>
1879            </dependency>
1880          </dependencies>
1881       </plugin>
1882     </plugins>
1883   </build>
1884
1885   <reporting>
1886     <plugins>
1887       <plugin>
1888         <artifactId>maven-checkstyle-plugin</artifactId>
1889         <version>3.1.0</version>
1890       </plugin>
1891
1892       <!-- FIXME: activate this
1893       <plugin>
1894         <artifactId>maven-project-info-reports-plugin</artifactId>
1895         <version>${projectinfo}</version>
1896       </plugin-->
1897       <plugin>
1898         <groupId>org.codehaus.mojo</groupId>
1899         <artifactId>jdepend-maven-plugin</artifactId>
1900         <reportSets>
1901           <reportSet>
1902             <reports>
1903               <report>generate-no-fork</report>
1904             </reports>
1905           </reportSet>
1906         </reportSets>
1907       </plugin>
1908     </plugins>
1909   </reporting>
1910 </project>
1911