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