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