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