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