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