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