Start 4.0.9
[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.9-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.9-SNAPSHOT</version>
89         <scope>import</scope>
90         <type>pom</type>
91       </dependency>
92
93       <!-- We import Karaf dependencies to ensure we converge by default on the versions used there -->
94       <dependency>
95         <groupId>org.apache.karaf.features</groupId>
96         <artifactId>framework</artifactId>
97         <version>${karaf.version}</version>
98         <scope>import</scope>
99         <type>pom</type>
100       </dependency>
101
102       <!-- Build tool dependencies (normally not here in <dependencies>,
103            but in a <dependency> in <pluginManagement> but for Checkstyle this
104            is required so that we can share the same version of Checkstyle
105            for both the Maven plugin below as well as  for custom Checkstyle
106            check rule projects, such as yangtools' checkstyle-logging) -->
107       <dependency>
108         <groupId>com.puppycrawl.tools</groupId>
109         <artifactId>checkstyle</artifactId>
110         <!-- This should match the plugin management on maven-checkstyle-plugin below -->
111         <version>8.16</version>
112       </dependency>
113
114       <!-- Testing Dependencies -->
115       <!-- JUnit, Hamcrest, Mockito and PowerMock need to be kept in sync -->
116       <!-- Need to stick to JUnit 4.11 until
117            https://github.com/jayway/powermock/issues/560 is fixed (either in
118            PowerMock or with a new JUnit release) -->
119       <dependency>
120         <groupId>junit</groupId>
121         <artifactId>junit</artifactId>
122         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
123         <version>4.11</version>
124         <scope>test</scope>
125       </dependency>
126       <dependency>
127          <groupId>org.skyscreamer</groupId>
128          <artifactId>jsonassert</artifactId>
129          <version>1.5.0</version>
130          <scope>test</scope>
131       </dependency>
132       <dependency>
133         <groupId>org.mockito</groupId>
134         <artifactId>mockito-core</artifactId>
135         <version>2.23.4</version>
136         <scope>test</scope>
137       </dependency>
138       <dependency>
139         <groupId>org.mockito</groupId>
140         <artifactId>mockito-inline</artifactId>
141         <version>2.23.4</version>
142         <scope>test</scope>
143       </dependency>
144       <dependency>
145         <groupId>org.hamcrest</groupId>
146         <artifactId>hamcrest-core</artifactId>
147         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
148         <version>1.3</version>
149         <scope>test</scope>
150       </dependency>
151       <dependency>
152         <groupId>org.hamcrest</groupId>
153         <artifactId>hamcrest-library</artifactId>
154         <version>1.3</version>
155         <scope>test</scope>
156       </dependency>
157       <dependency>
158         <groupId>com.google.truth</groupId>
159         <artifactId>truth</artifactId>
160         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
161         <version>0.42</version>
162         <scope>test</scope>
163       </dependency>
164       <dependency>
165         <groupId>com.google.truth.extensions</groupId>
166         <artifactId>truth-java8-extension</artifactId>
167         <version>0.42</version>
168         <scope>test</scope>
169       </dependency>
170       <dependency>
171         <groupId>org.awaitility</groupId>
172         <artifactId>awaitility</artifactId>
173         <version>3.0.0</version>
174         <scope>test</scope>
175       </dependency>
176       <dependency>
177         <groupId>org.awaitility</groupId>
178         <artifactId>awaitility-proxy</artifactId>
179         <version>3.0.0</version>
180         <scope>test</scope>
181       </dependency>
182       <dependency>
183         <groupId>org.powermock</groupId>
184         <artifactId>powermock-api-mockito</artifactId>
185         <version>1.7.4</version>
186         <scope>test</scope>
187       </dependency>
188       <dependency>
189         <groupId>org.powermock</groupId>
190         <artifactId>powermock-api-mockito2</artifactId>
191         <version>1.7.4</version>
192         <scope>test</scope>
193       </dependency>
194       <dependency>
195         <groupId>org.powermock</groupId>
196         <artifactId>powermock-api-support</artifactId>
197         <version>1.7.4</version>
198         <scope>test</scope>
199       </dependency>
200       <dependency>
201         <groupId>org.powermock</groupId>
202         <artifactId>powermock-core</artifactId>
203         <version>1.7.4</version>
204         <scope>test</scope>
205       </dependency>
206       <dependency>
207         <groupId>org.powermock</groupId>
208         <artifactId>powermock-module-junit4</artifactId>
209         <version>1.7.4</version>
210         <scope>test</scope>
211       </dependency>
212       <dependency>
213         <groupId>org.powermock</groupId>
214         <artifactId>powermock-reflect</artifactId>
215         <version>1.7.4</version>
216         <scope>test</scope>
217       </dependency>
218
219       <!--
220            Annotation Processors
221        -->
222       <dependency>
223         <!-- Generates immutable implementations, builders, the works -->
224         <groupId>org.immutables</groupId>
225         <artifactId>value</artifactId>
226         <version>2.7.3</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.4</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
622       <!-- FIXME: ODLPARENT-190: remove this declaration -->
623       <dependency>
624         <groupId>org.codehaus.enunciate</groupId>
625         <artifactId>enunciate-core-annotations</artifactId>
626         <!-- This must be aligned with the version of maven-enunciate-plugin specified below -->
627         <version>1.31</version>
628         <exclusions>
629           <exclusion>
630             <!-- JSR 250 API has 6 very old versions of javax.annotation @PreDestroy & Co.
631                  which are in core rt.jar since Java 6; it also has Java EE @DataSourceDefinition
632                  and @RunAs and @PermitAll & Co. which we do not require
633                  (or at least not from jsr250-api via enunciate) -->
634             <groupId>javax.annotation</groupId>
635             <artifactId>jsr250-api</artifactId>
636           </exclusion>
637         </exclusions>
638       </dependency>
639       <dependency>
640         <groupId>com.webcohesion.enunciate</groupId>
641         <artifactId>enunciate-core-annotations</artifactId>
642         <!-- This must be aligned with the version of enunciate-maven-plugin specified below -->
643         <version>2.11.1</version>
644       </dependency>
645
646       <dependency>
647         <groupId>org.codehaus.jettison</groupId>
648         <artifactId>jettison</artifactId>
649         <version>1.4.0</version>
650       </dependency>
651       <!-- To upgrade org.eclipse.persistence dependencies to 2.6.0+, we need to ensure all downstreams consumers
652          pull in javax.validation first:
653          http://stackoverflow.com/questions/28568154/how-to-get-eclipselink-2-6-0-m3-working-with-jersey-1-18-3 -->
654       <dependency>
655         <groupId>org.eclipse.persistence</groupId>
656         <artifactId>org.eclipse.persistence.antlr</artifactId>
657         <version>2.7.3</version>
658       </dependency>
659       <dependency>
660         <groupId>org.eclipse.persistence</groupId>
661         <artifactId>org.eclipse.persistence.core</artifactId>
662         <version>2.7.3</version>
663       </dependency>
664       <dependency>
665         <groupId>org.eclipse.persistence</groupId>
666         <artifactId>org.eclipse.persistence.moxy</artifactId>
667         <version>2.7.3</version>
668       </dependency>
669       <dependency>
670         <groupId>javax.validation</groupId>
671         <artifactId>validation-api</artifactId>
672         <version>1.1.0.Final</version>
673       </dependency>
674       <dependency>
675         <groupId>org.javassist</groupId>
676         <artifactId>javassist</artifactId>
677         <version>3.24.0-GA</version>
678       </dependency>
679       <dependency>
680         <groupId>org.jboss.spec.javax.transaction</groupId>
681         <artifactId>jboss-transaction-api_1.1_spec</artifactId>
682         <version>1.0.1.Final</version>
683       </dependency>
684       <dependency>
685         <groupId>org.jolokia</groupId>
686         <artifactId>jolokia-osgi</artifactId>
687         <version>1.6.0</version>
688       </dependency>
689       <dependency>
690         <groupId>org.json</groupId>
691         <artifactId>json</artifactId>
692         <version>20131018</version>
693       </dependency>
694       <dependency>
695         <groupId>org.osgi</groupId>
696         <artifactId>org.osgi.compendium</artifactId>
697         <version>5.0.0</version>
698         <scope>provided</scope>
699       </dependency>
700       <dependency>
701         <groupId>org.osgi</groupId>
702         <artifactId>org.osgi.core</artifactId>
703         <version>5.0.0</version>
704         <scope>provided</scope>
705       </dependency>
706       <dependency>
707         <groupId>org.osgi</groupId>
708         <!-- for https://bugs.opendaylight.org/show_bug.cgi?id=4290 -->
709         <artifactId>org.osgi.service.event</artifactId>
710         <version>1.3.1</version>
711       </dependency>
712       <dependency>
713         <groupId>org.apache.aries.quiesce</groupId>
714         <artifactId>org.apache.aries.quiesce.api</artifactId>
715         <version>1.0.0</version>
716       </dependency>
717       <dependency>
718         <groupId>org.ow2.asm</groupId>
719         <artifactId>asm</artifactId>
720         <version>7.0</version>
721       </dependency>
722
723       <!-- Configuration library -->
724       <!-- This needs to be kept in sync with the version used by akka -->
725       <dependency>
726         <groupId>com.typesafe</groupId>
727         <artifactId>config</artifactId>
728         <version>1.3.2</version>
729       </dependency>
730
731       <!-- Reactive Streams, used by Akka -->
732       <dependency>
733         <groupId>org.reactivestreams</groupId>
734         <artifactId>reactive-streams</artifactId>
735         <version>1.0.1</version>
736       </dependency>
737
738       <!-- Akka -->
739       <dependency>
740         <groupId>com.typesafe</groupId>
741         <artifactId>ssl-config-core_2.12</artifactId>
742         <version>0.3.6</version>
743       </dependency>
744       <dependency>
745         <groupId>com.typesafe.akka</groupId>
746         <artifactId>akka-actor_2.12</artifactId>
747         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
748         <version>2.5.19</version>
749       </dependency>
750       <dependency>
751         <groupId>com.typesafe.akka</groupId>
752         <artifactId>akka-cluster_2.12</artifactId>
753         <version>2.5.19</version>
754       </dependency>
755       <dependency>
756         <groupId>com.typesafe.akka</groupId>
757         <artifactId>akka-osgi_2.12</artifactId>
758         <version>2.5.19</version>
759       </dependency>
760       <dependency>
761         <groupId>com.typesafe.akka</groupId>
762         <artifactId>akka-persistence_2.12</artifactId>
763         <version>2.5.19</version>
764       </dependency>
765       <dependency>
766         <groupId>com.typesafe.akka</groupId>
767         <artifactId>akka-persistence-tck_2.12</artifactId>
768         <version>2.5.19</version>
769         <scope>test</scope>
770       </dependency>
771       <dependency>
772         <groupId>com.typesafe.akka</groupId>
773         <artifactId>akka-protobuf_2.12</artifactId>
774         <version>2.5.19</version>
775       </dependency>
776       <dependency>
777         <groupId>com.typesafe.akka</groupId>
778         <artifactId>akka-remote_2.12</artifactId>
779         <version>2.5.19</version>
780       </dependency>
781       <dependency>
782         <groupId>com.typesafe.akka</groupId>
783         <artifactId>akka-slf4j_2.12</artifactId>
784         <version>2.5.19</version>
785       </dependency>
786       <dependency>
787         <groupId>com.typesafe.akka</groupId>
788         <artifactId>akka-stream_2.12</artifactId>
789         <version>2.5.19</version>
790       </dependency>
791       <dependency>
792         <groupId>com.typesafe.akka</groupId>
793         <artifactId>akka-testkit_2.12</artifactId>
794         <version>2.5.19</version>
795         <scope>test</scope>
796       </dependency>
797       <dependency>
798         <groupId>org.scala-lang.modules</groupId>
799         <artifactId>scala-java8-compat_2.12</artifactId>
800         <version>0.8.0</version>
801       </dependency>
802       <dependency>
803         <groupId>org.scala-lang.modules</groupId>
804         <artifactId>scala-parser-combinators_2.12</artifactId>
805         <version>1.1.1</version>
806       </dependency>
807       <dependency>
808         <groupId>org.uncommons.maths</groupId>
809         <artifactId>uncommons-maths</artifactId>
810         <version>1.2.2a</version>
811       </dependency>
812
813       <!-- Aeron, required by Akka -->
814       <dependency>
815         <groupId>org.agrona</groupId>
816         <artifactId>agrona</artifactId>
817         <version>0.9.27</version>
818       </dependency>
819       <dependency>
820         <groupId>io.aeron</groupId>
821         <artifactId>aeron-client</artifactId>
822         <version>1.12.0</version>
823       </dependency>
824       <dependency>
825         <groupId>io.aeron</groupId>
826         <artifactId>aeron-driver</artifactId>
827         <version>1.12.0</version>
828       </dependency>
829
830       <!-- Scala -->
831       <dependency>
832         <groupId>org.scala-lang</groupId>
833         <artifactId>scala-library</artifactId>
834         <version>2.12.8</version>
835       </dependency>
836       <dependency>
837         <groupId>org.scala-lang</groupId>
838         <artifactId>scala-reflect</artifactId>
839         <version>2.12.8</version>
840       </dependency>
841
842       <!-- LMAX Disruptor -->
843       <dependency>
844         <groupId>com.lmax</groupId>
845         <artifactId>disruptor</artifactId>
846         <version>3.4.2</version>
847       </dependency>
848
849       <!-- Add Pax Exam -->
850       <dependency>
851         <groupId>org.ops4j.pax.exam</groupId>
852         <artifactId>pax-exam</artifactId>
853         <version>4.13.1</version>
854         <scope>test</scope>
855       </dependency>
856       <dependency>
857         <groupId>org.ops4j.pax.exam</groupId>
858         <artifactId>pax-exam-container-forked</artifactId>
859         <version>4.13.1</version>
860         <scope>test</scope>
861       </dependency>
862       <dependency>
863         <groupId>org.ops4j.pax.exam</groupId>
864         <artifactId>pax-exam-container-karaf</artifactId>
865         <version>4.13.1</version>
866         <scope>test</scope>
867       </dependency>
868       <dependency>
869         <groupId>org.ops4j.pax.exam</groupId>
870         <artifactId>pax-exam-container-native</artifactId>
871         <version>4.13.1</version>
872         <scope>test</scope>
873       </dependency>
874       <dependency>
875         <groupId>org.ops4j.pax.exam</groupId>
876         <artifactId>pax-exam-extender-service</artifactId>
877         <version>4.13.1</version>
878         <scope>test</scope>
879       </dependency>
880       <dependency>
881         <groupId>org.ops4j.pax.exam</groupId>
882         <artifactId>pax-exam-inject</artifactId>
883         <version>4.13.1</version>
884         <scope>test</scope>
885       </dependency>
886       <dependency>
887         <groupId>org.ops4j.pax.exam</groupId>
888         <artifactId>pax-exam-invoker-junit</artifactId>
889         <version>4.13.1</version>
890         <scope>test</scope>
891       </dependency>
892       <dependency>
893         <groupId>org.ops4j.pax.exam</groupId>
894         <artifactId>pax-exam-features</artifactId>
895         <version>4.13.1</version>
896         <type>xml</type>
897         <scope>test</scope>
898       </dependency>
899       <dependency>
900         <groupId>org.ops4j.pax.exam</groupId>
901         <artifactId>pax-exam-junit4</artifactId>
902         <version>4.13.1</version>
903         <scope>test</scope>
904       </dependency>
905       <dependency>
906         <groupId>org.ops4j.pax.exam</groupId>
907         <artifactId>pax-exam-link-mvn</artifactId>
908         <version>4.13.1</version>
909         <scope>test</scope>
910       </dependency>
911       <dependency>
912         <groupId>org.ops4j.pax.exam</groupId>
913         <artifactId>pax-exam-link-assembly</artifactId>
914         <version>4.13.1</version>
915         <scope>test</scope>
916       </dependency>
917
918       <dependency>
919         <groupId>org.ops4j.pax.url</groupId>
920         <artifactId>pax-url-link</artifactId>
921         <version>2.5.4</version>
922         <scope>test</scope>
923       </dependency>
924       <dependency>
925         <groupId>org.ops4j.pax.url</groupId>
926         <artifactId>pax-url-aether</artifactId>
927         <version>2.5.4</version>
928         <scope>test</scope>
929       </dependency>
930       <dependency>
931         <groupId>org.ops4j.pax.url</groupId>
932         <artifactId>pax-url-wrap</artifactId>
933         <version>2.5.4</version>
934       </dependency>
935
936       <dependency>
937         <groupId>org.ops4j.pax.web</groupId>
938         <artifactId>pax-web-api</artifactId>
939         <!-- Note: keep this version synchronized with karaf -->
940         <version>7.2.5</version>
941       </dependency>
942
943       <dependency>
944         <groupId>org.springframework.osgi</groupId>
945         <artifactId>spring-osgi-mock</artifactId>
946         <version>1.2.1</version>
947         <scope>test</scope>
948       </dependency>
949
950       <dependency>
951         <groupId>org.xmlunit</groupId>
952         <artifactId>xmlunit-core</artifactId>
953         <version>2.6.2</version>
954         <scope>test</scope>
955       </dependency>
956       <dependency>
957         <groupId>org.xmlunit</groupId>
958         <artifactId>xmlunit-matchers</artifactId>
959         <version>2.6.2</version>
960         <scope>test</scope>
961       </dependency>
962       <!-- FIXME: remove this once we have migrated over -->
963       <dependency>
964         <groupId>org.xmlunit</groupId>
965         <artifactId>xmlunit-legacy</artifactId>
966         <version>2.6.2</version>
967         <scope>test</scope>
968       </dependency>
969
970       <dependency>
971         <groupId>org.eclipse.jetty</groupId>
972         <artifactId>jetty-client</artifactId>
973         <version>9.4.12.v20180830</version>
974       </dependency>
975       <dependency>
976         <groupId>org.eclipse.jetty</groupId>
977         <artifactId>jetty-server</artifactId>
978         <version>9.4.12.v20180830</version>
979       </dependency>
980       <dependency>
981         <groupId>org.eclipse.jetty</groupId>
982         <artifactId>jetty-servlets</artifactId>
983         <version>9.4.12.v20180830</version>
984       </dependency>
985       <dependency>
986         <groupId>org.eclipse.jetty</groupId>
987         <artifactId>jetty-webapp</artifactId>
988         <version>9.4.12.v20180830</version>
989       </dependency>
990
991       <dependency>
992         <groupId>com.h2database</groupId>
993         <artifactId>h2</artifactId>
994         <version>1.4.196</version>
995       </dependency>
996
997       <!-- Xtend http://xtend-lang.org
998            NOTE: When you increase the version here,
999            then remember to also increase it for the
1000            xtend-maven-plugin below! (We don't want to
1001            use a Maven property, in order not to "leak" that.)
1002        -->
1003       <dependency>
1004           <groupId>org.eclipse.xtend</groupId>
1005           <artifactId>org.eclipse.xtend.lib</artifactId>
1006           <version>2.16.0</version>
1007       </dependency>
1008       <dependency>
1009           <groupId>org.eclipse.xtend</groupId>
1010           <artifactId>org.eclipse.xtend.lib.macro</artifactId>
1011           <version>2.16.0</version>
1012       </dependency>
1013       <dependency>
1014           <groupId>org.eclipse.xtext</groupId>
1015           <artifactId>org.eclipse.xtext.xbase.lib</artifactId>
1016           <version>2.16.0</version>
1017       </dependency>
1018
1019       <!-- Annotations -->
1020       <dependency>
1021         <groupId>javax.inject</groupId>
1022         <artifactId>javax.inject</artifactId>
1023         <version>1</version>
1024         <optional>true</optional>
1025       </dependency>
1026
1027       <!-- Cassandra -->
1028       <dependency>
1029         <groupId>com.datastax.cassandra</groupId>
1030         <artifactId>cassandra-driver-core</artifactId>
1031         <version>2.1.9</version>
1032       </dependency>
1033
1034       <!-- jung, a graph library -->
1035       <dependency>
1036         <groupId>net.sf.jung</groupId>
1037         <artifactId>jung-api</artifactId>
1038         <version>2.1.1</version>
1039       </dependency>
1040       <dependency>
1041         <groupId>net.sf.jung</groupId>
1042         <artifactId>jung-algorithms</artifactId>
1043         <version>2.1.1</version>
1044       </dependency>
1045       <dependency>
1046         <groupId>net.sf.jung</groupId>
1047         <artifactId>jung-graph-impl</artifactId>
1048         <version>2.1.1</version>
1049       </dependency>
1050
1051       <!-- Karaf console support -->
1052       <dependency>
1053         <groupId>org.apache.karaf.shell</groupId>
1054         <artifactId>org.apache.karaf.shell.core</artifactId>
1055         <version>${karaf.version}</version>
1056       </dependency>
1057       <dependency>
1058         <groupId>org.apache.karaf.shell</groupId>
1059         <artifactId>org.apache.karaf.shell.console</artifactId>
1060         <version>${karaf.version}</version>
1061       </dependency>
1062
1063       <!-- ThreeTen-Extra, date/time complements -->
1064       <dependency>
1065         <groupId>org.threeten</groupId>
1066         <artifactId>threeten-extra</artifactId>
1067         <version>1.4</version>
1068       </dependency>
1069
1070       <!-- When updating this version, consider antl4-maven-plugin below -->
1071       <dependency>
1072         <groupId>org.antlr</groupId>
1073         <artifactId>antlr4-runtime</artifactId>
1074         <version>4.7.1</version>
1075       </dependency>
1076       <!-- Aries' Blueprint version should be kept in sync to the version actually
1077            used by our ${karaf[4].version} ... please bump this when increasing that.
1078            TODO Find a smarter way to inherit this from a (TBD..) Karaf artifacts BOM! -->
1079       <dependency>
1080         <groupId>org.apache.aries.blueprint</groupId>
1081         <artifactId>org.apache.aries.blueprint.core</artifactId>
1082         <version>1.10.1</version>
1083       </dependency>
1084       <dependency>
1085         <groupId>org.apache.aries.blueprint</groupId>
1086         <artifactId>blueprint-maven-plugin-annotation</artifactId>
1087         <version>1.3.0</version>
1088         <optional>true</optional>
1089       </dependency>
1090
1091       <!-- Apache SSHD with netty -->
1092       <dependency>
1093         <groupId>org.apache.sshd</groupId>
1094         <artifactId>sshd-core</artifactId>
1095         <version>2.0.0</version>
1096       </dependency>
1097       <dependency>
1098         <groupId>org.apache.sshd</groupId>
1099         <artifactId>sshd-netty</artifactId>
1100         <version>2.0.0</version>
1101       </dependency>
1102       <dependency>
1103         <groupId>net.i2p.crypto</groupId>
1104         <artifactId>eddsa</artifactId>
1105         <version>0.3.0</version>
1106       </dependency>
1107
1108       <!-- TrieMap library -->
1109       <dependency>
1110         <groupId>tech.pantheon.triemap</groupId>
1111         <artifactId>bom</artifactId>
1112         <version>1.0.4</version>
1113         <scope>import</scope>
1114         <type>pom</type>
1115       </dependency>
1116
1117       <!-- Dropwizard metrics -->
1118       <dependency>
1119         <groupId>io.dropwizard.metrics</groupId>
1120         <artifactId>metrics-bom</artifactId>
1121         <version>4.0.5</version>
1122         <scope>import</scope>
1123         <type>pom</type>
1124       </dependency>
1125
1126       <!-- JAXB for Java 11+ -->
1127       <!--
1128            FIXME: bump this to 2.3.0 once we require Java 9+
1129            FIXME: bump this to whatever karaf provides once we require Java 11+
1130       -->
1131       <dependency>
1132         <groupId>javax.xml.bind</groupId>
1133         <artifactId>jaxb-api</artifactId>
1134         <version>2.2.8</version>
1135         <exclusions>
1136           <exclusion>
1137             <!-- Provided by JRE -->
1138             <groupId>javax.xml.stream</groupId>
1139             <artifactId>stax-api</artifactId>
1140           </exclusion>
1141         </exclusions>
1142       </dependency>
1143       <dependency>
1144         <groupId>com.sun.xml.bind</groupId>
1145         <artifactId>jaxb-core</artifactId>
1146         <version>2.2.11</version>
1147       </dependency>
1148       <dependency>
1149         <groupId>com.sun.xml.bind</groupId>
1150         <artifactId>jaxb-impl</artifactId>
1151         <version>2.2.11</version>
1152       </dependency>
1153     </dependencies>
1154   </dependencyManagement>
1155
1156   <dependencies>
1157     <!--
1158          We expect slf4j-api to be provided by the platform.
1159          Karaf provides it, other containers need to provide it themselves.
1160     -->
1161     <dependency>
1162       <groupId>org.slf4j</groupId>
1163       <artifactId>slf4j-api</artifactId>
1164       <scope>provided</scope>
1165     </dependency>
1166
1167     <!--
1168           Enable useful code quality annotations everywhere. Since these annotations
1169           are not required at runtime.
1170     -->
1171     <dependency>
1172       <groupId>com.google.code.findbugs</groupId>
1173       <artifactId>annotations</artifactId>
1174       <scope>provided</scope>
1175       <!-- Contains retention=RUNTIME annotations, which are not really needed -->
1176       <optional>true</optional>
1177     </dependency>
1178     <dependency>
1179       <groupId>org.eclipse.jdt</groupId>
1180       <artifactId>org.eclipse.jdt.annotation</artifactId>
1181       <scope>provided</scope>
1182     </dependency>
1183
1184     <!--
1185           Testing output should be routed through slf4j-simple.
1186     -->
1187     <dependency>
1188       <groupId>org.slf4j</groupId>
1189       <artifactId>slf4j-simple</artifactId>
1190       <scope>test</scope>
1191     </dependency>
1192
1193     <!--
1194           Unit tests can use JUnit + Mockito + Hamcrest by default.
1195     -->
1196     <dependency>
1197       <groupId>junit</groupId>
1198       <artifactId>junit</artifactId>
1199       <scope>test</scope>
1200     </dependency>
1201     <dependency>
1202       <groupId>org.mockito</groupId>
1203       <artifactId>mockito-core</artifactId>
1204       <scope>test</scope>
1205     </dependency>
1206   </dependencies>
1207
1208   <build>
1209     <pluginManagement>
1210       <plugins>
1211         <!-- Official maven plugins, alpha-sorted by artifactId.
1212              We do not need to specify the groupId. -->
1213         <plugin>
1214           <artifactId>maven-antrun-plugin</artifactId>
1215           <version>1.8</version>
1216         </plugin>
1217         <plugin>
1218           <artifactId>maven-checkstyle-plugin</artifactId>
1219           <version>3.0.0</version>
1220           <dependencies>
1221             <dependency>
1222               <groupId>com.puppycrawl.tools</groupId>
1223               <artifactId>checkstyle</artifactId>
1224               <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
1225               <version>8.16</version>
1226             </dependency>
1227             <dependency>
1228               <groupId>org.opendaylight.odlparent</groupId>
1229               <artifactId>checkstyle</artifactId>
1230               <version>4.0.9-SNAPSHOT</version>
1231             </dependency>
1232             <dependency>
1233               <groupId>org.opendaylight.odlparent</groupId>
1234               <artifactId>odl-license</artifactId>
1235               <version>4.0.9-SNAPSHOT</version>
1236             </dependency>
1237             <dependency>
1238               <groupId>com.github.sevntu-checkstyle</groupId>
1239               <artifactId>sevntu-checkstyle-maven-plugin</artifactId>
1240               <version>1.32.0</version>
1241             </dependency>
1242           </dependencies>
1243           <configuration>
1244             <configLocation>odl_checks.xml</configLocation>
1245             <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
1246             <!-- <sourceDirectories> are needed so that checkstyle ignores the
1247                  generated sources directory -->
1248             <sourceDirectories>
1249               <directory>${project.build.sourceDirectory}</directory>
1250             </sourceDirectories>
1251             <includeResources>true</includeResources>
1252             <includeTestSourceDirectory>true</includeTestSourceDirectory>
1253             <includeTestResources>true</includeTestResources>
1254             <includes>**\/*.java, **\/*.xtend</includes>
1255             <excludes>
1256               org/opendaylight/yang/gen/**,
1257               **/protobuff/messages/**,
1258               **/thrift/gen/*.java
1259             </excludes>
1260             <failsOnError>false</failsOnError>
1261             <consoleOutput>true</consoleOutput>
1262           </configuration>
1263           <executions>
1264             <execution>
1265               <id>check-license</id>
1266               <goals>
1267                 <goal>check</goal>
1268               </goals>
1269               <phase>process-sources</phase>
1270               <configuration>
1271                 <configLocation>check-license.xml</configLocation>
1272                 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
1273                 <includeResources>false</includeResources>
1274                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
1275                 <includeTestResources>false</includeTestResources>
1276                 <sourceDirectories>
1277                   <directory>${project.build.sourceDirectory}</directory>
1278                 </sourceDirectories>
1279                 <excludes>
1280                   org/opendaylight/yang/gen/**,
1281                   **/protobuff/messages/**,
1282                   **/thrift/gen/*.java
1283                 </excludes>
1284                 <failsOnError>false</failsOnError>
1285                 <consoleOutput>true</consoleOutput>
1286               </configuration>
1287             </execution>
1288             <execution>
1289               <goals>
1290                 <goal>check</goal>
1291               </goals>
1292               <phase>process-sources</phase>
1293             </execution>
1294           </executions>
1295         </plugin>
1296         <plugin>
1297           <groupId>org.apache.maven.plugins</groupId>
1298           <artifactId>maven-pmd-plugin</artifactId>
1299           <version>3.11.0</version>
1300           <executions>
1301             <execution>
1302               <id>cpd</id>
1303               <phase>process-sources</phase>
1304               <goals>
1305                 <goal>cpd-check</goal>
1306               </goals>
1307               <configuration>
1308                 <failOnViolation>${pmd.cpd.fail}</failOnViolation>
1309                 <!-- 100 "tokens" here correspond to approx. 5-10 lines of code -->
1310                 <minimumTokens>101</minimumTokens>
1311                 <printFailingErrors>true</printFailingErrors>
1312                 <excludeRoots>
1313                   <!-- FIXME: this should be a wildcard, but PMD is brain-damaged and does
1314                               not understand path prefixes nor wildcards. Details are available
1315                               at http://stackoverflow.com/questions/15647771/pmd-exclude-not-working
1316                               Hence people introducing new generated sources have to include
1317                               PMD config too.
1318                    -->
1319                   <excludeRoot>${project.build.directory}/generated-sources</excludeRoot>
1320                   <excludeRoot>${project.build.directory}/generated-test-sources</excludeRoot>
1321                 </excludeRoots>
1322                 <linkXRef>false</linkXRef>
1323               </configuration>
1324             </execution>
1325           </executions>
1326         </plugin>
1327         <plugin>
1328           <artifactId>maven-compiler-plugin</artifactId>
1329           <version>3.8.0</version>
1330           <configuration>
1331             <source>1.8</source>
1332             <target>1.8</target>
1333             <showWarnings>true</showWarnings>
1334             <compilerArgs>
1335               <arg>-parameters</arg>
1336               <arg>-Xlint:deprecation</arg>
1337               <arg>-Xlint:unchecked</arg>
1338             </compilerArgs>
1339           </configuration>
1340         </plugin>
1341         <plugin>
1342           <artifactId>maven-enforcer-plugin</artifactId>
1343           <version>${enforcer.version}</version>
1344         </plugin>
1345         <plugin>
1346           <artifactId>maven-failsafe-plugin</artifactId>
1347           <version>2.22.1</version>
1348         </plugin>
1349         <plugin>
1350           <artifactId>maven-invoker-plugin</artifactId>
1351           <version>3.1.0</version>
1352         </plugin>
1353         <plugin>
1354           <artifactId>maven-jar-plugin</artifactId>
1355           <version>3.1.1</version>
1356         </plugin>
1357         <plugin>
1358           <artifactId>maven-dependency-plugin</artifactId>
1359           <executions>
1360             <execution>
1361               <id>unpack-license</id>
1362               <phase>generate-resources</phase>
1363               <goals><goal>unpack</goal></goals>
1364               <configuration>
1365                 <artifactItems>
1366                   <artifactItem>
1367                     <groupId>org.opendaylight.odlparent</groupId>
1368                     <artifactId>odl-license</artifactId>
1369                     <version>4.0.9-SNAPSHOT</version>
1370                   </artifactItem>
1371                 </artifactItems>
1372                 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1373                 <excludes>META-INF/**</excludes>
1374               </configuration>
1375             </execution>
1376           </executions>
1377         </plugin>
1378
1379         <plugin>
1380           <artifactId>maven-plugin-plugin</artifactId>
1381           <version>3.5.2</version>
1382         </plugin>
1383
1384         <plugin>
1385           <artifactId>maven-remote-resources-plugin</artifactId>
1386           <version>1.6.0</version>
1387         </plugin>
1388         <plugin>
1389           <artifactId>maven-resources-plugin</artifactId>
1390           <version>3.1.0</version>
1391         </plugin>
1392         <plugin>
1393           <artifactId>maven-shade-plugin</artifactId>
1394           <version>3.2.1</version>
1395         </plugin>
1396         <plugin>
1397           <artifactId>maven-source-plugin</artifactId>
1398           <version>3.0.1</version>
1399           <executions>
1400             <execution>
1401               <id>attach-sources</id>
1402               <phase>verify</phase>
1403               <goals>
1404                 <goal>jar-no-fork</goal>
1405               </goals>
1406             </execution>
1407           </executions>
1408         </plugin>
1409         <plugin>
1410           <artifactId>maven-surefire-plugin</artifactId>
1411           <version>2.22.1</version>
1412           <configuration>
1413             <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1414             <trimStackTrace>false</trimStackTrace>
1415           </configuration>
1416         </plugin>
1417
1418         <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1419         <plugin>
1420           <!-- Support Blueprint XML construction using annotations -->
1421           <groupId>org.apache.aries.blueprint</groupId>
1422           <artifactId>blueprint-maven-plugin</artifactId>
1423           <version>1.10.0</version>
1424           <!-- TODO remove dependencies when we bump from 1.10.0 to 1.11.0 (or 1.10.1);
1425              see https://jira.opendaylight.org/browse/ODLPARENT-167 & https://jira.apache.org/jira/browse/ARIES-1826 -->
1426           <dependencies>
1427             <dependency>
1428               <groupId>org.apache.xbean</groupId>
1429               <artifactId>xbean-finder-shaded</artifactId>
1430               <version>4.12</version>
1431             </dependency>
1432           </dependencies>
1433           <configuration>
1434             <scanPaths>
1435               <scanPath>org.opendaylight</scanPath>
1436             </scanPaths>
1437           </configuration>
1438           <executions>
1439             <execution>
1440               <goals>
1441                 <goal>blueprint-generate</goal>
1442               </goals>
1443             </execution>
1444           </executions>
1445         </plugin>
1446
1447         <plugin>
1448           <groupId>org.apache.felix</groupId>
1449           <artifactId>maven-bundle-plugin</artifactId>
1450           <version>4.1.0</version>
1451           <extensions>true</extensions>
1452           <configuration>
1453             <instructions>
1454               <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1455                    so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1456                    and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present.  -->
1457               <Include-Resource>{maven-resources},${project.build.directory}/classes/LICENSE,META-INF/git.properties=-${project.build.directory}/classes/META-INF/git.properties</Include-Resource>
1458
1459               <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1460                    to generate Import-Service and Export-Service headers. -->
1461               <_removeheaders>Import-Service,Export-Service</_removeheaders>
1462             </instructions>
1463           </configuration>
1464         </plugin>
1465
1466         <plugin>
1467           <groupId>org.apache.karaf.tooling</groupId>
1468           <artifactId>karaf-maven-plugin</artifactId>
1469           <version>${karaf.version}</version>
1470         </plugin>
1471
1472         <plugin>
1473           <groupId>org.apache.servicemix.tooling</groupId>
1474           <artifactId>depends-maven-plugin</artifactId>
1475           <version>1.4.0</version>
1476           <executions>
1477             <execution>
1478               <id>generate-depends-file</id>
1479               <goals>
1480                 <goal>generate-depends-file</goal>
1481               </goals>
1482             </execution>
1483           </executions>
1484         </plugin>
1485
1486         <!-- FIXME: ODLPARENT-190: remove this plugin declaration -->
1487         <plugin>
1488           <groupId>org.codehaus.enunciate</groupId>
1489           <artifactId>maven-enunciate-plugin</artifactId>
1490           <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1491           <version>1.31</version>
1492         </plugin>
1493         <plugin>
1494           <groupId>com.webcohesion.enunciate</groupId>
1495           <artifactId>enunciate-maven-plugin</artifactId>
1496           <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1497           <version>2.11.1</version>
1498         </plugin>
1499
1500         <plugin>
1501           <groupId>org.codehaus.groovy.maven</groupId>
1502           <artifactId>gmaven-plugin</artifactId>
1503           <version>1.0</version>
1504         </plugin>
1505         <plugin>
1506           <groupId>org.codehaus.mojo</groupId>
1507           <artifactId>build-helper-maven-plugin</artifactId>
1508           <version>3.0.0</version>
1509         </plugin>
1510         <plugin>
1511           <groupId>org.codehaus.mojo</groupId>
1512           <artifactId>findbugs-maven-plugin</artifactId>
1513           <version>3.0.5</version>
1514           <dependencies>
1515             <dependency>
1516               <groupId>org.opendaylight.odlparent</groupId>
1517               <artifactId>findbugs</artifactId>
1518               <version>4.0.9-SNAPSHOT</version>
1519             </dependency>
1520           </dependencies>
1521           <configuration>
1522             <plugins>
1523               <plugin>
1524                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1525                 <artifactId>bug-pattern</artifactId>
1526                 <!-- NOTE: This version SHOULD be kept in sync with the same version in the new spotbugs-maven-plugin below,
1527                      but 1.4.1 broke compability with (the version we use of) FindBugs, so must keep this at 1.4.0. -->
1528                 <version>1.4.0</version>
1529               </plugin>
1530             </plugins>
1531             <!--
1532               Enables analysis which takes more memory but finds more bugs.
1533               If you run out of memory, changes the value of the effort element
1534               to 'Low'.
1535             -->
1536             <effort>Max</effort>
1537             <!-- Reports all bugs (other values are medium and max) -->
1538             <threshold>Low</threshold>
1539             <!-- Build doesn't fail if problems are found -->
1540             <failOnError>false</failOnError>
1541             <!-- References the excluded rules -->
1542             <excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
1543             <!-- Produces XML report -->
1544             <xmlOutput>true</xmlOutput>
1545             <!-- Configures the directory in which the XML report is created -->
1546             <findbugsXmlOutputDirectory>${project.build.directory}/findbugs</findbugsXmlOutputDirectory>
1547           </configuration>
1548           <executions>
1549               <!--
1550                 Ensures that FindBugs inspects source code when project is compiled.
1551               -->
1552               <execution>
1553                 <id>analyze-compile</id>
1554                 <phase>compile</phase>
1555                 <goals>
1556                   <goal>check</goal>
1557                 </goals>
1558               </execution>
1559           </executions>
1560         </plugin>
1561         <plugin>
1562           <groupId>com.github.spotbugs</groupId>
1563           <artifactId>spotbugs-maven-plugin</artifactId>
1564           <version>3.1.8</version>
1565           <dependencies>
1566             <dependency>
1567               <groupId>com.github.spotbugs</groupId>
1568               <artifactId>spotbugs</artifactId>
1569               <version>3.1.9</version>
1570             </dependency>
1571             <dependency>
1572               <groupId>org.opendaylight.odlparent</groupId>
1573               <artifactId>spotbugs</artifactId>
1574               <version>4.0.9-SNAPSHOT</version>
1575             </dependency>
1576           </dependencies>
1577           <configuration>
1578             <plugins>
1579               <plugin>
1580                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1581                 <artifactId>bug-pattern</artifactId>
1582                 <!-- NOTE: This version MUST be kept in sync with the same version in the old findbugs-maven-plugin above, if possible -->
1583                 <version>1.4.1</version>
1584               </plugin>
1585             </plugins>
1586             <!--
1587               Enables analysis which takes more memory but finds more bugs.
1588               If you run out of memory, changes the value of the effort element
1589               to 'Low'.
1590             -->
1591             <effort>Max</effort>
1592             <!-- Reports all bugs (other values are medium and max) -->
1593             <threshold>Low</threshold>
1594             <!-- Build doesn't fail if problems are found -->
1595             <failOnError>false</failOnError>
1596             <!-- References the excluded rules -->
1597             <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1598             <!-- Produces XML report -->
1599             <xmlOutput>true</xmlOutput>
1600             <!-- Configures the directory in which the XML report is created -->
1601             <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1602           </configuration>
1603           <executions>
1604             <!--
1605               Ensures that SpotBugs inspects source code when project is compiled.
1606             -->
1607             <execution>
1608               <id>analyze-compile</id>
1609               <phase>compile</phase>
1610               <goals>
1611                 <goal>check</goal>
1612               </goals>
1613             </execution>
1614           </executions>
1615         </plugin>
1616         <plugin>
1617           <groupId>org.codehaus.mojo</groupId>
1618           <artifactId>properties-maven-plugin</artifactId>
1619           <version>1.0.0</version>
1620         </plugin>
1621         <plugin>
1622           <groupId>org.eclipse.xtend</groupId>
1623           <artifactId>xtend-maven-plugin</artifactId>
1624           <!-- NOTE: This version MUST be kept in sync with the Xtend version in <dependencyManagement> -->
1625           <version>2.16.0</version>
1626           <executions>
1627             <execution>
1628               <goals>
1629                 <goal>compile</goal>
1630                 <goal>testCompile</goal>
1631               </goals>
1632               <configuration>
1633                 <outputDirectory>${project.build.directory}/generated-sources/xtend</outputDirectory>
1634                 <testOutputDirectory>${project.build.directory}/generated-test-sources/xtend</testOutputDirectory>
1635               </configuration>
1636             </execution>
1637           </executions>
1638         </plugin>
1639         <plugin>
1640           <groupId>org.eclipse.m2e</groupId>
1641           <artifactId>lifecycle-mapping</artifactId>
1642           <version>1.0.0</version>
1643           <configuration>
1644             <lifecycleMappingMetadata>
1645               <pluginExecutions>
1646                 <pluginExecution>
1647                   <pluginExecutionFilter>
1648                     <groupId>org.apache.felix</groupId>
1649                     <artifactId>maven-bundle-plugin</artifactId>
1650                     <versionRange>[1.0,)</versionRange>
1651                     <goals>
1652                       <goal>manifest</goal>
1653                     </goals>
1654                   </pluginExecutionFilter>
1655                   <action>
1656                     <execute/>
1657                   </action>
1658                 </pluginExecution>
1659                 <pluginExecution>
1660                   <pluginExecutionFilter>
1661                     <groupId>org.apache.maven.plugins</groupId>
1662                     <artifactId>maven-enforcer-plugin</artifactId>
1663                     <versionRange>[1.0.0,)</versionRange>
1664                     <goals>
1665                       <goal>enforce</goal>
1666                     </goals>
1667                   </pluginExecutionFilter>
1668                   <action>
1669                     <ignore/>
1670                   </action>
1671                 </pluginExecution>
1672                 <pluginExecution>
1673                   <pluginExecutionFilter>
1674                     <groupId>org.apache.maven.plugins</groupId>
1675                     <artifactId>maven-dependency-plugin</artifactId>
1676                     <versionRange>[2.10,)</versionRange>
1677                     <goals>
1678                       <goal>unpack</goal>
1679                     </goals>
1680                   </pluginExecutionFilter>
1681                   <action>
1682                     <ignore/>
1683                   </action>
1684                 </pluginExecution>
1685                 <pluginExecution>
1686                   <pluginExecutionFilter>
1687                     <groupId>org.apache.maven.plugins</groupId>
1688                     <artifactId>maven-pmd-plugin</artifactId>
1689                     <versionRange>[3.6,)</versionRange>
1690                     <goals>
1691                       <goal>cpd-check</goal>
1692                     </goals>
1693                   </pluginExecutionFilter>
1694                   <action>
1695                     <ignore/>
1696                   </action>
1697                 </pluginExecution>
1698                 <!-- The plugin will eventually be removed, remove this too at that point -->
1699                 <pluginExecution>
1700                   <pluginExecutionFilter>
1701                     <groupId>org.apache.maven.plugins</groupId>
1702                     <artifactId>maven-antrun-plugin</artifactId>
1703                     <versionRange>[1.8,)</versionRange>
1704                     <goals>
1705                       <goal>run</goal>
1706                     </goals>
1707                   </pluginExecutionFilter>
1708                   <action>
1709                     <ignore/>
1710                   </action>
1711                 </pluginExecution>
1712                 <pluginExecution>
1713                   <pluginExecutionFilter>
1714                     <groupId>org.apache.servicemix.tooling</groupId>
1715                     <artifactId>depends-maven-plugin</artifactId>
1716                     <versionRange>[1.2,)</versionRange>
1717                     <goals>
1718                       <goal>generate-depends-file</goal>
1719                     </goals>
1720                   </pluginExecutionFilter>
1721                   <action>
1722                     <execute/>
1723                   </action>
1724                 </pluginExecution>
1725                 <pluginExecution>
1726                   <pluginExecutionFilter>
1727                     <groupId>org.jacoco</groupId>
1728                     <artifactId>jacoco-maven-plugin</artifactId>
1729                     <versionRange>[0.7.0,)</versionRange>
1730                     <goals>
1731                       <goal>prepare-agent</goal>
1732                     </goals>
1733                   </pluginExecutionFilter>
1734                   <action>
1735                     <ignore/>
1736                   </action>
1737                 </pluginExecution>
1738
1739                 <pluginExecution>
1740                   <pluginExecutionFilter>
1741                     <groupId>org.ops4j.pax.exam</groupId>
1742                     <artifactId>maven-paxexam-plugin</artifactId>
1743                     <versionRange>[1.2.4,)</versionRange>
1744                     <goals>
1745                       <goal>generate-depends-file</goal>
1746                     </goals>
1747                   </pluginExecutionFilter>
1748                   <action>
1749                     <ignore/>
1750                   </action>
1751                 </pluginExecution>
1752
1753                 <pluginExecution>
1754                   <pluginExecutionFilter>
1755                     <groupId>org.basepom.maven</groupId>
1756                     <artifactId>
1757                       duplicate-finder-maven-plugin
1758                     </artifactId>
1759                     <versionRange>[1.2.1,)</versionRange>
1760                     <goals>
1761                       <goal>check</goal>
1762                     </goals>
1763                   </pluginExecutionFilter>
1764                   <action>
1765                     <ignore></ignore>
1766                   </action>
1767                 </pluginExecution>
1768               </pluginExecutions>
1769             </lifecycleMappingMetadata>
1770           </configuration>
1771         </plugin>
1772
1773         <plugin>
1774           <groupId>org.jacoco</groupId>
1775           <artifactId>jacoco-maven-plugin</artifactId>
1776           <configuration>
1777             <!-- Note: This exclusion list should match <sonar.exclusions>
1778                        property above -->
1779             <excludes>
1780               <exclude>**/gen/**</exclude>
1781               <exclude>**/generated-sources/**</exclude>
1782               <exclude>**/generated-test-sources/**</exclude>
1783               <exclude>**/yang-gen/**</exclude>
1784               <exclude>**/yang-gen-config/**</exclude>
1785               <exclude>**/yang-gen-sal/**</exclude>
1786               <exclude>**/yang-gen-code/**</exclude>
1787               <exclude>**/pax/**</exclude>
1788             </excludes>
1789           </configuration>
1790         </plugin>
1791
1792         <plugin>
1793           <groupId>org.ops4j.pax.exam</groupId>
1794           <artifactId>maven-paxexam-plugin</artifactId>
1795           <version>1.2.4</version>
1796         </plugin>
1797
1798         <plugin>
1799           <groupId>org.codehaus.mojo</groupId>
1800           <artifactId>jdepend-maven-plugin</artifactId>
1801           <version>2.0</version>
1802           <executions>
1803             <execution>
1804               <phase>site</phase>
1805               <goals>
1806                 <goal>generate-no-fork</goal>
1807               </goals>
1808             </execution>
1809           </executions>
1810         </plugin>
1811
1812         <!-- When updating this version, consider antl4-runtime above -->
1813         <plugin>
1814           <groupId>org.antlr</groupId>
1815           <artifactId>antlr4-maven-plugin</artifactId>
1816           <version>4.7.1</version>
1817         </plugin>
1818       </plugins>
1819     </pluginManagement>
1820
1821     <plugins>
1822       <plugin>
1823         <artifactId>maven-enforcer-plugin</artifactId>
1824         <executions>
1825           <execution>
1826             <id>enforce-banned-dependencies</id>
1827             <goals>
1828               <goal>enforce</goal>
1829             </goals>
1830             <configuration>
1831               <rules>
1832                 <bannedDependencies>
1833                   <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>
1834                   <excludes>
1835                     <exclude>org.mockito:mockito-all</exclude>
1836                     <!-- https://github.com/facebook/facebook-oss-pom/blob/master/pom.xml#L331-L336 -->
1837                     <!-- Clashes with com.google.code.findbugs:annotations and having both jars -->
1838                     <!-- as a dependency then clashes with the dependency checker (because it   -->
1839                     <!-- is not very good at handling annotations). Use the annotations jar     -->
1840                     <!-- instead which has all jsr305 annotations and the additional findbugs   -->
1841                     <!-- stuff. -->
1842                     <exclude>com.google.code.findbugs:jsr305</exclude>
1843                     <exclude>net.jcip:jcip-annotations</exclude>
1844                   </excludes>
1845                 </bannedDependencies>
1846               </rules>
1847               <fail>true</fail>
1848             </configuration>
1849           </execution>
1850         </executions>
1851       </plugin>
1852       <plugin>
1853         <groupId>org.basepom.maven</groupId>
1854         <artifactId>duplicate-finder-maven-plugin</artifactId>
1855         <version>1.3.0</version>
1856         <executions>
1857           <execution>
1858             <id>find-duplicate-classpath-entries</id>
1859             <phase>verify</phase>
1860             <goals>
1861               <goal>check</goal>
1862             </goals>
1863           </execution>
1864         </executions>
1865         <configuration>
1866             <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1867             <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1868             <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1869             <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1870             <printEqualFiles>false</printEqualFiles>
1871             <quiet>true</quiet>
1872             <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1873                  as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1874                  we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1875                  also ignore: -->
1876             <ignoredResourcePatterns>
1877               <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1878               <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1879               <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1880               <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1881               <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1882               <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1883             </ignoredResourcePatterns>
1884             <ignoredClassPatterns>
1885               <ignoredClassPattern>META-INF.versions.*$</ignoredClassPattern>
1886             </ignoredClassPatterns>
1887             <ignoredDependencies>
1888               <ignoredDependency>
1889                 <groupId>org.slf4j</groupId>
1890                 <artifactId>slf4j-simple</artifactId>
1891               </ignoredDependency>
1892               <ignoredDependency>
1893                 <groupId>org.opendaylight.odlparent</groupId>
1894                 <artifactId>opendaylight-karaf-empty</artifactId>
1895               </ignoredDependency>
1896             </ignoredDependencies>
1897         </configuration>
1898       </plugin>
1899       <plugin>
1900         <artifactId>maven-dependency-plugin</artifactId>
1901       </plugin>
1902       <plugin>
1903         <artifactId>maven-checkstyle-plugin</artifactId>
1904       </plugin>
1905       <plugin>
1906           <artifactId>maven-pmd-plugin</artifactId>
1907       </plugin>
1908       <plugin>
1909         <artifactId>maven-source-plugin</artifactId>
1910       </plugin>
1911       <plugin>
1912         <artifactId>maven-javadoc-plugin</artifactId>
1913       </plugin>
1914
1915       <!-- Jacoco / Sonar -->
1916       <plugin>
1917         <groupId>org.jacoco</groupId>
1918         <artifactId>jacoco-maven-plugin</artifactId>
1919         <executions>
1920           <execution>
1921             <id>pre-unit-test</id>
1922             <goals>
1923               <goal>prepare-agent</goal>
1924             </goals>
1925             <configuration>
1926               <destFile>${jacoco.destFile}</destFile>
1927             </configuration>
1928           </execution>
1929         </executions>
1930       </plugin>
1931
1932       <plugin>
1933         <groupId>com.alexecollins.maven.plugin</groupId>
1934         <artifactId>script-maven-plugin</artifactId>
1935         <version>1.0.0</version>
1936         <executions>
1937            <execution>
1938              <phase>prepare-package</phase>
1939              <goals>
1940                <goal>execute</goal>
1941              </goals>
1942              <configuration>
1943                <script>
1944                  // BeanShell is 2005-ish and thus doesn't support generics, varargs, try-with-resources or lambdas, so:
1945                  // (If we do this kind of inline code in pom.xml more often, we shold have a new simple module in
1946                  //  odl-parent, which has *.java that we compile, and then just depend on it here and call one-line
1947                  //  static class methods only - it will be MUCH easier to write!)
1948                  void copy(File root, String glob, File target) {
1949                      java.nio.file.DirectoryStream dirStream = java.nio.file.Files.newDirectoryStream(root.toPath(), glob);
1950                      Iterator dirStreamIterator = dirStream.iterator();
1951                      while (dirStreamIterator.hasNext()) {
1952                          java.nio.file.Path path = dirStreamIterator.next();
1953                          java.nio.file.Files.copy(path, new File(target, path.toFile().getName()).toPath(),
1954                              new java.nio.file.CopyOption[] {
1955                                  java.nio.file.StandardCopyOption.REPLACE_EXISTING,
1956                                  java.nio.file.StandardCopyOption.COPY_ATTRIBUTES
1957                              }
1958                          );
1959                      }
1960                      dirStream.close();
1961                  }
1962
1963                  File gitRepoRootDir = project.basedir;
1964                  while (!new File(gitRepoRootDir, ".git").exists() &amp;&amp; gitRepoRootDir.getParentFile() != null) {
1965                      gitRepoRootDir = gitRepoRootDir.getParentFile();
1966                  }
1967
1968                  File target = new File(project.build.outputDirectory);
1969                  target.mkdirs();
1970                  copy(gitRepoRootDir, "README*", target);
1971                  copy(gitRepoRootDir, "CONTRIBUTING*", target);
1972                  copy(gitRepoRootDir, "PROJECT_INFO.yaml", target);
1973                </script>
1974              </configuration>
1975            </execution>
1976          </executions>
1977          <dependencies>
1978            <dependency>
1979              <groupId>org.apache-extras.beanshell</groupId>
1980              <artifactId>bsh</artifactId>
1981              <version>2.0b6</version>
1982            </dependency>
1983          </dependencies>
1984       </plugin>
1985     </plugins>
1986   </build>
1987
1988   <reporting>
1989     <plugins>
1990       <plugin>
1991         <artifactId>maven-checkstyle-plugin</artifactId>
1992         <version>3.0.0</version>
1993       </plugin>
1994
1995       <!-- FIXME: activate this
1996       <plugin>
1997         <artifactId>maven-project-info-reports-plugin</artifactId>
1998         <version>${projectinfo}</version>
1999       </plugin-->
2000       <plugin>
2001         <groupId>org.codehaus.mojo</groupId>
2002         <artifactId>jdepend-maven-plugin</artifactId>
2003         <reportSets>
2004           <reportSet>
2005             <reports>
2006               <report>generate-no-fork</report>
2007             </reports>
2008           </reportSet>
2009         </reportSets>
2010       </plugin>
2011     </plugins>
2012   </reporting>
2013
2014   <profiles>
2015     <profile>
2016       <!-- On JDK9-and-later findbugs fails -->
2017       <id>jdk9-findbugs</id>
2018       <activation>
2019         <jdk>[9,)</jdk>
2020       </activation>
2021       <properties>
2022         <findbugs.skip>true</findbugs.skip>
2023       </properties>
2024     </profile>
2025   </profiles>
2026
2027 </project>
2028