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