Bump immutables.org to 2.7.4
[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.15</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       <!-- JAXB for Java 11+ -->
1121       <!--
1122            FIXME: bump this to 2.3.0 once we require Java 9+
1123            FIXME: bump this to whatever karaf provides once we require Java 11+
1124       -->
1125       <dependency>
1126         <groupId>javax.xml.bind</groupId>
1127         <artifactId>jaxb-api</artifactId>
1128         <version>2.2.8</version>
1129         <exclusions>
1130           <exclusion>
1131             <!-- Provided by JRE -->
1132             <groupId>javax.xml.stream</groupId>
1133             <artifactId>stax-api</artifactId>
1134           </exclusion>
1135         </exclusions>
1136       </dependency>
1137       <dependency>
1138         <groupId>com.sun.xml.bind</groupId>
1139         <artifactId>jaxb-core</artifactId>
1140         <version>2.2.11</version>
1141       </dependency>
1142       <dependency>
1143         <groupId>com.sun.xml.bind</groupId>
1144         <artifactId>jaxb-impl</artifactId>
1145         <version>2.2.11</version>
1146       </dependency>
1147     </dependencies>
1148   </dependencyManagement>
1149
1150   <dependencies>
1151     <!--
1152          We expect slf4j-api to be provided by the platform.
1153          Karaf provides it, other containers need to provide it themselves.
1154     -->
1155     <dependency>
1156       <groupId>org.slf4j</groupId>
1157       <artifactId>slf4j-api</artifactId>
1158       <scope>provided</scope>
1159     </dependency>
1160
1161     <!--
1162           Enable useful code quality annotations everywhere. Since these annotations
1163           are not required at runtime.
1164     -->
1165     <dependency>
1166       <groupId>com.google.code.findbugs</groupId>
1167       <artifactId>annotations</artifactId>
1168       <scope>provided</scope>
1169       <!-- Contains retention=RUNTIME annotations, which are not really needed -->
1170       <optional>true</optional>
1171     </dependency>
1172     <dependency>
1173       <groupId>org.eclipse.jdt</groupId>
1174       <artifactId>org.eclipse.jdt.annotation</artifactId>
1175       <scope>provided</scope>
1176     </dependency>
1177
1178     <!--
1179           Testing output should be routed through slf4j-simple.
1180     -->
1181     <dependency>
1182       <groupId>org.slf4j</groupId>
1183       <artifactId>slf4j-simple</artifactId>
1184       <scope>test</scope>
1185     </dependency>
1186
1187     <!--
1188           Unit tests can use JUnit + Mockito + Hamcrest by default.
1189     -->
1190     <dependency>
1191       <groupId>junit</groupId>
1192       <artifactId>junit</artifactId>
1193       <scope>test</scope>
1194     </dependency>
1195     <dependency>
1196       <groupId>org.mockito</groupId>
1197       <artifactId>mockito-core</artifactId>
1198       <scope>test</scope>
1199     </dependency>
1200   </dependencies>
1201
1202   <build>
1203     <pluginManagement>
1204       <plugins>
1205         <!-- Official maven plugins, alpha-sorted by artifactId.
1206              We do not need to specify the groupId. -->
1207         <plugin>
1208           <artifactId>maven-antrun-plugin</artifactId>
1209           <version>1.8</version>
1210         </plugin>
1211         <plugin>
1212           <artifactId>maven-checkstyle-plugin</artifactId>
1213           <version>3.0.0</version>
1214           <dependencies>
1215             <dependency>
1216               <groupId>com.puppycrawl.tools</groupId>
1217               <artifactId>checkstyle</artifactId>
1218               <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
1219               <version>8.15</version>
1220             </dependency>
1221             <dependency>
1222               <groupId>org.opendaylight.odlparent</groupId>
1223               <artifactId>checkstyle</artifactId>
1224               <version>4.0.8-SNAPSHOT</version>
1225             </dependency>
1226             <dependency>
1227               <groupId>org.opendaylight.odlparent</groupId>
1228               <artifactId>odl-license</artifactId>
1229               <version>4.0.8-SNAPSHOT</version>
1230             </dependency>
1231             <dependency>
1232               <groupId>com.github.sevntu-checkstyle</groupId>
1233               <artifactId>sevntu-checkstyle-maven-plugin</artifactId>
1234               <version>1.32.0</version>
1235             </dependency>
1236           </dependencies>
1237           <configuration>
1238             <configLocation>odl_checks.xml</configLocation>
1239             <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
1240             <!-- <sourceDirectories> are needed so that checkstyle ignores the
1241                  generated sources directory -->
1242             <sourceDirectories>
1243               <directory>${project.build.sourceDirectory}</directory>
1244             </sourceDirectories>
1245             <includeResources>true</includeResources>
1246             <includeTestSourceDirectory>true</includeTestSourceDirectory>
1247             <includeTestResources>true</includeTestResources>
1248             <includes>**\/*.java, **\/*.xtend</includes>
1249             <excludes>
1250               org/opendaylight/yang/gen/**,
1251               **/protobuff/messages/**,
1252               **/thrift/gen/*.java
1253             </excludes>
1254             <failsOnError>false</failsOnError>
1255             <consoleOutput>true</consoleOutput>
1256           </configuration>
1257           <executions>
1258             <execution>
1259               <id>check-license</id>
1260               <goals>
1261                 <goal>check</goal>
1262               </goals>
1263               <phase>process-sources</phase>
1264               <configuration>
1265                 <configLocation>check-license.xml</configLocation>
1266                 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
1267                 <includeResources>false</includeResources>
1268                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
1269                 <includeTestResources>false</includeTestResources>
1270                 <sourceDirectories>
1271                   <directory>${project.build.sourceDirectory}</directory>
1272                 </sourceDirectories>
1273                 <excludes>
1274                   org/opendaylight/yang/gen/**,
1275                   **/protobuff/messages/**,
1276                   **/thrift/gen/*.java
1277                 </excludes>
1278                 <failsOnError>false</failsOnError>
1279                 <consoleOutput>true</consoleOutput>
1280               </configuration>
1281             </execution>
1282             <execution>
1283               <goals>
1284                 <goal>check</goal>
1285               </goals>
1286               <phase>process-sources</phase>
1287             </execution>
1288           </executions>
1289         </plugin>
1290         <plugin>
1291           <groupId>org.apache.maven.plugins</groupId>
1292           <artifactId>maven-pmd-plugin</artifactId>
1293           <version>3.11.0</version>
1294           <executions>
1295             <execution>
1296               <id>cpd</id>
1297               <phase>process-sources</phase>
1298               <goals>
1299                 <goal>cpd-check</goal>
1300               </goals>
1301               <configuration>
1302                 <failOnViolation>${pmd.cpd.fail}</failOnViolation>
1303                 <!-- 100 "tokens" here correspond to approx. 5-10 lines of code -->
1304                 <minimumTokens>101</minimumTokens>
1305                 <printFailingErrors>true</printFailingErrors>
1306                 <excludeRoots>
1307                   <!-- FIXME: this should be a wildcard, but PMD is brain-damaged and does
1308                               not understand path prefixes nor wildcards. Details are available
1309                               at http://stackoverflow.com/questions/15647771/pmd-exclude-not-working
1310                               Hence people introducing new generated sources have to include
1311                               PMD config too.
1312                    -->
1313                   <excludeRoot>${project.build.directory}/generated-sources</excludeRoot>
1314                   <excludeRoot>${project.build.directory}/generated-test-sources</excludeRoot>
1315                 </excludeRoots>
1316                 <linkXRef>false</linkXRef>
1317               </configuration>
1318             </execution>
1319           </executions>
1320         </plugin>
1321         <plugin>
1322           <artifactId>maven-compiler-plugin</artifactId>
1323           <version>3.8.0</version>
1324           <configuration>
1325             <source>1.8</source>
1326             <target>1.8</target>
1327             <showWarnings>true</showWarnings>
1328             <compilerArgs>
1329               <arg>-parameters</arg>
1330               <arg>-Xlint:deprecation</arg>
1331               <arg>-Xlint:unchecked</arg>
1332             </compilerArgs>
1333           </configuration>
1334         </plugin>
1335         <plugin>
1336           <artifactId>maven-enforcer-plugin</artifactId>
1337           <version>${enforcer.version}</version>
1338         </plugin>
1339         <plugin>
1340           <artifactId>maven-failsafe-plugin</artifactId>
1341           <version>2.22.1</version>
1342         </plugin>
1343         <plugin>
1344           <artifactId>maven-invoker-plugin</artifactId>
1345           <version>3.1.0</version>
1346         </plugin>
1347         <plugin>
1348           <artifactId>maven-jar-plugin</artifactId>
1349           <version>3.1.1</version>
1350         </plugin>
1351         <plugin>
1352           <artifactId>maven-dependency-plugin</artifactId>
1353           <executions>
1354             <execution>
1355               <id>unpack-license</id>
1356               <phase>generate-resources</phase>
1357               <goals><goal>unpack</goal></goals>
1358               <configuration>
1359                 <artifactItems>
1360                   <artifactItem>
1361                     <groupId>org.opendaylight.odlparent</groupId>
1362                     <artifactId>odl-license</artifactId>
1363                     <version>4.0.8-SNAPSHOT</version>
1364                   </artifactItem>
1365                 </artifactItems>
1366                 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1367                 <excludes>META-INF/**</excludes>
1368               </configuration>
1369             </execution>
1370           </executions>
1371         </plugin>
1372
1373         <plugin>
1374           <artifactId>maven-plugin-plugin</artifactId>
1375           <version>3.5.2</version>
1376         </plugin>
1377
1378         <plugin>
1379           <artifactId>maven-remote-resources-plugin</artifactId>
1380           <version>1.6.0</version>
1381         </plugin>
1382         <plugin>
1383           <artifactId>maven-resources-plugin</artifactId>
1384           <version>3.1.0</version>
1385         </plugin>
1386         <plugin>
1387           <artifactId>maven-shade-plugin</artifactId>
1388           <version>3.2.1</version>
1389         </plugin>
1390         <plugin>
1391           <artifactId>maven-source-plugin</artifactId>
1392           <version>3.0.1</version>
1393           <executions>
1394             <execution>
1395               <id>attach-sources</id>
1396               <phase>verify</phase>
1397               <goals>
1398                 <goal>jar-no-fork</goal>
1399               </goals>
1400             </execution>
1401           </executions>
1402         </plugin>
1403         <plugin>
1404           <artifactId>maven-surefire-plugin</artifactId>
1405           <version>2.22.1</version>
1406           <configuration>
1407             <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1408             <trimStackTrace>false</trimStackTrace>
1409           </configuration>
1410         </plugin>
1411
1412         <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1413         <plugin>
1414           <!-- Support Blueprint XML construction using annotations -->
1415           <groupId>org.apache.aries.blueprint</groupId>
1416           <artifactId>blueprint-maven-plugin</artifactId>
1417           <version>1.10.0</version>
1418           <!-- TODO remove dependencies when we bump from 1.10.0 to 1.11.0 (or 1.10.1);
1419              see https://jira.opendaylight.org/browse/ODLPARENT-167 & https://jira.apache.org/jira/browse/ARIES-1826 -->
1420           <dependencies>
1421             <dependency>
1422               <groupId>org.apache.xbean</groupId>
1423               <artifactId>xbean-finder-shaded</artifactId>
1424               <version>4.12</version>
1425             </dependency>
1426           </dependencies>
1427           <configuration>
1428             <scanPaths>
1429               <scanPath>org.opendaylight</scanPath>
1430             </scanPaths>
1431           </configuration>
1432           <executions>
1433             <execution>
1434               <goals>
1435                 <goal>blueprint-generate</goal>
1436               </goals>
1437             </execution>
1438           </executions>
1439         </plugin>
1440
1441         <plugin>
1442           <groupId>org.apache.felix</groupId>
1443           <artifactId>maven-bundle-plugin</artifactId>
1444           <version>4.1.0</version>
1445           <extensions>true</extensions>
1446           <configuration>
1447             <instructions>
1448               <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1449                    so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1450                    and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present.  -->
1451               <Include-Resource>{maven-resources},${project.build.directory}/classes/LICENSE,META-INF/git.properties=-${project.build.directory}/classes/META-INF/git.properties</Include-Resource>
1452
1453               <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1454                    to generate Import-Service and Export-Service headers. -->
1455               <_removeheaders>Import-Service,Export-Service</_removeheaders>
1456             </instructions>
1457           </configuration>
1458         </plugin>
1459
1460         <plugin>
1461           <groupId>org.apache.karaf.tooling</groupId>
1462           <artifactId>karaf-maven-plugin</artifactId>
1463           <version>${karaf.version}</version>
1464         </plugin>
1465
1466         <plugin>
1467           <groupId>org.apache.servicemix.tooling</groupId>
1468           <artifactId>depends-maven-plugin</artifactId>
1469           <version>1.4.0</version>
1470           <executions>
1471             <execution>
1472               <id>generate-depends-file</id>
1473               <goals>
1474                 <goal>generate-depends-file</goal>
1475               </goals>
1476             </execution>
1477           </executions>
1478         </plugin>
1479
1480         <plugin>
1481           <groupId>org.codehaus.enunciate</groupId>
1482           <artifactId>maven-enunciate-plugin</artifactId>
1483           <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1484           <version>1.31</version>
1485         </plugin>
1486         <plugin>
1487           <groupId>org.codehaus.groovy.maven</groupId>
1488           <artifactId>gmaven-plugin</artifactId>
1489           <version>1.0</version>
1490         </plugin>
1491         <plugin>
1492           <groupId>org.codehaus.mojo</groupId>
1493           <artifactId>build-helper-maven-plugin</artifactId>
1494           <version>3.0.0</version>
1495         </plugin>
1496         <plugin>
1497           <groupId>org.codehaus.mojo</groupId>
1498           <artifactId>findbugs-maven-plugin</artifactId>
1499           <version>3.0.5</version>
1500           <dependencies>
1501             <dependency>
1502               <groupId>org.opendaylight.odlparent</groupId>
1503               <artifactId>findbugs</artifactId>
1504               <version>4.0.8-SNAPSHOT</version>
1505             </dependency>
1506           </dependencies>
1507           <configuration>
1508             <plugins>
1509               <plugin>
1510                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1511                 <artifactId>bug-pattern</artifactId>
1512                 <!-- NOTE: This version SHOULD be kept in sync with the same version in the new spotbugs-maven-plugin below,
1513                      but 1.4.1 broke compability with (the version we use of) FindBugs, so must keep this at 1.4.0. -->
1514                 <version>1.4.0</version>
1515               </plugin>
1516             </plugins>
1517             <!--
1518               Enables analysis which takes more memory but finds more bugs.
1519               If you run out of memory, changes the value of the effort element
1520               to 'Low'.
1521             -->
1522             <effort>Max</effort>
1523             <!-- Reports all bugs (other values are medium and max) -->
1524             <threshold>Low</threshold>
1525             <!-- Build doesn't fail if problems are found -->
1526             <failOnError>false</failOnError>
1527             <!-- References the excluded rules -->
1528             <excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
1529             <!-- Produces XML report -->
1530             <xmlOutput>true</xmlOutput>
1531             <!-- Configures the directory in which the XML report is created -->
1532             <findbugsXmlOutputDirectory>${project.build.directory}/findbugs</findbugsXmlOutputDirectory>
1533           </configuration>
1534           <executions>
1535               <!--
1536                 Ensures that FindBugs inspects source code when project is compiled.
1537               -->
1538               <execution>
1539                 <id>analyze-compile</id>
1540                 <phase>compile</phase>
1541                 <goals>
1542                   <goal>check</goal>
1543                 </goals>
1544               </execution>
1545           </executions>
1546         </plugin>
1547         <plugin>
1548           <groupId>com.github.spotbugs</groupId>
1549           <artifactId>spotbugs-maven-plugin</artifactId>
1550           <version>3.1.10</version>
1551           <dependencies>
1552             <dependency>
1553               <groupId>com.github.spotbugs</groupId>
1554               <artifactId>spotbugs</artifactId>
1555               <version>3.1.10</version>
1556             </dependency>
1557             <dependency>
1558               <groupId>org.opendaylight.odlparent</groupId>
1559               <artifactId>spotbugs</artifactId>
1560               <version>4.0.8-SNAPSHOT</version>
1561             </dependency>
1562           </dependencies>
1563           <configuration>
1564             <plugins>
1565               <plugin>
1566                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1567                 <artifactId>bug-pattern</artifactId>
1568                 <!-- NOTE: This version MUST be kept in sync with the same version in the old findbugs-maven-plugin above, if possible -->
1569                 <version>1.4.1</version>
1570               </plugin>
1571             </plugins>
1572             <!--
1573               Enables analysis which takes more memory but finds more bugs.
1574               If you run out of memory, changes the value of the effort element
1575               to 'Low'.
1576             -->
1577             <effort>Max</effort>
1578             <!-- Reports all bugs (other values are medium and max) -->
1579             <threshold>Low</threshold>
1580             <!-- Build doesn't fail if problems are found -->
1581             <failOnError>false</failOnError>
1582             <!-- References the excluded rules -->
1583             <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1584             <!-- Produces XML report -->
1585             <xmlOutput>true</xmlOutput>
1586             <!-- Configures the directory in which the XML report is created -->
1587             <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1588           </configuration>
1589           <executions>
1590             <!--
1591               Ensures that SpotBugs inspects source code when project is compiled.
1592             -->
1593             <execution>
1594               <id>analyze-compile</id>
1595               <phase>compile</phase>
1596               <goals>
1597                 <goal>check</goal>
1598               </goals>
1599             </execution>
1600           </executions>
1601         </plugin>
1602         <plugin>
1603           <groupId>org.codehaus.mojo</groupId>
1604           <artifactId>properties-maven-plugin</artifactId>
1605           <version>1.0.0</version>
1606         </plugin>
1607         <plugin>
1608           <groupId>org.eclipse.xtend</groupId>
1609           <artifactId>xtend-maven-plugin</artifactId>
1610           <!-- NOTE: This version MUST be kept in sync with the Xtend version in <dependencyManagement> -->
1611           <version>2.16.0</version>
1612           <executions>
1613             <execution>
1614               <goals>
1615                 <goal>compile</goal>
1616                 <goal>testCompile</goal>
1617               </goals>
1618               <configuration>
1619                 <outputDirectory>${project.build.directory}/generated-sources/xtend</outputDirectory>
1620                 <testOutputDirectory>${project.build.directory}/generated-test-sources/xtend</testOutputDirectory>
1621               </configuration>
1622             </execution>
1623           </executions>
1624         </plugin>
1625         <plugin>
1626           <groupId>org.eclipse.m2e</groupId>
1627           <artifactId>lifecycle-mapping</artifactId>
1628           <version>1.0.0</version>
1629           <configuration>
1630             <lifecycleMappingMetadata>
1631               <pluginExecutions>
1632                 <pluginExecution>
1633                   <pluginExecutionFilter>
1634                     <groupId>org.apache.felix</groupId>
1635                     <artifactId>maven-bundle-plugin</artifactId>
1636                     <versionRange>[1.0,)</versionRange>
1637                     <goals>
1638                       <goal>manifest</goal>
1639                     </goals>
1640                   </pluginExecutionFilter>
1641                   <action>
1642                     <execute/>
1643                   </action>
1644                 </pluginExecution>
1645                 <pluginExecution>
1646                   <pluginExecutionFilter>
1647                     <groupId>org.apache.maven.plugins</groupId>
1648                     <artifactId>maven-enforcer-plugin</artifactId>
1649                     <versionRange>[1.0.0,)</versionRange>
1650                     <goals>
1651                       <goal>enforce</goal>
1652                     </goals>
1653                   </pluginExecutionFilter>
1654                   <action>
1655                     <ignore/>
1656                   </action>
1657                 </pluginExecution>
1658                 <pluginExecution>
1659                   <pluginExecutionFilter>
1660                     <groupId>org.apache.maven.plugins</groupId>
1661                     <artifactId>maven-dependency-plugin</artifactId>
1662                     <versionRange>[2.10,)</versionRange>
1663                     <goals>
1664                       <goal>unpack</goal>
1665                     </goals>
1666                   </pluginExecutionFilter>
1667                   <action>
1668                     <ignore/>
1669                   </action>
1670                 </pluginExecution>
1671                 <pluginExecution>
1672                   <pluginExecutionFilter>
1673                     <groupId>org.apache.maven.plugins</groupId>
1674                     <artifactId>maven-pmd-plugin</artifactId>
1675                     <versionRange>[3.6,)</versionRange>
1676                     <goals>
1677                       <goal>cpd-check</goal>
1678                     </goals>
1679                   </pluginExecutionFilter>
1680                   <action>
1681                     <ignore/>
1682                   </action>
1683                 </pluginExecution>
1684                 <!-- The plugin will eventually be removed, remove this too at that point -->
1685                 <pluginExecution>
1686                   <pluginExecutionFilter>
1687                     <groupId>org.apache.maven.plugins</groupId>
1688                     <artifactId>maven-antrun-plugin</artifactId>
1689                     <versionRange>[1.8,)</versionRange>
1690                     <goals>
1691                       <goal>run</goal>
1692                     </goals>
1693                   </pluginExecutionFilter>
1694                   <action>
1695                     <ignore/>
1696                   </action>
1697                 </pluginExecution>
1698                 <pluginExecution>
1699                   <pluginExecutionFilter>
1700                     <groupId>org.apache.servicemix.tooling</groupId>
1701                     <artifactId>depends-maven-plugin</artifactId>
1702                     <versionRange>[1.2,)</versionRange>
1703                     <goals>
1704                       <goal>generate-depends-file</goal>
1705                     </goals>
1706                   </pluginExecutionFilter>
1707                   <action>
1708                     <execute/>
1709                   </action>
1710                 </pluginExecution>
1711                 <pluginExecution>
1712                   <pluginExecutionFilter>
1713                     <groupId>org.jacoco</groupId>
1714                     <artifactId>jacoco-maven-plugin</artifactId>
1715                     <versionRange>[0.7.0,)</versionRange>
1716                     <goals>
1717                       <goal>prepare-agent</goal>
1718                     </goals>
1719                   </pluginExecutionFilter>
1720                   <action>
1721                     <ignore/>
1722                   </action>
1723                 </pluginExecution>
1724
1725                 <pluginExecution>
1726                   <pluginExecutionFilter>
1727                     <groupId>org.ops4j.pax.exam</groupId>
1728                     <artifactId>maven-paxexam-plugin</artifactId>
1729                     <versionRange>[1.2.4,)</versionRange>
1730                     <goals>
1731                       <goal>generate-depends-file</goal>
1732                     </goals>
1733                   </pluginExecutionFilter>
1734                   <action>
1735                     <ignore/>
1736                   </action>
1737                 </pluginExecution>
1738
1739                 <pluginExecution>
1740                   <pluginExecutionFilter>
1741                     <groupId>org.basepom.maven</groupId>
1742                     <artifactId>
1743                       duplicate-finder-maven-plugin
1744                     </artifactId>
1745                     <versionRange>[1.2.1,)</versionRange>
1746                     <goals>
1747                       <goal>check</goal>
1748                     </goals>
1749                   </pluginExecutionFilter>
1750                   <action>
1751                     <ignore></ignore>
1752                   </action>
1753                 </pluginExecution>
1754               </pluginExecutions>
1755             </lifecycleMappingMetadata>
1756           </configuration>
1757         </plugin>
1758
1759         <plugin>
1760           <groupId>org.jacoco</groupId>
1761           <artifactId>jacoco-maven-plugin</artifactId>
1762           <configuration>
1763             <!-- Note: This exclusion list should match <sonar.exclusions>
1764                        property above -->
1765             <excludes>
1766               <exclude>**/gen/**</exclude>
1767               <exclude>**/generated-sources/**</exclude>
1768               <exclude>**/generated-test-sources/**</exclude>
1769               <exclude>**/yang-gen/**</exclude>
1770               <exclude>**/yang-gen-config/**</exclude>
1771               <exclude>**/yang-gen-sal/**</exclude>
1772               <exclude>**/yang-gen-code/**</exclude>
1773               <exclude>**/pax/**</exclude>
1774             </excludes>
1775           </configuration>
1776         </plugin>
1777
1778         <plugin>
1779           <groupId>org.ops4j.pax.exam</groupId>
1780           <artifactId>maven-paxexam-plugin</artifactId>
1781           <version>1.2.4</version>
1782         </plugin>
1783
1784         <plugin>
1785           <groupId>org.codehaus.mojo</groupId>
1786           <artifactId>jdepend-maven-plugin</artifactId>
1787           <version>2.0</version>
1788           <executions>
1789             <execution>
1790               <phase>site</phase>
1791               <goals>
1792                 <goal>generate-no-fork</goal>
1793               </goals>
1794             </execution>
1795           </executions>
1796         </plugin>
1797
1798         <!-- When updating this version, consider antl4-runtime above -->
1799         <plugin>
1800           <groupId>org.antlr</groupId>
1801           <artifactId>antlr4-maven-plugin</artifactId>
1802           <version>4.7.1</version>
1803         </plugin>
1804       </plugins>
1805     </pluginManagement>
1806
1807     <plugins>
1808       <plugin>
1809         <artifactId>maven-enforcer-plugin</artifactId>
1810         <executions>
1811           <execution>
1812             <id>enforce-banned-dependencies</id>
1813             <goals>
1814               <goal>enforce</goal>
1815             </goals>
1816             <configuration>
1817               <rules>
1818                 <bannedDependencies>
1819                   <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>
1820                   <excludes>
1821                     <exclude>org.mockito:mockito-all</exclude>
1822                     <!-- https://github.com/facebook/facebook-oss-pom/blob/master/pom.xml#L331-L336 -->
1823                     <!-- Clashes with com.google.code.findbugs:annotations and having both jars -->
1824                     <!-- as a dependency then clashes with the dependency checker (because it   -->
1825                     <!-- is not very good at handling annotations). Use the annotations jar     -->
1826                     <!-- instead which has all jsr305 annotations and the additional findbugs   -->
1827                     <!-- stuff. -->
1828                     <exclude>com.google.code.findbugs:jsr305</exclude>
1829                     <exclude>net.jcip:jcip-annotations</exclude>
1830                   </excludes>
1831                 </bannedDependencies>
1832               </rules>
1833               <fail>true</fail>
1834             </configuration>
1835           </execution>
1836         </executions>
1837       </plugin>
1838       <plugin>
1839         <groupId>org.basepom.maven</groupId>
1840         <artifactId>duplicate-finder-maven-plugin</artifactId>
1841         <version>1.3.0</version>
1842         <executions>
1843           <execution>
1844             <id>find-duplicate-classpath-entries</id>
1845             <phase>verify</phase>
1846             <goals>
1847               <goal>check</goal>
1848             </goals>
1849           </execution>
1850         </executions>
1851         <configuration>
1852             <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1853             <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1854             <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1855             <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1856             <printEqualFiles>false</printEqualFiles>
1857             <quiet>true</quiet>
1858             <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1859                  as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1860                  we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1861                  also ignore: -->
1862             <ignoredResourcePatterns>
1863               <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1864               <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1865               <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1866               <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1867               <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1868               <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1869             </ignoredResourcePatterns>
1870             <ignoredClassPatterns>
1871               <ignoredClassPattern>META-INF.versions.*$</ignoredClassPattern>
1872             </ignoredClassPatterns>
1873             <ignoredDependencies>
1874               <ignoredDependency>
1875                 <groupId>org.slf4j</groupId>
1876                 <artifactId>slf4j-simple</artifactId>
1877               </ignoredDependency>
1878               <ignoredDependency>
1879                 <groupId>org.opendaylight.odlparent</groupId>
1880                 <artifactId>opendaylight-karaf-empty</artifactId>
1881               </ignoredDependency>
1882             </ignoredDependencies>
1883         </configuration>
1884       </plugin>
1885       <plugin>
1886         <artifactId>maven-dependency-plugin</artifactId>
1887       </plugin>
1888       <plugin>
1889         <artifactId>maven-checkstyle-plugin</artifactId>
1890       </plugin>
1891       <plugin>
1892           <artifactId>maven-pmd-plugin</artifactId>
1893       </plugin>
1894       <plugin>
1895         <artifactId>maven-source-plugin</artifactId>
1896       </plugin>
1897       <plugin>
1898         <artifactId>maven-javadoc-plugin</artifactId>
1899       </plugin>
1900
1901       <!-- Jacoco / Sonar -->
1902       <plugin>
1903         <groupId>org.jacoco</groupId>
1904         <artifactId>jacoco-maven-plugin</artifactId>
1905         <executions>
1906           <execution>
1907             <id>pre-unit-test</id>
1908             <goals>
1909               <goal>prepare-agent</goal>
1910             </goals>
1911             <configuration>
1912               <destFile>${jacoco.destFile}</destFile>
1913             </configuration>
1914           </execution>
1915         </executions>
1916       </plugin>
1917
1918       <plugin>
1919         <groupId>com.alexecollins.maven.plugin</groupId>
1920         <artifactId>script-maven-plugin</artifactId>
1921         <version>1.0.0</version>
1922         <executions>
1923            <execution>
1924              <phase>prepare-package</phase>
1925              <goals>
1926                <goal>execute</goal>
1927              </goals>
1928              <configuration>
1929                <script>
1930                  // BeanShell is 2005-ish and thus doesn't support generics, varargs, try-with-resources or lambdas, so:
1931                  // (If we do this kind of inline code in pom.xml more often, we shold have a new simple module in
1932                  //  odl-parent, which has *.java that we compile, and then just depend on it here and call one-line
1933                  //  static class methods only - it will be MUCH easier to write!)
1934                  void copy(File root, String glob, File target) {
1935                      java.nio.file.DirectoryStream dirStream = java.nio.file.Files.newDirectoryStream(root.toPath(), glob);
1936                      Iterator dirStreamIterator = dirStream.iterator();
1937                      while (dirStreamIterator.hasNext()) {
1938                          java.nio.file.Path path = dirStreamIterator.next();
1939                          java.nio.file.Files.copy(path, new File(target, path.toFile().getName()).toPath(),
1940                              new java.nio.file.CopyOption[] {
1941                                  java.nio.file.StandardCopyOption.REPLACE_EXISTING,
1942                                  java.nio.file.StandardCopyOption.COPY_ATTRIBUTES
1943                              }
1944                          );
1945                      }
1946                      dirStream.close();
1947                  }
1948
1949                  File gitRepoRootDir = project.basedir;
1950                  while (!new File(gitRepoRootDir, ".git").exists() &amp;&amp; gitRepoRootDir.getParentFile() != null) {
1951                      gitRepoRootDir = gitRepoRootDir.getParentFile();
1952                  }
1953
1954                  File target = new File(project.build.outputDirectory);
1955                  target.mkdirs();
1956                  copy(gitRepoRootDir, "README*", target);
1957                  copy(gitRepoRootDir, "CONTRIBUTING*", target);
1958                  copy(gitRepoRootDir, "PROJECT_INFO.yaml", target);
1959                </script>
1960              </configuration>
1961            </execution>
1962          </executions>
1963          <dependencies>
1964            <dependency>
1965              <groupId>org.apache-extras.beanshell</groupId>
1966              <artifactId>bsh</artifactId>
1967              <version>2.0b6</version>
1968            </dependency>
1969          </dependencies>
1970       </plugin>
1971     </plugins>
1972   </build>
1973
1974   <reporting>
1975     <plugins>
1976       <plugin>
1977         <artifactId>maven-checkstyle-plugin</artifactId>
1978         <version>3.0.0</version>
1979       </plugin>
1980
1981       <!-- FIXME: activate this
1982       <plugin>
1983         <artifactId>maven-project-info-reports-plugin</artifactId>
1984         <version>${projectinfo}</version>
1985       </plugin-->
1986       <plugin>
1987         <groupId>org.codehaus.mojo</groupId>
1988         <artifactId>jdepend-maven-plugin</artifactId>
1989         <reportSets>
1990           <reportSet>
1991             <reports>
1992               <report>generate-no-fork</report>
1993             </reports>
1994           </reportSet>
1995         </reportSets>
1996       </plugin>
1997     </plugins>
1998   </reporting>
1999
2000   <profiles>
2001     <profile>
2002       <!-- On JDK9-and-later findbugs fails -->
2003       <id>jdk9-findbugs</id>
2004       <activation>
2005         <jdk>[9,)</jdk>
2006       </activation>
2007       <properties>
2008         <findbugs.skip>true</findbugs.skip>
2009       </properties>
2010     </profile>
2011   </profiles>
2012
2013 </project>
2014