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