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