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