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