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