ignore web.xml and BP *.xml in duplicate-finder
[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         <scope>provided</scope>
259       </dependency>
260
261       <!--
262            Supporting Libraries
263        -->
264       <dependency>
265         <groupId>org.slf4j</groupId>
266         <artifactId>jcl-over-slf4j</artifactId>
267         <version>1.7.25</version>
268       </dependency>
269       <dependency>
270         <groupId>org.slf4j</groupId>
271         <artifactId>slf4j-api</artifactId>
272         <version>1.7.25</version>
273       </dependency>
274       <dependency>
275         <groupId>org.slf4j</groupId>
276         <artifactId>slf4j-log4j12</artifactId>
277         <version>1.7.25</version>
278       </dependency>
279       <dependency>
280         <groupId>org.slf4j</groupId>
281         <artifactId>log4j-over-slf4j</artifactId>
282         <version>1.7.25</version>
283       </dependency>
284       <dependency>
285         <groupId>org.slf4j</groupId>
286         <artifactId>slf4j-simple</artifactId>
287         <version>1.7.25</version>
288         <scope>test</scope>
289       </dependency>
290       <dependency>
291         <groupId>ch.qos.logback</groupId>
292         <artifactId>logback-core</artifactId>
293         <version>1.2.3</version>
294       </dependency>
295       <dependency>
296         <groupId>ch.qos.logback</groupId>
297         <artifactId>logback-classic</artifactId>
298         <version>1.2.3</version>
299       </dependency>
300       <dependency>
301         <groupId>com.google.guava</groupId>
302         <artifactId>guava</artifactId>
303         <version>23.6-jre</version>
304         <exclusions>
305           <exclusion>
306             <groupId>com.google.code.findbugs</groupId>
307             <!-- Use com.google.code.findbugs:annotations instead of jsr305 -->
308             <artifactId>jsr305</artifactId>
309           </exclusion>
310         </exclusions>
311       </dependency>
312       <dependency>
313         <groupId>com.google.guava</groupId>
314         <artifactId>guava-testlib</artifactId>
315         <version>23.6-jre</version>
316         <scope>test</scope>
317         <exclusions>
318           <exclusion>
319             <groupId>com.google.code.findbugs</groupId>
320             <!-- Use com.google.code.findbugs:annotations instead of jsr305 -->
321             <artifactId>jsr305</artifactId>
322           </exclusion>
323         </exclusions>
324       </dependency>
325       <dependency>
326         <groupId>com.mycila.guice.extensions</groupId>
327         <artifactId>mycila-guice-jsr250</artifactId>
328         <!-- Make sure this version is in sync with the guice one below -->
329         <version>4.0.rc1</version>
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.7</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.5.0</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       <!-- ThreeTen-Extra, date/time complements -->
1041       <dependency>
1042         <groupId>org.threeten</groupId>
1043         <artifactId>threeten-extra</artifactId>
1044         <version>1.3.2</version>
1045       </dependency>
1046
1047       <!-- When updating this version, consider antl4-maven-plugin below -->
1048       <dependency>
1049         <groupId>org.antlr</groupId>
1050         <artifactId>antlr4-runtime</artifactId>
1051         <version>4.7.1</version>
1052       </dependency>
1053       <!-- Aries' Blueprint version should be kept in sync to the version actually
1054            used by our ${karaf[4].version} ... please bump this when increasing that.
1055            TODO Find a smarter way to inherit this from a (TBD..) Karaf artifacts BOM! -->
1056       <dependency>
1057         <groupId>org.apache.aries.blueprint</groupId>
1058         <artifactId>org.apache.aries.blueprint.core</artifactId>
1059         <version>1.7.1</version>
1060       </dependency>
1061
1062     </dependencies>
1063   </dependencyManagement>
1064
1065   <dependencies>
1066     <!-- Karaf provides SL4FJ encapsulation -->
1067     <dependency>
1068       <groupId>org.slf4j</groupId>
1069       <artifactId>slf4j-api</artifactId>
1070       <scope>provided</scope>
1071     </dependency>
1072
1073     <dependency>
1074       <groupId>org.slf4j</groupId>
1075       <artifactId>slf4j-simple</artifactId>
1076       <scope>test</scope>
1077     </dependency>
1078
1079     <!-- Enable useful code quality annotations everywhere -->
1080     <dependency>
1081       <groupId>com.google.code.findbugs</groupId>
1082       <artifactId>annotations</artifactId>
1083       <scope>provided</scope>
1084     </dependency>
1085     <dependency>
1086       <groupId>org.eclipse.jdt</groupId>
1087       <artifactId>org.eclipse.jdt.annotation</artifactId>
1088       <scope>provided</scope>
1089     </dependency>
1090   </dependencies>
1091
1092   <build>
1093     <pluginManagement>
1094       <plugins>
1095         <!-- Official maven plugins, alpha-sorted by artifactId.
1096              We do not need to specify the groupId. -->
1097         <plugin>
1098           <artifactId>maven-antrun-plugin</artifactId>
1099           <version>1.8</version>
1100         </plugin>
1101         <plugin>
1102           <artifactId>maven-checkstyle-plugin</artifactId>
1103           <version>${checkstyle.version}</version>
1104           <dependencies>
1105             <dependency>
1106               <groupId>com.puppycrawl.tools</groupId>
1107               <artifactId>checkstyle</artifactId>
1108               <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
1109               <version>8.4</version>
1110             </dependency>
1111             <dependency>
1112               <groupId>org.opendaylight.odlparent</groupId>
1113               <artifactId>checkstyle</artifactId>
1114               <version>4.0.0-SNAPSHOT</version>
1115             </dependency>
1116             <dependency>
1117               <groupId>org.opendaylight.odlparent</groupId>
1118               <artifactId>odl-license</artifactId>
1119               <version>4.0.0-SNAPSHOT</version>
1120             </dependency>
1121             <dependency>
1122               <groupId>com.github.sevntu-checkstyle</groupId>
1123               <artifactId>sevntu-checkstyle-maven-plugin</artifactId>
1124               <version>1.24.2</version>
1125             </dependency>
1126           </dependencies>
1127           <configuration>
1128             <configLocation>odl_checks.xml</configLocation>
1129             <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
1130             <!-- <sourceDirectory> is needed so that checkstyle ignores the
1131                  generated sources directory -->
1132             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
1133             <includeResources>true</includeResources>
1134             <includeTestSourceDirectory>true</includeTestSourceDirectory>
1135             <includeTestResources>true</includeTestResources>
1136             <includes>**\/*.java, **\/*.xtend</includes>
1137             <excludes>
1138               org/opendaylight/yang/gen/**,
1139               **/protobuff/messages/**,
1140               **/thrift/gen/*.java
1141             </excludes>
1142             <failsOnError>false</failsOnError>
1143             <consoleOutput>true</consoleOutput>
1144           </configuration>
1145           <executions>
1146             <execution>
1147               <id>check-license</id>
1148               <goals>
1149                 <goal>check</goal>
1150               </goals>
1151               <phase>process-sources</phase>
1152               <configuration>
1153                 <configLocation>check-license.xml</configLocation>
1154                 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
1155                 <includeResources>false</includeResources>
1156                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
1157                 <includeTestResources>false</includeTestResources>
1158                 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
1159                 <excludes>
1160                   org/opendaylight/yang/gen/**,
1161                   **/protobuff/messages/**,
1162                   **/thrift/gen/*.java
1163                 </excludes>
1164                 <failsOnError>false</failsOnError>
1165                 <consoleOutput>true</consoleOutput>
1166               </configuration>
1167             </execution>
1168             <execution>
1169               <goals>
1170                 <goal>check</goal>
1171               </goals>
1172               <phase>process-sources</phase>
1173             </execution>
1174           </executions>
1175         </plugin>
1176         <plugin>
1177           <groupId>org.apache.maven.plugins</groupId>
1178           <artifactId>maven-pmd-plugin</artifactId>
1179           <version>3.8</version>
1180           <executions>
1181             <execution>
1182               <id>cpd</id>
1183               <phase>process-sources</phase>
1184               <goals>
1185                 <goal>cpd-check</goal>
1186               </goals>
1187               <configuration>
1188                 <failOnViolation>${pmd.cpd.fail}</failOnViolation>
1189                 <!-- 100 "tokens" here correspond to approx. 5-10 lines of code -->
1190                 <minimumTokens>101</minimumTokens>
1191                 <printFailingErrors>true</printFailingErrors>
1192                 <excludeRoots>
1193                   <!-- FIXME: this should be a wildcard, but PMD is brain-damaged and does
1194                               not understand path prefixes nor wildcards. Details are available
1195                               at http://stackoverflow.com/questions/15647771/pmd-exclude-not-working
1196                               Hence people introducing new generated sources have to include
1197                               PMD config too.
1198                    -->
1199                   <excludeRoot>${project.build.directory}/generated-sources</excludeRoot>
1200                   <excludeRoot>${project.build.directory}/generated-test-sources</excludeRoot>
1201                 </excludeRoots>
1202                 <linkXRef>false</linkXRef>
1203               </configuration>
1204             </execution>
1205           </executions>
1206         </plugin>
1207         <plugin>
1208           <artifactId>maven-compiler-plugin</artifactId>
1209           <version>${maven.compile.plugin.version}</version>
1210           <configuration>
1211             <source>1.8</source>
1212             <target>1.8</target>
1213             <showWarnings>true</showWarnings>
1214             <compilerArgs>
1215               <arg>-parameters</arg>
1216               <arg>-Xlint:deprecation</arg>
1217             </compilerArgs>
1218           </configuration>
1219         </plugin>
1220         <plugin>
1221           <artifactId>maven-enforcer-plugin</artifactId>
1222           <version>${enforcer.version}</version>
1223         </plugin>
1224         <plugin>
1225           <artifactId>maven-failsafe-plugin</artifactId>
1226           <version>${failsafe.version}</version>
1227         </plugin>
1228         <plugin>
1229           <artifactId>maven-invoker-plugin</artifactId>
1230           <version>2.0.0</version>
1231         </plugin>
1232         <plugin>
1233           <artifactId>maven-jar-plugin</artifactId>
1234           <version>3.0.2</version>
1235         </plugin>
1236         <plugin>
1237           <artifactId>maven-dependency-plugin</artifactId>
1238           <executions>
1239             <execution>
1240               <id>unpack-license</id>
1241               <phase>generate-resources</phase>
1242               <goals><goal>unpack</goal></goals>
1243               <configuration>
1244                 <artifactItems>
1245                   <artifactItem>
1246                     <groupId>org.opendaylight.odlparent</groupId>
1247                     <artifactId>odl-license</artifactId>
1248                     <version>4.0.0-SNAPSHOT</version>
1249                   </artifactItem>
1250                 </artifactItems>
1251                 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1252                 <excludes>META-INF/**</excludes>
1253               </configuration>
1254             </execution>
1255           </executions>
1256         </plugin>
1257
1258         <plugin>
1259           <artifactId>maven-plugin-plugin</artifactId>
1260           <version>${maven.plugin.version}</version>
1261         </plugin>
1262
1263         <plugin>
1264           <artifactId>maven-remote-resources-plugin</artifactId>
1265           <version>1.5</version>
1266         </plugin>
1267         <plugin>
1268           <artifactId>maven-resources-plugin</artifactId>
1269           <version>3.0.1</version>
1270         </plugin>
1271         <plugin>
1272           <artifactId>maven-shade-plugin</artifactId>
1273           <version>3.1.0</version>
1274         </plugin>
1275         <plugin>
1276           <artifactId>maven-source-plugin</artifactId>
1277           <version>3.0.1</version>
1278           <executions>
1279             <execution>
1280               <id>attach-sources</id>
1281               <phase>verify</phase>
1282               <goals>
1283                 <goal>jar-no-fork</goal>
1284               </goals>
1285             </execution>
1286           </executions>
1287         </plugin>
1288         <plugin>
1289           <artifactId>maven-surefire-plugin</artifactId>
1290           <version>${maven.surefire.version}</version>
1291           <configuration>
1292             <redirectTestOutputToFile>true</redirectTestOutputToFile>
1293             <trimStackTrace>false</trimStackTrace>
1294           </configuration>
1295         </plugin>
1296
1297         <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1298         <plugin>
1299           <!-- Support Blueprint XML construction using annotations -->
1300           <groupId>org.apache.aries.blueprint</groupId>
1301           <artifactId>blueprint-maven-plugin</artifactId>
1302           <version>1.4.0</version>
1303           <configuration>
1304             <scanPaths>
1305               <scanPath>org.opendaylight</scanPath>
1306             </scanPaths>
1307           </configuration>
1308           <dependencies>
1309             <dependency>
1310               <!-- See https://issues.apache.org/jira/browse/ARIES-1596 -->
1311               <!-- This shouldn't be necessary with plugin version 1.5.0 -->
1312               <groupId>org.apache.xbean</groupId>
1313               <artifactId>xbean-finder-shaded</artifactId>
1314               <version>4.5</version>
1315             </dependency>
1316           </dependencies>
1317           <executions>
1318             <execution>
1319               <goals>
1320                 <goal>blueprint-generate</goal>
1321               </goals>
1322             </execution>
1323           </executions>
1324         </plugin>
1325
1326         <plugin>
1327           <groupId>org.apache.felix</groupId>
1328           <artifactId>maven-bundle-plugin</artifactId>
1329           <version>${maven.bundle.version}</version>
1330           <extensions>true</extensions>
1331           <configuration>
1332             <instructions>
1333               <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1334                    so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1335                    and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present.  -->
1336               <Include-Resource>{maven-resources},${project.build.directory}/classes/LICENSE,META-INF/git.properties=-${project.build.directory}/classes/META-INF/git.properties</Include-Resource>
1337             </instructions>
1338           </configuration>
1339         </plugin>
1340
1341         <plugin>
1342           <groupId>org.apache.karaf.tooling</groupId>
1343           <artifactId>karaf-maven-plugin</artifactId>
1344           <version>${karaf.version}</version>
1345         </plugin>
1346
1347         <plugin>
1348           <groupId>org.apache.servicemix.tooling</groupId>
1349           <artifactId>depends-maven-plugin</artifactId>
1350           <version>1.4.0</version>
1351           <executions>
1352             <execution>
1353               <id>generate-depends-file</id>
1354               <goals>
1355                 <goal>generate-depends-file</goal>
1356               </goals>
1357             </execution>
1358           </executions>
1359         </plugin>
1360
1361         <plugin>
1362           <groupId>org.codehaus.enunciate</groupId>
1363           <artifactId>maven-enunciate-plugin</artifactId>
1364           <version>${enunciate.version}</version>
1365         </plugin>
1366         <plugin>
1367           <groupId>org.codehaus.groovy.maven</groupId>
1368           <artifactId>gmaven-plugin</artifactId>
1369           <version>1.0</version>
1370         </plugin>
1371         <plugin>
1372           <groupId>org.codehaus.mojo</groupId>
1373           <artifactId>build-helper-maven-plugin</artifactId>
1374           <version>1.12</version>
1375         </plugin>
1376         <plugin>
1377           <groupId>org.codehaus.mojo</groupId>
1378           <artifactId>findbugs-maven-plugin</artifactId>
1379           <version>3.0.5</version>
1380           <dependencies>
1381             <dependency>
1382               <groupId>org.opendaylight.odlparent</groupId>
1383               <artifactId>findbugs</artifactId>
1384               <version>4.0.0-SNAPSHOT</version>
1385             </dependency>
1386           </dependencies>
1387           <configuration>
1388             <plugins>
1389               <plugin>
1390                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1391                 <artifactId>bug-pattern</artifactId>
1392                 <!-- NOTE: This version MUST be kept in sync with the same version in the new spotbugs-maven-plugin below -->
1393                 <version>1.4.0</version>
1394               </plugin>
1395             </plugins>
1396             <!--
1397               Enables analysis which takes more memory but finds more bugs.
1398               If you run out of memory, changes the value of the effort element
1399               to 'Low'.
1400             -->
1401             <effort>Max</effort>
1402             <!-- Reports all bugs (other values are medium and max) -->
1403             <threshold>Low</threshold>
1404             <!-- Build doesn't fail if problems are found -->
1405             <failOnError>false</failOnError>
1406             <!-- References the excluded rules -->
1407             <excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
1408             <!-- Produces XML report -->
1409             <xmlOutput>true</xmlOutput>
1410             <!-- Configures the directory in which the XML report is created -->
1411             <findbugsXmlOutputDirectory>${project.build.directory}/findbugs</findbugsXmlOutputDirectory>
1412           </configuration>
1413           <executions>
1414               <!--
1415                 Ensures that FindBugs inspects source code when project is compiled.
1416               -->
1417               <execution>
1418                 <id>analyze-compile</id>
1419                 <phase>compile</phase>
1420                 <goals>
1421                   <goal>check</goal>
1422                 </goals>
1423               </execution>
1424           </executions>
1425         </plugin>
1426         <plugin>
1427           <groupId>com.github.spotbugs</groupId>
1428           <artifactId>spotbugs-maven-plugin</artifactId>
1429           <version>3.1.1</version>
1430           <dependencies>
1431             <dependency>
1432               <groupId>com.github.spotbugs</groupId>
1433               <artifactId>spotbugs</artifactId>
1434               <version>3.1.1</version>
1435             </dependency>
1436             <dependency>
1437               <groupId>org.opendaylight.odlparent</groupId>
1438               <artifactId>findbugs</artifactId>
1439               <version>4.0.0-SNAPSHOT</version>
1440             </dependency>
1441           </dependencies>
1442           <configuration>
1443             <plugins>
1444               <plugin>
1445                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1446                 <artifactId>bug-pattern</artifactId>
1447                 <!-- NOTE: This version MUST be kept in sync with the same version in the old findbugs-maven-plugin above -->
1448                 <version>1.4.0</version>
1449               </plugin>
1450             </plugins>
1451             <!--
1452               Enables analysis which takes more memory but finds more bugs.
1453               If you run out of memory, changes the value of the effort element
1454               to 'Low'.
1455             -->
1456             <effort>Max</effort>
1457             <!-- Reports all bugs (other values are medium and max) -->
1458             <threshold>Low</threshold>
1459             <!-- Build doesn't fail if problems are found -->
1460             <failOnError>false</failOnError>
1461             <!-- References the excluded rules -->
1462             <excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
1463             <!-- Produces XML report -->
1464             <xmlOutput>true</xmlOutput>
1465             <!-- Configures the directory in which the XML report is created -->
1466             <findbugsXmlOutputDirectory>${project.build.directory}/findbugs</findbugsXmlOutputDirectory>
1467           </configuration>
1468           <executions>
1469             <!--
1470               Ensures that SpotBugs inspects source code when project is compiled.
1471             -->
1472             <execution>
1473               <id>analyze-compile</id>
1474               <phase>compile</phase>
1475               <goals>
1476                 <goal>check</goal>
1477               </goals>
1478             </execution>
1479           </executions>
1480         </plugin>
1481         <plugin>
1482           <groupId>org.codehaus.mojo</groupId>
1483           <artifactId>properties-maven-plugin</artifactId>
1484           <version>${propertymavenplugin.version}</version>
1485         </plugin>
1486         <plugin>
1487           <groupId>org.eclipse.xtend</groupId>
1488           <artifactId>xtend-maven-plugin</artifactId>
1489           <!-- NOTE: This version MUST be kept in sync with the Xtend version in <dependencyManagement> -->
1490           <version>2.13.0</version>
1491           <executions>
1492             <execution>
1493               <goals>
1494                 <goal>compile</goal>
1495                 <goal>testCompile</goal>
1496               </goals>
1497               <configuration>
1498                 <outputDirectory>${project.build.directory}/generated-sources/xtend</outputDirectory>
1499                 <testOutputDirectory>${project.build.directory}/generated-test-sources/xtend</testOutputDirectory>
1500               </configuration>
1501             </execution>
1502           </executions>
1503         </plugin>
1504         <plugin>
1505           <groupId>org.eclipse.m2e</groupId>
1506           <artifactId>lifecycle-mapping</artifactId>
1507           <version>1.0.0</version>
1508           <configuration>
1509             <lifecycleMappingMetadata>
1510               <pluginExecutions>
1511                 <pluginExecution>
1512                   <pluginExecutionFilter>
1513                     <groupId>org.apache.felix</groupId>
1514                     <artifactId>maven-bundle-plugin</artifactId>
1515                     <versionRange>[1.0,)</versionRange>
1516                     <goals>
1517                       <goal>manifest</goal>
1518                     </goals>
1519                   </pluginExecutionFilter>
1520                   <action>
1521                     <execute/>
1522                   </action>
1523                 </pluginExecution>
1524                 <pluginExecution>
1525                   <pluginExecutionFilter>
1526                     <groupId>org.apache.maven.plugins</groupId>
1527                     <artifactId>maven-enforcer-plugin</artifactId>
1528                     <versionRange>[1.0.0,)</versionRange>
1529                     <goals>
1530                       <goal>enforce</goal>
1531                     </goals>
1532                   </pluginExecutionFilter>
1533                   <action>
1534                     <ignore/>
1535                   </action>
1536                 </pluginExecution>
1537                 <pluginExecution>
1538                   <pluginExecutionFilter>
1539                     <groupId>org.apache.maven.plugins</groupId>
1540                     <artifactId>maven-dependency-plugin</artifactId>
1541                     <versionRange>[2.10,)</versionRange>
1542                     <goals>
1543                       <goal>unpack</goal>
1544                     </goals>
1545                   </pluginExecutionFilter>
1546                   <action>
1547                     <ignore/>
1548                   </action>
1549                 </pluginExecution>
1550                 <pluginExecution>
1551                   <pluginExecutionFilter>
1552                     <groupId>org.apache.maven.plugins</groupId>
1553                     <artifactId>maven-pmd-plugin</artifactId>
1554                     <versionRange>[3.6,)</versionRange>
1555                     <goals>
1556                       <goal>cpd-check</goal>
1557                     </goals>
1558                   </pluginExecutionFilter>
1559                   <action>
1560                     <ignore/>
1561                   </action>
1562                 </pluginExecution>
1563                 <!-- The plugin will eventually be removed, remove this too at that point -->
1564                 <pluginExecution>
1565                   <pluginExecutionFilter>
1566                     <groupId>org.apache.maven.plugins</groupId>
1567                     <artifactId>maven-antrun-plugin</artifactId>
1568                     <versionRange>[1.8,)</versionRange>
1569                     <goals>
1570                       <goal>run</goal>
1571                     </goals>
1572                   </pluginExecutionFilter>
1573                   <action>
1574                     <ignore/>
1575                   </action>
1576                 </pluginExecution>
1577                 <pluginExecution>
1578                   <pluginExecutionFilter>
1579                     <groupId>org.apache.servicemix.tooling</groupId>
1580                     <artifactId>depends-maven-plugin</artifactId>
1581                     <versionRange>[1.2,)</versionRange>
1582                     <goals>
1583                       <goal>generate-depends-file</goal>
1584                     </goals>
1585                   </pluginExecutionFilter>
1586                   <action>
1587                     <execute/>
1588                   </action>
1589                 </pluginExecution>
1590                 <pluginExecution>
1591                   <pluginExecutionFilter>
1592                     <groupId>org.jacoco</groupId>
1593                     <artifactId>jacoco-maven-plugin</artifactId>
1594                     <versionRange>[0.7.0,)</versionRange>
1595                     <goals>
1596                       <goal>prepare-agent</goal>
1597                       <goal>report</goal>
1598                     </goals>
1599                   </pluginExecutionFilter>
1600                   <action>
1601                     <ignore/>
1602                   </action>
1603                 </pluginExecution>
1604
1605                 <pluginExecution>
1606                   <pluginExecutionFilter>
1607                     <groupId>org.ops4j.pax.exam</groupId>
1608                     <artifactId>maven-paxexam-plugin</artifactId>
1609                     <versionRange>[1.2.4,)</versionRange>
1610                     <goals>
1611                       <goal>generate-depends-file</goal>
1612                     </goals>
1613                   </pluginExecutionFilter>
1614                   <action>
1615                     <ignore/>
1616                   </action>
1617                 </pluginExecution>
1618
1619                 <pluginExecution>
1620                   <pluginExecutionFilter>
1621                     <groupId>org.basepom.maven</groupId>
1622                     <artifactId>
1623                       duplicate-finder-maven-plugin
1624                     </artifactId>
1625                     <versionRange>[1.2.1,)</versionRange>
1626                     <goals>
1627                       <goal>check</goal>
1628                     </goals>
1629                   </pluginExecutionFilter>
1630                   <action>
1631                     <ignore></ignore>
1632                   </action>
1633                 </pluginExecution>
1634               </pluginExecutions>
1635             </lifecycleMappingMetadata>
1636           </configuration>
1637         </plugin>
1638
1639         <plugin>
1640           <groupId>org.jacoco</groupId>
1641           <artifactId>jacoco-maven-plugin</artifactId>
1642           <version>${jacoco.version}</version>
1643           <configuration>
1644             <!-- Note: This exclusion list should match <sonar.exclusions>
1645                        property above -->
1646             <excludes>
1647               <exclude>**/gen/**</exclude>
1648               <exclude>**/generated-sources/**</exclude>
1649               <exclude>**/generated-test-sources/**</exclude>
1650               <exclude>**/yang-gen/**</exclude>
1651               <exclude>**/yang-gen-config/**</exclude>
1652               <exclude>**/yang-gen-sal/**</exclude>
1653               <exclude>**/yang-gen-code/**</exclude>
1654               <exclude>**/pax/**</exclude>
1655             </excludes>
1656           </configuration>
1657         </plugin>
1658
1659         <plugin>
1660           <groupId>org.ops4j.pax.exam</groupId>
1661           <artifactId>maven-paxexam-plugin</artifactId>
1662           <version>1.2.4</version>
1663         </plugin>
1664
1665         <plugin>
1666           <groupId>org.codehaus.mojo</groupId>
1667           <artifactId>jdepend-maven-plugin</artifactId>
1668           <version>2.0</version>
1669           <executions>
1670             <execution>
1671               <phase>site</phase>
1672               <goals>
1673                 <goal>generate-no-fork</goal>
1674               </goals>
1675             </execution>
1676           </executions>
1677         </plugin>
1678
1679         <!-- When updating this version, consider antl4-runtime above -->
1680         <plugin>
1681           <groupId>org.antlr</groupId>
1682           <artifactId>antlr4-maven-plugin</artifactId>
1683           <version>4.7.1</version>
1684         </plugin>
1685       </plugins>
1686     </pluginManagement>
1687
1688     <plugins>
1689       <plugin>
1690         <artifactId>maven-enforcer-plugin</artifactId>
1691         <executions>
1692           <execution>
1693             <id>enforce-banned-dependencies</id>
1694             <goals>
1695               <goal>enforce</goal>
1696             </goals>
1697             <configuration>
1698               <rules>
1699                 <bannedDependencies>
1700                   <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>
1701                   <excludes>
1702                     <exclude>org.mockito:mockito-all</exclude>
1703                     <!-- https://github.com/facebook/facebook-oss-pom/blob/master/pom.xml#L331-L336 -->
1704                     <!-- Clashes with com.google.code.findbugs:annotations and having both jars -->
1705                     <!-- as a dependency then clashes with the dependency checker (because it   -->
1706                     <!-- is not very good at handling annotations). Use the annotations jar     -->
1707                     <!-- instead which has all jsr305 annotations and the additional findbugs   -->
1708                     <!-- stuff. -->
1709                     <exclude>com.google.code.findbugs:jsr305</exclude>
1710                     <exclude>net.jcip:jcip-annotations</exclude>
1711                   </excludes>
1712                 </bannedDependencies>
1713               </rules>
1714               <fail>true</fail>
1715             </configuration>
1716           </execution>
1717         </executions>
1718       </plugin>
1719       <plugin>
1720         <groupId>org.basepom.maven</groupId>
1721         <artifactId>duplicate-finder-maven-plugin</artifactId>
1722         <version>1.2.1</version>
1723         <executions>
1724           <execution>
1725             <id>find-duplicate-classpath-entries</id>
1726             <phase>verify</phase>
1727             <goals>
1728               <goal>check</goal>
1729             </goals>
1730           </execution>
1731         </executions>
1732         <configuration>
1733             <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1734             <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1735             <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1736             <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1737             <printEqualFiles>false</printEqualFiles>
1738             <quiet>true</quiet>
1739             <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1740                  as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1741                  we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1742                  also ignore: -->
1743             <ignoredResourcePatterns>
1744               <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1745               <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1746               <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1747               <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1748               <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1749               <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1750             </ignoredResourcePatterns>
1751             <ignoredDependencies>
1752               <ignoredDependency>
1753                 <groupId>org.slf4j</groupId>
1754                 <artifactId>slf4j-simple</artifactId>
1755               </ignoredDependency>
1756               <ignoredDependency>
1757                 <groupId>org.opendaylight.odlparent</groupId>
1758                 <artifactId>opendaylight-karaf-empty</artifactId>
1759               </ignoredDependency>
1760             </ignoredDependencies>
1761         </configuration>
1762       </plugin>
1763       <plugin>
1764         <artifactId>maven-dependency-plugin</artifactId>
1765       </plugin>
1766       <plugin>
1767         <artifactId>maven-checkstyle-plugin</artifactId>
1768       </plugin>
1769       <plugin>
1770           <artifactId>maven-pmd-plugin</artifactId>
1771       </plugin>
1772       <plugin>
1773         <artifactId>maven-source-plugin</artifactId>
1774       </plugin>
1775       <plugin>
1776         <artifactId>maven-javadoc-plugin</artifactId>
1777       </plugin>
1778
1779       <!-- Jacoco / Sonar -->
1780       <plugin>
1781         <groupId>org.jacoco</groupId>
1782         <artifactId>jacoco-maven-plugin</artifactId>
1783         <executions>
1784           <execution>
1785             <id>pre-unit-test</id>
1786             <goals>
1787               <goal>prepare-agent</goal>
1788             </goals>
1789             <configuration>
1790               <destFile>${sonar.jacoco.reportPath}</destFile>
1791             </configuration>
1792           </execution>
1793           <execution>
1794             <id>post-unit-test</id>
1795             <goals>
1796               <goal>report</goal>
1797             </goals>
1798             <configuration>
1799               <dataFile>${sonar.jacoco.reportPath}</dataFile>
1800             </configuration>
1801           </execution>
1802         </executions>
1803       </plugin>
1804
1805       <plugin>
1806         <groupId>com.alexecollins.maven.plugin</groupId>
1807         <artifactId>script-maven-plugin</artifactId>
1808         <version>1.0.0</version>
1809         <executions>
1810            <execution>
1811              <phase>prepare-package</phase>
1812              <goals>
1813                <goal>execute</goal>
1814              </goals>
1815              <configuration>
1816                <script>
1817                  // BeanShell is 2005-ish and thus doesn't support generics, varargs, try-with-resources or lambdas, so:
1818                  // (If we do this kind of inline code in pom.xml more often, we shold have a new simple module in
1819                  //  odl-parent, which has *.java that we compile, and then just depend on it here and call one-line
1820                  //  static class methods only - it will be MUCH easier to write!)
1821                  void copy(File root, String glob, File target) {
1822                      java.nio.file.DirectoryStream dirStream = java.nio.file.Files.newDirectoryStream(root.toPath(), glob);
1823                      Iterator dirStreamIterator = dirStream.iterator();
1824                      while (dirStreamIterator.hasNext()) {
1825                          java.nio.file.Path path = dirStreamIterator.next();
1826                          java.nio.file.Files.copy(path, new File(target, path.toFile().getName()).toPath(),
1827                              new java.nio.file.CopyOption[] {
1828                                  java.nio.file.StandardCopyOption.REPLACE_EXISTING,
1829                                  java.nio.file.StandardCopyOption.COPY_ATTRIBUTES
1830                              }
1831                          );
1832                      }
1833                      dirStream.close();
1834                  }
1835
1836                  File gitRepoRootDir = project.basedir;
1837                  while (!new File(gitRepoRootDir, ".git").exists() &amp;&amp; gitRepoRootDir.getParentFile() != null) {
1838                      gitRepoRootDir = gitRepoRootDir.getParentFile();
1839                  }
1840
1841                  File target = new File(project.build.outputDirectory);
1842                  target.mkdirs();
1843                  copy(gitRepoRootDir, "README*", target);
1844                  copy(gitRepoRootDir, "CONTRIBUTING*", target);
1845                  copy(gitRepoRootDir, "PROJECT_INFO.yaml", target);
1846                </script>
1847              </configuration>
1848            </execution>
1849          </executions>
1850          <dependencies>
1851            <dependency>
1852              <groupId>org.apache-extras.beanshell</groupId>
1853              <artifactId>bsh</artifactId>
1854              <version>2.0b6</version>
1855            </dependency>
1856          </dependencies>
1857       </plugin>
1858
1859       <!-- Blueprint dependency injection -->
1860       <!-- Remove when upgrading to plugin 1.5.0, and use
1861            <configuration><generatedDir>org/opendaylight/blueprint/</...></...>
1862            See https://issues.apache.org/jira/browse/ARIES-1597
1863            BUT beware that the directory is now conditional... -->
1864       <plugin>
1865         <artifactId>maven-antrun-plugin</artifactId>
1866         <executions>
1867           <!-- This should only run once, in the process-classes phase; but we need it to run after
1868                process-classes in child projects. Attaching to process-test-classes and prepare-package
1869                ensures that the file will be moved whether tests are skipped or not. -->
1870           <execution>
1871             <id>move-autowire-test</id>
1872             <phase>process-test-classes</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           <execution>
1895             <id>move-autowire-package</id>
1896             <phase>prepare-package</phase>
1897             <goals>
1898               <goal>run</goal>
1899             </goals>
1900             <configuration>
1901               <target>
1902                 <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
1903                 <if>
1904                   <available file="${project.basedir}/src/main/resources/org/opendaylight/blueprint" type="dir"/>
1905                   <then>
1906                     <echo>Moving autowire.xml to org/opendaylight/blueprint</echo>
1907                     <move file="${project.build.directory}/generated-resources/OSGI-INF/blueprint/autowire.xml"
1908                           todir="${project.build.directory}/generated-resources/org/opendaylight/blueprint"
1909                           failonerror="false" quiet="true" />
1910                   </then>
1911                   <else>
1912                     <echo>NOT moving autowire.xml (to org/opendaylight/blueprint)</echo>
1913                   </else>
1914                 </if>
1915               </target>
1916             </configuration>
1917           </execution>
1918         </executions>
1919         <dependencies>
1920           <dependency>
1921             <groupId>ant-contrib</groupId>
1922             <artifactId>ant-contrib</artifactId>
1923             <version>1.0b3</version>
1924             <exclusions>
1925               <exclusion>
1926                 <groupId>ant</groupId>
1927                 <artifactId>ant</artifactId>
1928               </exclusion>
1929             </exclusions>
1930           </dependency>
1931           <dependency>
1932             <groupId>org.apache.ant</groupId>
1933             <artifactId>ant-nodeps</artifactId>
1934             <version>1.8.1</version>
1935           </dependency>
1936         </dependencies>
1937       </plugin>
1938     </plugins>
1939   </build>
1940
1941   <reporting>
1942     <plugins>
1943       <plugin>
1944         <artifactId>maven-checkstyle-plugin</artifactId>
1945         <version>${checkstyle.version}</version>
1946       </plugin>
1947
1948       <!-- FIXME: activate this
1949       <plugin>
1950         <artifactId>maven-project-info-reports-plugin</artifactId>
1951         <version>${projectinfo}</version>
1952       </plugin-->
1953       <plugin>
1954         <groupId>org.codehaus.mojo</groupId>
1955         <artifactId>jdepend-maven-plugin</artifactId>
1956         <reportSets>
1957           <reportSet>
1958             <reports>
1959               <report>generate-no-fork</report>
1960             </reports>
1961           </reportSet>
1962         </reportSets>
1963       </plugin>
1964     </plugins>
1965   </reporting>
1966
1967   <!--
1968     Maven Site Configuration
1969
1970     The following configuration is necessary for maven-site-plugin to
1971     correctly identify the correct deployment path for OpenDaylight Maven
1972     sites.
1973   -->
1974   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
1975
1976   <distributionManagement>
1977     <site>
1978       <id>opendaylight-site</id>
1979       <url>${nexus.site.url}/${project.artifactId}/</url>
1980     </site>
1981   </distributionManagement>
1982
1983 </project>
1984