Remove JSR305 artifact
[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     <!-- 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>6.0.0-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.20</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.7</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>org.eclipse.jdt</groupId>
482         <artifactId>org.eclipse.jdt.annotation</artifactId>
483         <version>2.2.100</version>
484         <scope>provided</scope>
485       </dependency>
486       <dependency>
487         <groupId>com.google.code.gson</groupId>
488         <artifactId>gson</artifactId>
489         <version>2.8.5</version>
490       </dependency>
491       <dependency>
492         <groupId>commons-fileupload</groupId>
493         <artifactId>commons-fileupload</artifactId>
494         <version>1.4</version>
495       </dependency>
496       <dependency>
497         <groupId>commons-io</groupId>
498         <artifactId>commons-io</artifactId>
499         <version>2.6</version>
500       </dependency>
501       <dependency>
502         <groupId>commons-net</groupId>
503         <artifactId>commons-net</artifactId>
504         <version>3.6</version>
505       </dependency>
506
507       <!-- Netty -->
508       <dependency>
509         <groupId>io.netty</groupId>
510         <artifactId>netty-all</artifactId>
511         <!-- If these are updated, the version in features.xml needs to be changed too -->
512         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
513         <version>4.1.36.Final</version>
514       </dependency>
515       <dependency>
516         <groupId>io.netty</groupId>
517         <artifactId>netty-buffer</artifactId>
518         <version>4.1.36.Final</version>
519       </dependency>
520       <dependency>
521         <groupId>io.netty</groupId>
522         <artifactId>netty-codec</artifactId>
523         <version>4.1.36.Final</version>
524       </dependency>
525       <dependency>
526         <groupId>io.netty</groupId>
527         <artifactId>netty-codec-http</artifactId>
528         <version>4.1.36.Final</version>
529       </dependency>
530       <dependency>
531         <groupId>io.netty</groupId>
532         <artifactId>netty-common</artifactId>
533         <version>4.1.36.Final</version>
534       </dependency>
535       <dependency>
536         <groupId>io.netty</groupId>
537         <artifactId>netty-handler</artifactId>
538         <version>4.1.36.Final</version>
539       </dependency>
540       <dependency>
541         <groupId>io.netty</groupId>
542         <artifactId>netty-transport</artifactId>
543         <version>4.1.36.Final</version>
544       </dependency>
545       <!-- Here we need to define all available native epoll implementations; we can't limit ourselves to the build
546       platform and we can't require the build platform to have an implementation (e.g. OS X) -->
547       <dependency>
548         <groupId>io.netty</groupId>
549         <artifactId>netty-transport-native-epoll</artifactId>
550         <classifier>linux-x86_64</classifier>
551         <version>4.1.36.Final</version>
552       </dependency>
553       <dependency>
554         <groupId>javax.ws.rs</groupId>
555         <artifactId>jsr311-api</artifactId>
556         <version>1.1.1</version>
557       </dependency>
558       <dependency>
559         <groupId>javax.servlet</groupId>
560         <artifactId>javax.servlet-api</artifactId>
561         <version>3.1.0</version>
562       </dependency>
563       <dependency>
564         <groupId>org.apache.felix</groupId>
565         <artifactId>org.apache.felix.dependencymanager</artifactId>
566         <version>4.4.1</version>
567       </dependency>
568       <dependency>
569         <groupId>org.apache.felix</groupId>
570         <artifactId>org.apache.felix.dependencymanager.shell</artifactId>
571         <version>4.0.6</version>
572       </dependency>
573       <dependency>
574         <groupId>org.apache.felix</groupId>
575         <artifactId>org.apache.felix.metatype</artifactId>
576         <version>1.2.2</version>
577       </dependency>
578       <dependency>
579         <groupId>org.bouncycastle</groupId>
580         <artifactId>bcpkix-jdk15on</artifactId>
581         <version>${bouncycastle.version}</version>
582       </dependency>
583       <dependency>
584         <groupId>org.bouncycastle</groupId>
585         <artifactId>bcprov-jdk15on</artifactId>
586         <version>${bouncycastle.version}</version>
587       </dependency>
588       <dependency>
589         <groupId>org.bouncycastle</groupId>
590         <artifactId>bcprov-ext-jdk15on</artifactId>
591         <version>${bouncycastle.version}</version>
592       </dependency>
593
594       <dependency>
595         <groupId>com.webcohesion.enunciate</groupId>
596         <artifactId>enunciate-core-annotations</artifactId>
597         <!-- This must be aligned with the version of enunciate-maven-plugin specified below -->
598         <version>2.11.1</version>
599       </dependency>
600
601       <dependency>
602         <groupId>org.codehaus.jettison</groupId>
603         <artifactId>jettison</artifactId>
604         <version>1.4.0</version>
605       </dependency>
606       <!-- To upgrade org.eclipse.persistence dependencies to 2.6.0+, we need to ensure all downstreams consumers
607          pull in javax.validation first:
608          http://stackoverflow.com/questions/28568154/how-to-get-eclipselink-2-6-0-m3-working-with-jersey-1-18-3 -->
609       <dependency>
610         <groupId>org.eclipse.persistence</groupId>
611         <artifactId>org.eclipse.persistence.antlr</artifactId>
612         <version>2.7.3</version>
613       </dependency>
614       <dependency>
615         <groupId>org.eclipse.persistence</groupId>
616         <artifactId>org.eclipse.persistence.core</artifactId>
617         <version>2.7.3</version>
618       </dependency>
619       <dependency>
620         <groupId>org.eclipse.persistence</groupId>
621         <artifactId>org.eclipse.persistence.moxy</artifactId>
622         <version>2.7.3</version>
623       </dependency>
624       <dependency>
625         <groupId>javax.validation</groupId>
626         <artifactId>validation-api</artifactId>
627         <version>1.1.0.Final</version>
628       </dependency>
629       <dependency>
630         <groupId>org.javassist</groupId>
631         <artifactId>javassist</artifactId>
632         <version>3.24.1-GA</version>
633       </dependency>
634       <dependency>
635         <groupId>org.jboss.spec.javax.transaction</groupId>
636         <artifactId>jboss-transaction-api_1.1_spec</artifactId>
637         <version>1.0.1.Final</version>
638       </dependency>
639       <dependency>
640         <groupId>org.jolokia</groupId>
641         <artifactId>jolokia-osgi</artifactId>
642         <version>1.6.2</version>
643       </dependency>
644       <dependency>
645         <groupId>org.osgi</groupId>
646         <artifactId>osgi.cmpn</artifactId>
647         <version>6.0.0</version>
648         <scope>provided</scope>
649       </dependency>
650       <dependency>
651         <groupId>org.osgi</groupId>
652         <artifactId>org.osgi.core</artifactId>
653         <version>6.0.0</version>
654         <scope>provided</scope>
655       </dependency>
656       <dependency>
657         <groupId>org.osgi</groupId>
658         <!-- for https://bugs.opendaylight.org/show_bug.cgi?id=4290 -->
659         <artifactId>org.osgi.service.event</artifactId>
660         <version>1.3.1</version>
661       </dependency>
662       <dependency>
663         <groupId>org.apache.aries.quiesce</groupId>
664         <artifactId>org.apache.aries.quiesce.api</artifactId>
665         <version>1.0.0</version>
666       </dependency>
667       <dependency>
668         <groupId>org.ow2.asm</groupId>
669         <artifactId>asm</artifactId>
670         <version>7.0</version>
671       </dependency>
672
673       <!-- Configuration library -->
674       <!-- This needs to be kept in sync with the version used by akka -->
675       <dependency>
676         <groupId>com.typesafe</groupId>
677         <artifactId>config</artifactId>
678         <version>1.3.3</version>
679       </dependency>
680
681       <!-- Reactive Streams, used by Akka -->
682       <dependency>
683         <groupId>org.reactivestreams</groupId>
684         <artifactId>reactive-streams</artifactId>
685         <version>1.0.2</version>
686       </dependency>
687
688       <!-- Akka -->
689       <dependency>
690         <groupId>com.typesafe</groupId>
691         <artifactId>ssl-config-core_2.12</artifactId>
692         <version>0.3.7</version>
693       </dependency>
694       <dependency>
695         <groupId>com.typesafe.akka</groupId>
696         <artifactId>akka-actor_2.12</artifactId>
697         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
698         <version>2.5.23</version>
699       </dependency>
700       <dependency>
701         <groupId>com.typesafe.akka</groupId>
702         <artifactId>akka-cluster_2.12</artifactId>
703         <version>2.5.23</version>
704       </dependency>
705       <dependency>
706         <groupId>com.typesafe.akka</groupId>
707         <artifactId>akka-osgi_2.12</artifactId>
708         <version>2.5.23</version>
709       </dependency>
710       <dependency>
711         <groupId>com.typesafe.akka</groupId>
712         <artifactId>akka-persistence_2.12</artifactId>
713         <version>2.5.23</version>
714       </dependency>
715       <dependency>
716         <groupId>com.typesafe.akka</groupId>
717         <artifactId>akka-persistence-tck_2.12</artifactId>
718         <version>2.5.23</version>
719         <scope>test</scope>
720       </dependency>
721       <dependency>
722         <groupId>com.typesafe.akka</groupId>
723         <artifactId>akka-protobuf_2.12</artifactId>
724         <version>2.5.23</version>
725       </dependency>
726       <dependency>
727         <groupId>com.typesafe.akka</groupId>
728         <artifactId>akka-remote_2.12</artifactId>
729         <version>2.5.23</version>
730       </dependency>
731       <dependency>
732         <groupId>com.typesafe.akka</groupId>
733         <artifactId>akka-slf4j_2.12</artifactId>
734         <version>2.5.23</version>
735       </dependency>
736       <dependency>
737         <groupId>com.typesafe.akka</groupId>
738         <artifactId>akka-stream_2.12</artifactId>
739         <version>2.5.23</version>
740       </dependency>
741       <dependency>
742         <groupId>com.typesafe.akka</groupId>
743         <artifactId>akka-testkit_2.12</artifactId>
744         <version>2.5.23</version>
745         <scope>test</scope>
746       </dependency>
747       <dependency>
748         <groupId>org.scala-lang.modules</groupId>
749         <artifactId>scala-java8-compat_2.12</artifactId>
750         <version>0.8.0</version>
751       </dependency>
752       <dependency>
753         <groupId>org.scala-lang.modules</groupId>
754         <artifactId>scala-parser-combinators_2.12</artifactId>
755         <version>1.1.2</version>
756       </dependency>
757       <dependency>
758         <groupId>org.uncommons.maths</groupId>
759         <artifactId>uncommons-maths</artifactId>
760         <version>1.2.2a</version>
761       </dependency>
762
763       <!-- Aeron, required by Akka -->
764       <dependency>
765         <groupId>org.agrona</groupId>
766         <artifactId>agrona</artifactId>
767         <version>0.9.33</version>
768       </dependency>
769       <dependency>
770         <groupId>io.aeron</groupId>
771         <artifactId>aeron-client</artifactId>
772         <version>1.15.3</version>
773       </dependency>
774       <dependency>
775         <groupId>io.aeron</groupId>
776         <artifactId>aeron-driver</artifactId>
777         <version>1.15.3</version>
778       </dependency>
779
780       <!-- Scala -->
781       <dependency>
782         <groupId>org.scala-lang</groupId>
783         <artifactId>scala-library</artifactId>
784         <version>2.12.8</version>
785       </dependency>
786       <dependency>
787         <groupId>org.scala-lang</groupId>
788         <artifactId>scala-reflect</artifactId>
789         <version>2.12.8</version>
790       </dependency>
791
792       <!-- LMAX Disruptor -->
793       <dependency>
794         <groupId>com.lmax</groupId>
795         <artifactId>disruptor</artifactId>
796         <version>3.4.2</version>
797       </dependency>
798
799       <!-- Add Pax Exam -->
800       <dependency>
801         <groupId>org.ops4j.pax.exam</groupId>
802         <artifactId>pax-exam</artifactId>
803         <version>4.13.1</version>
804         <scope>test</scope>
805       </dependency>
806       <dependency>
807         <groupId>org.ops4j.pax.exam</groupId>
808         <artifactId>pax-exam-container-forked</artifactId>
809         <version>4.13.1</version>
810         <scope>test</scope>
811       </dependency>
812       <dependency>
813         <groupId>org.ops4j.pax.exam</groupId>
814         <artifactId>pax-exam-container-karaf</artifactId>
815         <version>4.13.1</version>
816         <scope>test</scope>
817       </dependency>
818       <dependency>
819         <groupId>org.ops4j.pax.exam</groupId>
820         <artifactId>pax-exam-container-native</artifactId>
821         <version>4.13.1</version>
822         <scope>test</scope>
823       </dependency>
824       <dependency>
825         <groupId>org.ops4j.pax.exam</groupId>
826         <artifactId>pax-exam-extender-service</artifactId>
827         <version>4.13.1</version>
828         <scope>test</scope>
829       </dependency>
830       <dependency>
831         <groupId>org.ops4j.pax.exam</groupId>
832         <artifactId>pax-exam-inject</artifactId>
833         <version>4.13.1</version>
834         <scope>test</scope>
835       </dependency>
836       <dependency>
837         <groupId>org.ops4j.pax.exam</groupId>
838         <artifactId>pax-exam-invoker-junit</artifactId>
839         <version>4.13.1</version>
840         <scope>test</scope>
841       </dependency>
842       <dependency>
843         <groupId>org.ops4j.pax.exam</groupId>
844         <artifactId>pax-exam-features</artifactId>
845         <version>4.13.1</version>
846         <type>xml</type>
847         <scope>test</scope>
848       </dependency>
849       <dependency>
850         <groupId>org.ops4j.pax.exam</groupId>
851         <artifactId>pax-exam-junit4</artifactId>
852         <version>4.13.1</version>
853         <scope>test</scope>
854       </dependency>
855       <dependency>
856         <groupId>org.ops4j.pax.exam</groupId>
857         <artifactId>pax-exam-link-mvn</artifactId>
858         <version>4.13.1</version>
859         <scope>test</scope>
860       </dependency>
861       <dependency>
862         <groupId>org.ops4j.pax.exam</groupId>
863         <artifactId>pax-exam-link-assembly</artifactId>
864         <version>4.13.1</version>
865         <scope>test</scope>
866       </dependency>
867
868       <dependency>
869         <groupId>org.ops4j.pax.url</groupId>
870         <artifactId>pax-url-link</artifactId>
871         <version>2.5.4</version>
872         <scope>test</scope>
873       </dependency>
874       <dependency>
875         <groupId>org.ops4j.pax.url</groupId>
876         <artifactId>pax-url-aether</artifactId>
877         <version>2.5.4</version>
878         <scope>test</scope>
879       </dependency>
880       <dependency>
881         <groupId>org.ops4j.pax.url</groupId>
882         <artifactId>pax-url-wrap</artifactId>
883         <version>2.5.4</version>
884       </dependency>
885
886       <dependency>
887         <groupId>org.ops4j.pax.web</groupId>
888         <artifactId>pax-web-api</artifactId>
889         <!-- Note: keep this version synchronized with karaf -->
890         <version>7.2.5</version>
891       </dependency>
892
893       <dependency>
894         <groupId>org.springframework.osgi</groupId>
895         <artifactId>spring-osgi-mock</artifactId>
896         <version>1.2.1</version>
897         <scope>test</scope>
898       </dependency>
899
900       <dependency>
901         <groupId>org.xmlunit</groupId>
902         <artifactId>xmlunit-core</artifactId>
903         <version>2.6.3</version>
904         <scope>test</scope>
905       </dependency>
906       <dependency>
907         <groupId>org.xmlunit</groupId>
908         <artifactId>xmlunit-assertj</artifactId>
909         <version>2.6.3</version>
910         <scope>test</scope>
911       </dependency>
912       <dependency>
913         <groupId>org.xmlunit</groupId>
914         <artifactId>xmlunit-matchers</artifactId>
915         <version>2.6.3</version>
916         <scope>test</scope>
917       </dependency>
918       <!-- FIXME: remove this once we have migrated over -->
919       <dependency>
920         <groupId>org.xmlunit</groupId>
921         <artifactId>xmlunit-legacy</artifactId>
922         <version>2.6.3</version>
923         <scope>test</scope>
924       </dependency>
925
926       <dependency>
927         <groupId>org.eclipse.jetty</groupId>
928         <artifactId>jetty-bom</artifactId>
929         <version>9.4.12.v20180830</version>
930         <scope>import</scope>
931         <type>pom</type>
932       </dependency>
933
934       <dependency>
935         <groupId>com.h2database</groupId>
936         <artifactId>h2</artifactId>
937         <version>1.4.199</version>
938       </dependency>
939
940       <!-- Xtend http://xtend-lang.org
941            NOTE: When you increase the version here,
942            then remember to also increase it for the
943            xtend-maven-plugin below! (We don't want to
944            use a Maven property, in order not to "leak" that.)
945        -->
946       <dependency>
947           <groupId>org.eclipse.xtend</groupId>
948           <artifactId>org.eclipse.xtend.lib</artifactId>
949           <version>2.17.1</version>
950       </dependency>
951       <dependency>
952           <groupId>org.eclipse.xtend</groupId>
953           <artifactId>org.eclipse.xtend.lib.macro</artifactId>
954           <version>2.17.1</version>
955       </dependency>
956       <dependency>
957           <groupId>org.eclipse.xtext</groupId>
958           <artifactId>org.eclipse.xtext.xbase.lib</artifactId>
959           <version>2.17.1</version>
960       </dependency>
961
962       <!-- Annotations -->
963       <dependency>
964         <groupId>javax.inject</groupId>
965         <artifactId>javax.inject</artifactId>
966         <version>1</version>
967         <optional>true</optional>
968       </dependency>
969
970       <!-- jung, a graph library -->
971       <dependency>
972         <groupId>net.sf.jung</groupId>
973         <artifactId>jung-api</artifactId>
974         <version>2.1.1</version>
975       </dependency>
976       <dependency>
977         <groupId>net.sf.jung</groupId>
978         <artifactId>jung-algorithms</artifactId>
979         <version>2.1.1</version>
980       </dependency>
981       <dependency>
982         <groupId>net.sf.jung</groupId>
983         <artifactId>jung-graph-impl</artifactId>
984         <version>2.1.1</version>
985       </dependency>
986
987       <!-- Karaf console support -->
988       <dependency>
989         <groupId>org.apache.karaf.shell</groupId>
990         <artifactId>org.apache.karaf.shell.core</artifactId>
991         <version>${karaf.version}</version>
992       </dependency>
993       <dependency>
994         <groupId>org.apache.karaf.shell</groupId>
995         <artifactId>org.apache.karaf.shell.console</artifactId>
996         <version>${karaf.version}</version>
997       </dependency>
998
999       <!-- ThreeTen-Extra, date/time complements -->
1000       <dependency>
1001         <groupId>org.threeten</groupId>
1002         <artifactId>threeten-extra</artifactId>
1003         <version>1.5.0</version>
1004       </dependency>
1005
1006       <!-- When updating this version, consider antl4-maven-plugin below -->
1007       <dependency>
1008         <groupId>org.antlr</groupId>
1009         <artifactId>antlr4-runtime</artifactId>
1010         <version>4.7.2</version>
1011       </dependency>
1012       <!-- Aries' Blueprint version should be kept in sync to the version actually
1013            used by our ${karaf[4].version} ... please bump this when increasing that.
1014            TODO Find a smarter way to inherit this from a (TBD..) Karaf artifacts BOM! -->
1015       <dependency>
1016         <groupId>org.apache.aries.blueprint</groupId>
1017         <artifactId>org.apache.aries.blueprint.core</artifactId>
1018         <version>1.10.1</version>
1019       </dependency>
1020       <dependency>
1021         <groupId>org.apache.aries.blueprint</groupId>
1022         <artifactId>blueprint-maven-plugin-annotation</artifactId>
1023         <version>1.3.0</version>
1024         <optional>true</optional>
1025       </dependency>
1026
1027       <!-- Apache SSHD with netty -->
1028       <dependency>
1029         <groupId>org.apache.sshd</groupId>
1030         <artifactId>sshd-netty</artifactId>
1031         <version>2.2.0</version>
1032         <exclusions>
1033           <exclusion>
1034             <!-- We provide sshd-osgi instead -->
1035             <groupId>org.apache.sshd</groupId>
1036             <artifactId>sshd-core</artifactId>
1037           </exclusion>
1038         </exclusions>
1039       </dependency>
1040       <dependency>
1041         <groupId>org.apache.sshd</groupId>
1042         <artifactId>sshd-osgi</artifactId>
1043         <version>2.2.0</version>
1044       </dependency>
1045       <dependency>
1046         <groupId>net.i2p.crypto</groupId>
1047         <artifactId>eddsa</artifactId>
1048         <version>0.3.0</version>
1049       </dependency>
1050
1051       <!-- TrieMap library -->
1052       <dependency>
1053         <groupId>tech.pantheon.triemap</groupId>
1054         <artifactId>bom</artifactId>
1055         <version>1.0.6</version>
1056         <scope>import</scope>
1057         <type>pom</type>
1058       </dependency>
1059
1060       <!-- Dropwizard metrics -->
1061       <dependency>
1062         <groupId>io.dropwizard.metrics</groupId>
1063         <artifactId>metrics-bom</artifactId>
1064         <version>4.0.5</version>
1065         <scope>import</scope>
1066         <type>pom</type>
1067       </dependency>
1068
1069       <!-- JAXB for Java 11+ -->
1070       <!--
1071            FIXME: bump this to 2.3.0 once we require Java 9+
1072            FIXME: bump this to whatever karaf provides once we require Java 11+
1073       -->
1074       <dependency>
1075         <groupId>javax.xml.bind</groupId>
1076         <artifactId>jaxb-api</artifactId>
1077         <version>2.2.8</version>
1078         <exclusions>
1079           <exclusion>
1080             <!-- Provided by JRE -->
1081             <groupId>javax.xml.stream</groupId>
1082             <artifactId>stax-api</artifactId>
1083           </exclusion>
1084         </exclusions>
1085       </dependency>
1086       <dependency>
1087         <groupId>com.sun.xml.bind</groupId>
1088         <artifactId>jaxb-core</artifactId>
1089         <version>2.2.11</version>
1090       </dependency>
1091       <dependency>
1092         <groupId>com.sun.xml.bind</groupId>
1093         <artifactId>jaxb-impl</artifactId>
1094         <version>2.2.11</version>
1095       </dependency>
1096     </dependencies>
1097   </dependencyManagement>
1098
1099   <dependencies>
1100     <!--
1101          We expect slf4j-api to be provided by the platform.
1102          Karaf provides it, other containers need to provide it themselves.
1103     -->
1104     <dependency>
1105       <groupId>org.slf4j</groupId>
1106       <artifactId>slf4j-api</artifactId>
1107       <scope>provided</scope>
1108     </dependency>
1109
1110     <!--
1111           Enable useful code quality annotations everywhere. Since these annotations
1112           are not required at runtime.
1113     -->
1114     <dependency>
1115       <groupId>org.eclipse.jdt</groupId>
1116       <artifactId>org.eclipse.jdt.annotation</artifactId>
1117       <scope>provided</scope>
1118     </dependency>
1119     <dependency>
1120       <groupId>com.github.spotbugs</groupId>
1121       <artifactId>spotbugs-annotations</artifactId>
1122       <scope>provided</scope>
1123       <optional>true</optional>
1124     </dependency>
1125
1126     <!--
1127           Testing output should be routed through slf4j-simple.
1128     -->
1129     <dependency>
1130       <groupId>org.slf4j</groupId>
1131       <artifactId>slf4j-simple</artifactId>
1132       <scope>test</scope>
1133     </dependency>
1134
1135     <!--
1136           Unit tests can use JUnit + Mockito + Hamcrest by default.
1137     -->
1138     <dependency>
1139       <groupId>org.hamcrest</groupId>
1140       <artifactId>hamcrest</artifactId>
1141       <scope>test</scope>
1142     </dependency>
1143     <dependency>
1144       <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
1145       <groupId>org.hamcrest</groupId>
1146       <artifactId>hamcrest-library</artifactId>
1147       <scope>test</scope>
1148     </dependency>
1149     <dependency>
1150       <groupId>junit</groupId>
1151       <artifactId>junit</artifactId>
1152       <scope>test</scope>
1153     </dependency>
1154     <dependency>
1155       <groupId>org.mockito</groupId>
1156       <artifactId>mockito-core</artifactId>
1157       <scope>test</scope>
1158     </dependency>
1159   </dependencies>
1160
1161   <build>
1162     <pluginManagement>
1163       <plugins>
1164         <!-- Official maven plugins, alpha-sorted by artifactId.
1165              We do not need to specify the groupId. -->
1166         <plugin>
1167           <artifactId>maven-antrun-plugin</artifactId>
1168           <version>1.8</version>
1169         </plugin>
1170         <plugin>
1171           <artifactId>maven-checkstyle-plugin</artifactId>
1172           <version>3.1.0</version>
1173           <dependencies>
1174             <dependency>
1175               <groupId>com.puppycrawl.tools</groupId>
1176               <artifactId>checkstyle</artifactId>
1177               <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
1178               <version>8.20</version>
1179             </dependency>
1180             <dependency>
1181               <groupId>org.opendaylight.odlparent</groupId>
1182               <artifactId>checkstyle</artifactId>
1183               <version>6.0.0-SNAPSHOT</version>
1184             </dependency>
1185             <dependency>
1186               <groupId>org.opendaylight.odlparent</groupId>
1187               <artifactId>odl-license</artifactId>
1188               <version>6.0.0-SNAPSHOT</version>
1189             </dependency>
1190             <dependency>
1191               <groupId>com.github.sevntu-checkstyle</groupId>
1192               <artifactId>sevntu-checkstyle-maven-plugin</artifactId>
1193               <version>1.34.1</version>
1194             </dependency>
1195           </dependencies>
1196           <configuration>
1197             <configLocation>odl_checks.xml</configLocation>
1198             <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
1199             <!-- <sourceDirectories> are needed so that checkstyle ignores the
1200                  generated sources directory -->
1201             <sourceDirectories>
1202               <directory>${project.build.sourceDirectory}</directory>
1203             </sourceDirectories>
1204             <includeResources>true</includeResources>
1205             <includeTestSourceDirectory>true</includeTestSourceDirectory>
1206             <includeTestResources>true</includeTestResources>
1207             <includes>**\/*.java, **\/*.xtend</includes>
1208             <excludes>
1209               org/opendaylight/yang/gen/**,
1210               **/protobuff/messages/**,
1211               **/thrift/gen/*.java
1212             </excludes>
1213             <failsOnError>false</failsOnError>
1214             <consoleOutput>true</consoleOutput>
1215           </configuration>
1216           <executions>
1217             <execution>
1218               <id>check-license</id>
1219               <goals>
1220                 <goal>check</goal>
1221               </goals>
1222               <phase>process-sources</phase>
1223               <configuration>
1224                 <configLocation>check-license.xml</configLocation>
1225                 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
1226                 <includeResources>false</includeResources>
1227                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
1228                 <includeTestResources>false</includeTestResources>
1229                 <sourceDirectories>
1230                   <directory>${project.build.sourceDirectory}</directory>
1231                 </sourceDirectories>
1232                 <excludes>
1233                   org/opendaylight/yang/gen/**,
1234                   **/protobuff/messages/**,
1235                   **/thrift/gen/*.java
1236                 </excludes>
1237                 <failsOnError>false</failsOnError>
1238                 <consoleOutput>true</consoleOutput>
1239               </configuration>
1240             </execution>
1241             <execution>
1242               <goals>
1243                 <goal>check</goal>
1244               </goals>
1245               <phase>process-sources</phase>
1246             </execution>
1247           </executions>
1248         </plugin>
1249         <plugin>
1250           <groupId>org.apache.maven.plugins</groupId>
1251           <artifactId>maven-pmd-plugin</artifactId>
1252           <version>3.11.0</version>
1253           <executions>
1254             <execution>
1255               <id>cpd</id>
1256               <phase>process-sources</phase>
1257               <goals>
1258                 <goal>cpd-check</goal>
1259               </goals>
1260               <configuration>
1261                 <failOnViolation>${pmd.cpd.fail}</failOnViolation>
1262                 <!-- 100 "tokens" here correspond to approx. 5-10 lines of code -->
1263                 <minimumTokens>101</minimumTokens>
1264                 <printFailingErrors>true</printFailingErrors>
1265                 <excludeRoots>
1266                   <!-- FIXME: this should be a wildcard, but PMD is brain-damaged and does
1267                               not understand path prefixes nor wildcards. Details are available
1268                               at http://stackoverflow.com/questions/15647771/pmd-exclude-not-working
1269                               Hence people introducing new generated sources have to include
1270                               PMD config too.
1271                    -->
1272                   <excludeRoot>${project.build.directory}/generated-sources</excludeRoot>
1273                   <excludeRoot>${project.build.directory}/generated-test-sources</excludeRoot>
1274                 </excludeRoots>
1275                 <linkXRef>false</linkXRef>
1276               </configuration>
1277             </execution>
1278           </executions>
1279         </plugin>
1280         <plugin>
1281           <artifactId>maven-compiler-plugin</artifactId>
1282           <version>3.8.1</version>
1283           <configuration>
1284             <showWarnings>true</showWarnings>
1285             <compilerArgs>
1286               <arg>-parameters</arg>
1287               <arg>-Xlint:deprecation</arg>
1288               <arg>-Xlint:unchecked</arg>
1289             </compilerArgs>
1290           </configuration>
1291         </plugin>
1292         <plugin>
1293           <artifactId>maven-enforcer-plugin</artifactId>
1294           <version>${enforcer.version}</version>
1295         </plugin>
1296         <plugin>
1297           <artifactId>maven-failsafe-plugin</artifactId>
1298           <version>2.22.2</version>
1299         </plugin>
1300         <plugin>
1301           <artifactId>maven-invoker-plugin</artifactId>
1302           <version>3.2.0</version>
1303         </plugin>
1304         <plugin>
1305           <artifactId>maven-jar-plugin</artifactId>
1306           <version>3.1.2</version>
1307         </plugin>
1308         <plugin>
1309           <artifactId>maven-dependency-plugin</artifactId>
1310           <executions>
1311             <execution>
1312               <id>unpack-license</id>
1313               <phase>generate-resources</phase>
1314               <goals><goal>unpack</goal></goals>
1315               <configuration>
1316                 <artifactItems>
1317                   <artifactItem>
1318                     <groupId>org.opendaylight.odlparent</groupId>
1319                     <artifactId>odl-license</artifactId>
1320                     <version>6.0.0-SNAPSHOT</version>
1321                   </artifactItem>
1322                 </artifactItems>
1323                 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1324                 <excludes>META-INF/**</excludes>
1325               </configuration>
1326             </execution>
1327           </executions>
1328         </plugin>
1329
1330         <plugin>
1331           <artifactId>maven-plugin-plugin</artifactId>
1332           <version>3.6.0</version>
1333         </plugin>
1334
1335         <plugin>
1336           <artifactId>maven-remote-resources-plugin</artifactId>
1337           <version>1.6.0</version>
1338         </plugin>
1339         <plugin>
1340           <artifactId>maven-resources-plugin</artifactId>
1341           <version>3.1.0</version>
1342         </plugin>
1343         <plugin>
1344           <artifactId>maven-shade-plugin</artifactId>
1345           <version>3.2.1</version>
1346         </plugin>
1347         <plugin>
1348           <artifactId>maven-source-plugin</artifactId>
1349           <version>3.1.0</version>
1350           <executions>
1351             <execution>
1352               <id>attach-sources</id>
1353               <phase>verify</phase>
1354               <goals>
1355                 <goal>jar-no-fork</goal>
1356               </goals>
1357             </execution>
1358           </executions>
1359         </plugin>
1360         <plugin>
1361           <artifactId>maven-surefire-plugin</artifactId>
1362           <version>2.22.2</version>
1363           <configuration>
1364             <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1365             <trimStackTrace>false</trimStackTrace>
1366           </configuration>
1367         </plugin>
1368
1369         <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1370         <plugin>
1371           <!-- Support Blueprint XML construction using annotations -->
1372           <groupId>org.apache.aries.blueprint</groupId>
1373           <artifactId>blueprint-maven-plugin</artifactId>
1374           <version>1.10.0</version>
1375           <!-- TODO remove dependencies when we bump from 1.10.0 to 1.11.0 (or 1.10.1);
1376              see https://jira.opendaylight.org/browse/ODLPARENT-167 & https://jira.apache.org/jira/browse/ARIES-1826 -->
1377           <dependencies>
1378             <dependency>
1379               <groupId>org.apache.xbean</groupId>
1380               <artifactId>xbean-finder-shaded</artifactId>
1381               <version>4.14</version>
1382             </dependency>
1383           </dependencies>
1384           <configuration>
1385             <scanPaths>
1386               <scanPath>${project.groupId}</scanPath>
1387             </scanPaths>
1388           </configuration>
1389           <executions>
1390             <execution>
1391               <goals>
1392                 <goal>blueprint-generate</goal>
1393               </goals>
1394             </execution>
1395           </executions>
1396         </plugin>
1397
1398         <plugin>
1399           <groupId>org.apache.felix</groupId>
1400           <artifactId>maven-bundle-plugin</artifactId>
1401           <version>4.2.0</version>
1402           <extensions>true</extensions>
1403           <configuration>
1404             <instructions>
1405               <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1406                    so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1407                    and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present.  -->
1408               <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>
1409
1410               <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1411                    to generate Import-Service and Export-Service headers. -->
1412               <_removeheaders>Import-Service,Export-Service</_removeheaders>
1413             </instructions>
1414           </configuration>
1415         </plugin>
1416
1417         <plugin>
1418           <groupId>org.apache.karaf.tooling</groupId>
1419           <artifactId>karaf-maven-plugin</artifactId>
1420           <version>${karaf.version}</version>
1421         </plugin>
1422
1423         <plugin>
1424           <groupId>org.apache.servicemix.tooling</groupId>
1425           <artifactId>depends-maven-plugin</artifactId>
1426           <version>1.4.0</version>
1427           <executions>
1428             <execution>
1429               <id>generate-depends-file</id>
1430               <goals>
1431                 <goal>generate-depends-file</goal>
1432               </goals>
1433             </execution>
1434           </executions>
1435         </plugin>
1436
1437         <plugin>
1438           <groupId>com.webcohesion.enunciate</groupId>
1439           <artifactId>enunciate-maven-plugin</artifactId>
1440           <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1441           <version>2.11.1</version>
1442         </plugin>
1443
1444         <plugin>
1445           <groupId>org.gaul</groupId>
1446           <artifactId>modernizer-maven-plugin</artifactId>
1447           <version>1.8.0</version>
1448           <configuration>
1449             <javaVersion>1.8</javaVersion>
1450           </configuration>
1451
1452           <executions>
1453             <execution>
1454               <id>modernizer</id>
1455               <phase>verify</phase>
1456               <goals>
1457                 <goal>modernizer</goal>
1458               </goals>
1459             </execution>
1460           </executions>
1461         </plugin>
1462
1463         <plugin>
1464           <groupId>org.codehaus.mojo</groupId>
1465           <artifactId>build-helper-maven-plugin</artifactId>
1466           <version>3.0.0</version>
1467         </plugin>
1468         <plugin>
1469           <groupId>com.github.spotbugs</groupId>
1470           <artifactId>spotbugs-maven-plugin</artifactId>
1471           <version>3.1.12</version>
1472           <dependencies>
1473             <dependency>
1474               <groupId>com.github.spotbugs</groupId>
1475               <artifactId>spotbugs</artifactId>
1476               <version>3.1.12</version>
1477             </dependency>
1478             <dependency>
1479               <groupId>org.opendaylight.odlparent</groupId>
1480               <artifactId>spotbugs</artifactId>
1481               <version>6.0.0-SNAPSHOT</version>
1482             </dependency>
1483             <dependency>
1484               <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 -->
1485               <groupId>org.slf4j</groupId>
1486               <artifactId>slf4j-simple</artifactId>
1487               <version>1.8.0-beta2</version>
1488             </dependency>
1489           </dependencies>
1490           <configuration>
1491             <plugins>
1492               <plugin>
1493                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1494                 <artifactId>bug-pattern</artifactId>
1495                 <!-- NOTE: This version MUST be kept in sync with the same version in the old findbugs-maven-plugin above, if possible -->
1496                 <version>1.4.2</version>
1497               </plugin>
1498             </plugins>
1499             <!--
1500               Enables analysis which takes more memory but finds more bugs.
1501               If you run out of memory, changes the value of the effort element
1502               to 'Low'.
1503             -->
1504             <effort>Max</effort>
1505             <!-- Reports all bugs (other values are medium and max) -->
1506             <threshold>Low</threshold>
1507             <!-- Build doesn't fail if problems are found -->
1508             <failOnError>false</failOnError>
1509             <!-- References the excluded rules -->
1510             <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1511             <!-- Produces XML report -->
1512             <xmlOutput>true</xmlOutput>
1513             <!-- Configures the directory in which the XML report is created -->
1514             <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1515           </configuration>
1516           <executions>
1517             <!--
1518               Ensures that SpotBugs inspects source code when project is compiled.
1519             -->
1520             <execution>
1521               <id>analyze-compile</id>
1522               <phase>compile</phase>
1523               <goals>
1524                 <goal>check</goal>
1525               </goals>
1526             </execution>
1527           </executions>
1528         </plugin>
1529         <plugin>
1530           <groupId>org.codehaus.mojo</groupId>
1531           <artifactId>properties-maven-plugin</artifactId>
1532           <version>1.0.0</version>
1533         </plugin>
1534         <plugin>
1535           <groupId>org.eclipse.xtend</groupId>
1536           <artifactId>xtend-maven-plugin</artifactId>
1537           <!-- NOTE: This version MUST be kept in sync with the Xtend version in <dependencyManagement> -->
1538           <version>2.17.1</version>
1539           <executions>
1540             <execution>
1541               <goals>
1542                 <goal>compile</goal>
1543                 <goal>testCompile</goal>
1544               </goals>
1545               <configuration>
1546                 <outputDirectory>${project.build.directory}/generated-sources/xtend</outputDirectory>
1547                 <testOutputDirectory>${project.build.directory}/generated-test-sources/xtend</testOutputDirectory>
1548               </configuration>
1549             </execution>
1550           </executions>
1551         </plugin>
1552         <plugin>
1553           <groupId>org.eclipse.m2e</groupId>
1554           <artifactId>lifecycle-mapping</artifactId>
1555           <version>1.0.0</version>
1556           <configuration>
1557             <lifecycleMappingMetadata>
1558               <pluginExecutions>
1559                 <pluginExecution>
1560                   <pluginExecutionFilter>
1561                     <groupId>org.apache.felix</groupId>
1562                     <artifactId>maven-bundle-plugin</artifactId>
1563                     <versionRange>[1.0,)</versionRange>
1564                     <goals>
1565                       <goal>manifest</goal>
1566                     </goals>
1567                   </pluginExecutionFilter>
1568                   <action>
1569                     <execute/>
1570                   </action>
1571                 </pluginExecution>
1572                 <pluginExecution>
1573                   <pluginExecutionFilter>
1574                     <groupId>org.apache.maven.plugins</groupId>
1575                     <artifactId>maven-enforcer-plugin</artifactId>
1576                     <versionRange>[1.0.0,)</versionRange>
1577                     <goals>
1578                       <goal>enforce</goal>
1579                     </goals>
1580                   </pluginExecutionFilter>
1581                   <action>
1582                     <ignore/>
1583                   </action>
1584                 </pluginExecution>
1585                 <pluginExecution>
1586                   <pluginExecutionFilter>
1587                     <groupId>org.apache.maven.plugins</groupId>
1588                     <artifactId>maven-dependency-plugin</artifactId>
1589                     <versionRange>[2.10,)</versionRange>
1590                     <goals>
1591                       <goal>unpack</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-pmd-plugin</artifactId>
1602                     <versionRange>[3.6,)</versionRange>
1603                     <goals>
1604                       <goal>cpd-check</goal>
1605                     </goals>
1606                   </pluginExecutionFilter>
1607                   <action>
1608                     <ignore/>
1609                   </action>
1610                 </pluginExecution>
1611                 <!-- The plugin will eventually be removed, remove this too at that point -->
1612                 <pluginExecution>
1613                   <pluginExecutionFilter>
1614                     <groupId>org.apache.maven.plugins</groupId>
1615                     <artifactId>maven-antrun-plugin</artifactId>
1616                     <versionRange>[1.8,)</versionRange>
1617                     <goals>
1618                       <goal>run</goal>
1619                     </goals>
1620                   </pluginExecutionFilter>
1621                   <action>
1622                     <ignore/>
1623                   </action>
1624                 </pluginExecution>
1625                 <pluginExecution>
1626                   <pluginExecutionFilter>
1627                     <groupId>org.apache.servicemix.tooling</groupId>
1628                     <artifactId>depends-maven-plugin</artifactId>
1629                     <versionRange>[1.2,)</versionRange>
1630                     <goals>
1631                       <goal>generate-depends-file</goal>
1632                     </goals>
1633                   </pluginExecutionFilter>
1634                   <action>
1635                     <execute/>
1636                   </action>
1637                 </pluginExecution>
1638                 <pluginExecution>
1639                   <pluginExecutionFilter>
1640                     <groupId>org.jacoco</groupId>
1641                     <artifactId>jacoco-maven-plugin</artifactId>
1642                     <versionRange>[0.7.0,)</versionRange>
1643                     <goals>
1644                       <goal>prepare-agent</goal>
1645                     </goals>
1646                   </pluginExecutionFilter>
1647                   <action>
1648                     <ignore/>
1649                   </action>
1650                 </pluginExecution>
1651
1652                 <pluginExecution>
1653                   <pluginExecutionFilter>
1654                     <groupId>org.ops4j.pax.exam</groupId>
1655                     <artifactId>maven-paxexam-plugin</artifactId>
1656                     <versionRange>[1.2.4,)</versionRange>
1657                     <goals>
1658                       <goal>generate-depends-file</goal>
1659                     </goals>
1660                   </pluginExecutionFilter>
1661                   <action>
1662                     <ignore/>
1663                   </action>
1664                 </pluginExecution>
1665
1666                 <pluginExecution>
1667                   <pluginExecutionFilter>
1668                     <groupId>org.basepom.maven</groupId>
1669                     <artifactId>
1670                       duplicate-finder-maven-plugin
1671                     </artifactId>
1672                     <versionRange>[1.2.1,)</versionRange>
1673                     <goals>
1674                       <goal>check</goal>
1675                     </goals>
1676                   </pluginExecutionFilter>
1677                   <action>
1678                     <ignore></ignore>
1679                   </action>
1680                 </pluginExecution>
1681               </pluginExecutions>
1682             </lifecycleMappingMetadata>
1683           </configuration>
1684         </plugin>
1685
1686         <plugin>
1687           <groupId>org.jacoco</groupId>
1688           <artifactId>jacoco-maven-plugin</artifactId>
1689           <configuration>
1690             <!-- Note: This exclusion list should match <sonar.exclusions>
1691                        property above -->
1692             <excludes>
1693               <exclude>**/gen/**</exclude>
1694               <exclude>**/generated-sources/**</exclude>
1695               <exclude>**/generated-test-sources/**</exclude>
1696               <exclude>**/yang-gen/**</exclude>
1697               <exclude>**/yang-gen-config/**</exclude>
1698               <exclude>**/yang-gen-sal/**</exclude>
1699               <exclude>**/yang-gen-code/**</exclude>
1700               <exclude>**/pax/**</exclude>
1701             </excludes>
1702           </configuration>
1703         </plugin>
1704
1705         <plugin>
1706           <groupId>org.ops4j.pax.exam</groupId>
1707           <artifactId>maven-paxexam-plugin</artifactId>
1708           <version>1.2.4</version>
1709         </plugin>
1710
1711         <plugin>
1712           <groupId>org.codehaus.mojo</groupId>
1713           <artifactId>jdepend-maven-plugin</artifactId>
1714           <version>2.0</version>
1715           <executions>
1716             <execution>
1717               <phase>site</phase>
1718               <goals>
1719                 <goal>generate-no-fork</goal>
1720               </goals>
1721             </execution>
1722           </executions>
1723         </plugin>
1724
1725         <!-- When updating this version, consider antl4-runtime above -->
1726         <plugin>
1727           <groupId>org.antlr</groupId>
1728           <artifactId>antlr4-maven-plugin</artifactId>
1729           <version>4.7.2</version>
1730         </plugin>
1731       </plugins>
1732     </pluginManagement>
1733
1734     <plugins>
1735       <plugin>
1736         <artifactId>maven-enforcer-plugin</artifactId>
1737         <executions>
1738           <execution>
1739             <id>enforce-banned-dependencies</id>
1740             <goals>
1741               <goal>enforce</goal>
1742             </goals>
1743             <configuration>
1744               <rules>
1745                 <bannedDependencies>
1746                   <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>
1747                   <excludes>
1748                     <exclude>org.mockito:mockito-all</exclude>
1749                     <exclude>com.google.code.findbugs:annotations</exclude>
1750                   </excludes>
1751                 </bannedDependencies>
1752               </rules>
1753               <fail>true</fail>
1754             </configuration>
1755           </execution>
1756         </executions>
1757       </plugin>
1758       <plugin>
1759         <groupId>org.basepom.maven</groupId>
1760         <artifactId>duplicate-finder-maven-plugin</artifactId>
1761         <version>1.3.0</version>
1762         <executions>
1763           <execution>
1764             <id>find-duplicate-classpath-entries</id>
1765             <phase>verify</phase>
1766             <goals>
1767               <goal>check</goal>
1768             </goals>
1769           </execution>
1770         </executions>
1771         <configuration>
1772             <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1773             <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1774             <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1775             <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1776             <printEqualFiles>false</printEqualFiles>
1777             <quiet>true</quiet>
1778             <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1779                  as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1780                  we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1781                  also ignore: -->
1782             <ignoredResourcePatterns>
1783               <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1784               <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1785               <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1786               <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1787               <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1788               <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1789             </ignoredResourcePatterns>
1790             <ignoredClassPatterns>
1791               <ignoredClassPattern>META-INF.versions.*$</ignoredClassPattern>
1792             </ignoredClassPatterns>
1793             <ignoredDependencies>
1794               <ignoredDependency>
1795                 <groupId>org.slf4j</groupId>
1796                 <artifactId>slf4j-simple</artifactId>
1797               </ignoredDependency>
1798               <ignoredDependency>
1799                 <groupId>org.opendaylight.odlparent</groupId>
1800                 <artifactId>opendaylight-karaf-empty</artifactId>
1801               </ignoredDependency>
1802             </ignoredDependencies>
1803         </configuration>
1804       </plugin>
1805       <plugin>
1806         <artifactId>maven-dependency-plugin</artifactId>
1807       </plugin>
1808       <plugin>
1809         <artifactId>maven-checkstyle-plugin</artifactId>
1810       </plugin>
1811       <plugin>
1812           <artifactId>maven-pmd-plugin</artifactId>
1813       </plugin>
1814       <plugin>
1815         <artifactId>maven-source-plugin</artifactId>
1816       </plugin>
1817       <plugin>
1818         <artifactId>maven-javadoc-plugin</artifactId>
1819       </plugin>
1820
1821       <!-- Jacoco / Sonar -->
1822       <plugin>
1823         <groupId>org.jacoco</groupId>
1824         <artifactId>jacoco-maven-plugin</artifactId>
1825         <executions>
1826           <execution>
1827             <id>pre-unit-test</id>
1828             <goals>
1829               <goal>prepare-agent</goal>
1830             </goals>
1831             <configuration>
1832               <destFile>${jacoco.destFile}</destFile>
1833             </configuration>
1834           </execution>
1835         </executions>
1836       </plugin>
1837
1838       <plugin>
1839         <groupId>com.alexecollins.maven.plugin</groupId>
1840         <artifactId>script-maven-plugin</artifactId>
1841         <version>1.0.0</version>
1842         <executions>
1843            <execution>
1844              <phase>prepare-package</phase>
1845              <goals>
1846                <goal>execute</goal>
1847              </goals>
1848              <configuration>
1849                <script>
1850                  // BeanShell is 2005-ish and thus doesn't support generics, varargs, try-with-resources or lambdas, so:
1851                  // (If we do this kind of inline code in pom.xml more often, we shold have a new simple module in
1852                  //  odl-parent, which has *.java that we compile, and then just depend on it here and call one-line
1853                  //  static class methods only - it will be MUCH easier to write!)
1854                  void copy(File root, String glob, File target) {
1855                      java.nio.file.DirectoryStream dirStream = java.nio.file.Files.newDirectoryStream(root.toPath(), glob);
1856                      Iterator dirStreamIterator = dirStream.iterator();
1857                      while (dirStreamIterator.hasNext()) {
1858                          java.nio.file.Path path = dirStreamIterator.next();
1859                          java.nio.file.Files.copy(path, new File(target, path.toFile().getName()).toPath(),
1860                              new java.nio.file.CopyOption[] {
1861                                  java.nio.file.StandardCopyOption.REPLACE_EXISTING,
1862                                  java.nio.file.StandardCopyOption.COPY_ATTRIBUTES
1863                              }
1864                          );
1865                      }
1866                      dirStream.close();
1867                  }
1868
1869                  File gitRepoRootDir = project.basedir;
1870                  while (!new File(gitRepoRootDir, ".git").exists() &amp;&amp; gitRepoRootDir.getParentFile() != null) {
1871                      gitRepoRootDir = gitRepoRootDir.getParentFile();
1872                  }
1873
1874                  File target = new File(project.build.outputDirectory);
1875                  target.mkdirs();
1876                  copy(gitRepoRootDir, "README*", target);
1877                  copy(gitRepoRootDir, "CONTRIBUTING*", target);
1878                  copy(gitRepoRootDir, "PROJECT_INFO.yaml", target);
1879                </script>
1880              </configuration>
1881            </execution>
1882          </executions>
1883          <dependencies>
1884            <dependency>
1885              <groupId>org.apache-extras.beanshell</groupId>
1886              <artifactId>bsh</artifactId>
1887              <version>2.0b6</version>
1888            </dependency>
1889          </dependencies>
1890       </plugin>
1891     </plugins>
1892   </build>
1893
1894   <profiles>
1895     <profile>
1896       <id>jdk9-compile</id>
1897       <activation>
1898         <jdk>[9,)</jdk>
1899         <property>
1900           <!-- Unless the release is overridden by a system property -->
1901           <name>!maven.compiler.release</name>
1902         </property>
1903       </activation>
1904
1905       <!-- For JDK9+ we want to pass -release to javac -->
1906       <properties>
1907         <maven.compiler.release>8</maven.compiler.release>
1908       </properties>
1909     </profile>
1910   </profiles>
1911
1912   <reporting>
1913     <plugins>
1914       <plugin>
1915         <artifactId>maven-checkstyle-plugin</artifactId>
1916         <version>3.1.0</version>
1917       </plugin>
1918
1919       <!-- FIXME: activate this
1920       <plugin>
1921         <artifactId>maven-project-info-reports-plugin</artifactId>
1922         <version>${projectinfo}</version>
1923       </plugin-->
1924       <plugin>
1925         <groupId>org.codehaus.mojo</groupId>
1926         <artifactId>jdepend-maven-plugin</artifactId>
1927         <reportSets>
1928           <reportSet>
1929             <reports>
1930               <report>generate-no-fork</report>
1931             </reports>
1932           </reportSet>
1933         </reportSets>
1934       </plugin>
1935     </plugins>
1936   </reporting>
1937 </project>
1938