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