Bump Guava to 29.0
[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>8.0.0-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     <maven.compiler.release>11</maven.compiler.release>
45
46     <!-- Used in controller, genius, infrautils, netconf, netvirt, ovsdb, serviceutils -->
47     <karaf.version>4.2.9</karaf.version>
48
49     <!-- Supporting Libraries -->
50     <!-- Only used internally -->
51     <bouncycastle.version>1.66</bouncycastle.version>
52
53     <!-- JaCoCo configuration, by default tied to Sonar configuration, but can be overridden separately
54          to allow projects to report Sonar values from the entire project. -->
55     <jacoco.destFile>${project.build.directory}/code-coverage/jacoco.exec</jacoco.destFile>
56     <jacoco.dataFile>${jacoco.destFile}</jacoco.dataFile>
57
58     <!-- Default Sonar configuration -->
59     <sonar-jacoco-listeners.version>3.8</sonar-jacoco-listeners.version>
60     <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
61
62     <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
63     <sonar.exclusions>**/gen/**,**/generated-sources/**,**/generated-test-sources/**,**/yang-gen/**,**/yang-gen-config/**,**/yang-gen-sal/**,**/yang-gen-code/**,**/pax/**</sonar.exclusions>
64
65     <!-- Opt-in code quality checks -->
66     <pmd.cpd.fail>false</pmd.cpd.fail>                  <!-- Copy/paste detection -->
67     <duplicate-finder.skip>true</duplicate-finder.skip> <!-- Classpath duplicates -->
68
69     <!-- Redirect test output to files (overridable) -->
70     <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
71
72     <!-- Opt-out from maven-checkstyle-plugin failing the build on violations. Defaults
73          to true. Set to 'false' in pom.xml of project which desires to not enforce
74          no reported violations. -->
75     <odlparent.checkstyle.enforce>true</odlparent.checkstyle.enforce>
76
77     <!-- Opt-in into modernizer-maven-plugin failing the build on violations. Defaults
78          to false. Set to 'true' in pom.xml of project which desires to enforce
79          no reported violations. -->
80     <odlparent.modernizer.enforce>false</odlparent.modernizer.enforce>
81
82     <!-- Target release for modernizer-maven-plugin. It defaults to '1.8',
83          meaning Java 8, but can be set to any version in pom.xml of project
84          which desires to override it (such as '1.11' for Java 11). -->
85     <odlparent.modernizer.target>1.8</odlparent.modernizer.target>
86
87     <!-- Opt-out from spotbugs-maven-plugin failing the build on violations. Defaults
88          to true. Set to 'false' in pom.xml of project which desires to not enforce
89          no reported violations. -->
90     <odlparent.spotbugs.enforce>true</odlparent.spotbugs.enforce>
91   </properties>
92
93   <dependencyManagement>
94     <dependencies>
95
96       <dependency>
97         <groupId>org.opendaylight.odlparent</groupId>
98         <artifactId>odlparent-artifacts</artifactId>
99         <version>8.0.0-SNAPSHOT</version>
100         <scope>import</scope>
101         <type>pom</type>
102       </dependency>
103
104       <!-- We import Karaf dependencies to ensure we converge by default on the versions used there -->
105       <dependency>
106         <groupId>org.apache.karaf.features</groupId>
107         <artifactId>framework</artifactId>
108         <version>${karaf.version}</version>
109         <scope>import</scope>
110         <type>pom</type>
111       </dependency>
112
113       <!-- Build tool dependencies (normally not here in <dependencies>,
114            but in a <dependency> in <pluginManagement> but for Checkstyle this
115            is required so that we can share the same version of Checkstyle
116            for both the Maven plugin below as well as  for custom Checkstyle
117            check rule projects, such as yangtools' checkstyle-logging) -->
118       <dependency>
119         <groupId>com.puppycrawl.tools</groupId>
120         <artifactId>checkstyle</artifactId>
121         <!-- This should match the plugin management on maven-checkstyle-plugin below -->
122         <version>8.34</version>
123       </dependency>
124
125       <!-- Testing Dependencies -->
126       <!-- JUnit, Hamcrest, Mockito and PowerMock need to be kept in sync -->
127       <dependency>
128         <groupId>junit</groupId>
129         <artifactId>junit</artifactId>
130         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
131         <version>4.13</version>
132         <scope>test</scope>
133       </dependency>
134       <dependency>
135          <groupId>org.skyscreamer</groupId>
136          <artifactId>jsonassert</artifactId>
137          <version>1.5.0</version>
138          <scope>test</scope>
139       </dependency>
140       <dependency>
141         <groupId>org.mockito</groupId>
142         <artifactId>mockito-core</artifactId>
143         <version>3.3.3</version>
144         <scope>test</scope>
145       </dependency>
146       <dependency>
147         <groupId>org.mockito</groupId>
148         <artifactId>mockito-inline</artifactId>
149         <version>3.3.3</version>
150         <scope>test</scope>
151       </dependency>
152       <dependency>
153         <groupId>org.hamcrest</groupId>
154         <artifactId>hamcrest</artifactId>
155         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
156         <version>2.2</version>
157         <scope>test</scope>
158       </dependency>
159       <dependency>
160         <groupId>org.hamcrest</groupId>
161         <artifactId>hamcrest-core</artifactId>
162         <version>2.2</version>
163         <scope>test</scope>
164       </dependency>
165       <dependency>
166         <groupId>org.hamcrest</groupId>
167         <artifactId>hamcrest-library</artifactId>
168         <version>2.2</version>
169         <scope>test</scope>
170       </dependency>
171       <dependency>
172         <groupId>com.google.truth</groupId>
173         <artifactId>truth</artifactId>
174         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
175         <version>1.0.1</version>
176         <scope>test</scope>
177       </dependency>
178       <dependency>
179         <groupId>com.google.truth.extensions</groupId>
180         <artifactId>truth-java8-extension</artifactId>
181         <version>1.0.1</version>
182         <scope>test</scope>
183       </dependency>
184       <dependency>
185         <groupId>org.awaitility</groupId>
186         <artifactId>awaitility</artifactId>
187         <version>3.0.0</version>
188         <scope>test</scope>
189       </dependency>
190       <dependency>
191         <groupId>org.awaitility</groupId>
192         <artifactId>awaitility-proxy</artifactId>
193         <version>3.0.0</version>
194         <scope>test</scope>
195       </dependency>
196       <dependency>
197         <groupId>org.powermock</groupId>
198         <artifactId>powermock-api-mockito2</artifactId>
199         <version>2.0.7</version>
200         <scope>test</scope>
201       </dependency>
202       <dependency>
203         <groupId>org.powermock</groupId>
204         <artifactId>powermock-api-support</artifactId>
205         <version>2.0.7</version>
206         <scope>test</scope>
207       </dependency>
208       <dependency>
209         <groupId>org.powermock</groupId>
210         <artifactId>powermock-core</artifactId>
211         <version>2.0.7</version>
212         <scope>test</scope>
213       </dependency>
214       <dependency>
215         <groupId>org.powermock</groupId>
216         <artifactId>powermock-module-junit4</artifactId>
217         <version>2.0.7</version>
218         <scope>test</scope>
219       </dependency>
220       <dependency>
221         <groupId>org.powermock</groupId>
222         <artifactId>powermock-reflect</artifactId>
223         <version>2.0.7</version>
224         <scope>test</scope>
225       </dependency>
226
227       <!--
228            Annotation Processors
229        -->
230       <dependency>
231         <!-- Generates immutable implementations, builders, the works -->
232         <groupId>org.immutables</groupId>
233         <artifactId>value</artifactId>
234         <classifier>annotations</classifier>
235         <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
236         <version>2.7.5</version>
237         <!-- Must be provided; scope=test here breaks APT in Eclipse :( -->
238         <scope>provided</scope>
239       </dependency>
240
241       <dependency>
242         <!-- Generates META-INF/services entries for ServiceLoader -->
243         <groupId>org.kohsuke.metainf-services</groupId>
244         <artifactId>metainf-services</artifactId>
245         <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
246         <version>1.8</version>
247         <optional>true</optional>
248         <scope>provided</scope>
249       </dependency>
250
251       <!--
252            Supporting Libraries
253        -->
254       <dependency>
255         <groupId>org.slf4j</groupId>
256         <artifactId>jcl-over-slf4j</artifactId>
257         <version>1.7.28</version>
258       </dependency>
259       <dependency>
260         <groupId>org.slf4j</groupId>
261         <artifactId>slf4j-api</artifactId>
262         <version>1.7.28</version>
263       </dependency>
264       <dependency>
265         <groupId>org.slf4j</groupId>
266         <artifactId>slf4j-log4j12</artifactId>
267         <version>1.7.28</version>
268       </dependency>
269       <dependency>
270         <groupId>org.slf4j</groupId>
271         <artifactId>log4j-over-slf4j</artifactId>
272         <version>1.7.28</version>
273       </dependency>
274       <dependency>
275         <groupId>org.slf4j</groupId>
276         <artifactId>slf4j-simple</artifactId>
277         <version>1.7.28</version>
278         <scope>test</scope>
279       </dependency>
280       <dependency>
281         <groupId>ch.qos.logback</groupId>
282         <artifactId>logback-core</artifactId>
283         <version>1.2.3</version>
284       </dependency>
285       <dependency>
286         <groupId>ch.qos.logback</groupId>
287         <artifactId>logback-classic</artifactId>
288         <version>1.2.3</version>
289       </dependency>
290
291       <!-- log4j2 -->
292       <dependency>
293         <groupId>org.apache.logging.log4j</groupId>
294         <artifactId>log4j-bom</artifactId>
295         <version>2.13.3</version>
296         <scope>import</scope>
297         <type>pom</type>
298       </dependency>
299
300       <dependency>
301         <groupId>com.google.guava</groupId>
302         <artifactId>guava</artifactId>
303         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
304         <version>29.0-jre</version>
305         <exclusions>
306           <exclusion>
307             <!-- Do not leak JSR305 onto the classpath by default -->
308             <groupId>com.google.code.findbugs</groupId>
309             <artifactId>jsr305</artifactId>
310           </exclusion>
311         </exclusions>
312       </dependency>
313       <dependency>
314         <groupId>com.google.guava</groupId>
315         <artifactId>guava-testlib</artifactId>
316         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
317         <version>29.0-jre</version>
318         <scope>test</scope>
319         <exclusions>
320           <exclusion>
321             <!-- Do not leak JSR305 onto the classpath by default -->
322             <groupId>com.google.code.findbugs</groupId>
323             <artifactId>jsr305</artifactId>
324           </exclusion>
325         </exclusions>
326       </dependency>
327
328       <dependency>
329         <groupId>commons-beanutils</groupId>
330         <artifactId>commons-beanutils</artifactId>
331         <version>1.9.4</version>
332       </dependency>
333       <dependency>
334         <groupId>org.apache.commons</groupId>
335         <artifactId>commons-lang3</artifactId>
336         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
337         <version>3.11</version>
338       </dependency>
339       <dependency>
340         <groupId>org.apache.commons</groupId>
341         <artifactId>commons-text</artifactId>
342         <version>1.9</version>
343       </dependency>
344       <dependency>
345         <groupId>commons-lang</groupId>
346         <artifactId>commons-lang</artifactId>
347         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
348         <version>2.6</version>
349       </dependency>
350       <dependency>
351         <groupId>commons-codec</groupId>
352         <artifactId>commons-codec</artifactId>
353         <version>1.15</version>
354       </dependency>
355       <!-- Jersey for JAXRS -->
356       <dependency>
357         <groupId>javax.ws.rs</groupId>
358         <artifactId>javax.ws.rs-api</artifactId>
359         <version>2.1.1</version>
360       </dependency>
361       <dependency>
362         <groupId>org.glassfish.jersey</groupId>
363         <artifactId>jersey-bom</artifactId>
364         <version>2.27</version>
365         <type>pom</type>
366         <scope>import</scope>
367       </dependency>
368
369       <dependency>
370         <groupId>org.checkerframework</groupId>
371         <artifactId>checker-qual</artifactId>
372         <version>2.5.8</version>
373       </dependency>
374       <dependency>
375         <groupId>com.google.errorprone</groupId>
376         <artifactId>error_prone_annotations</artifactId>
377         <version>2.3.3</version>
378       </dependency>
379
380       <dependency>
381         <groupId>javax.activation</groupId>
382         <artifactId>activation</artifactId>
383         <version>1.1.1</version>
384       </dependency>
385       <dependency>
386         <groupId>javax.annotation</groupId>
387         <artifactId>javax.annotation-api</artifactId>
388         <version>1.3.1</version>
389         <optional>true</optional>
390       </dependency>
391       <dependency>
392         <groupId>xml-apis</groupId>
393         <artifactId>xml-apis</artifactId>
394         <version>1.4.01</version>
395       </dependency>
396
397       <!-- Plugin integration -->
398       <dependency>
399         <groupId>net.java.dev.stax-utils</groupId>
400         <artifactId>stax-utils</artifactId>
401         <version>20070216</version>
402       </dependency>
403       <dependency>
404         <groupId>org.sonatype.plexus</groupId>
405         <artifactId>plexus-build-api</artifactId>
406         <version>0.0.7</version>
407       </dependency>
408       <dependency>
409         <groupId>org.codehaus.plexus</groupId>
410         <artifactId>plexus-slf4j-logging</artifactId>
411         <version>1.1</version>
412       </dependency>
413
414       <!-- These three need to be consistent:
415         jackson-2.10.4 needs woodstox-6.2.x
416         woodstox-5.3+ needs stax2-api-4.2.x
417         -->
418       <dependency>
419         <groupId>org.codehaus.woodstox</groupId>
420         <artifactId>stax2-api</artifactId>
421         <version>4.2.1</version>
422       </dependency>
423       <dependency>
424         <groupId>com.fasterxml.woodstox</groupId>
425         <artifactId>woodstox-core</artifactId>
426         <version>6.2.1</version>
427       </dependency>
428       <dependency>
429         <groupId>com.fasterxml.jackson</groupId>
430         <artifactId>jackson-bom</artifactId>
431         <version>2.10.4</version>
432         <scope>import</scope>
433         <type>pom</type>
434       </dependency>
435
436       <dependency>
437         <groupId>com.github.spotbugs</groupId>
438         <artifactId>spotbugs-annotations</artifactId>
439         <version>3.1.12</version>
440         <scope>provided</scope>
441         <!-- Contains retention=RUNTIME annotations, which are not really needed -->
442         <optional>true</optional>
443         <exclusions>
444           <exclusion>
445             <groupId>com.google.code.findbugs</groupId>
446             <artifactId>jsr305</artifactId>
447           </exclusion>
448         </exclusions>
449       </dependency>
450
451       <dependency>
452         <groupId>org.eclipse.jdt</groupId>
453         <artifactId>org.eclipse.jdt.annotation</artifactId>
454         <version>2.2.400</version>
455         <scope>provided</scope>
456       </dependency>
457       <!-- We're staying on 2.8.5 for now, 2.8.6 has issues:
458            https://github.com/google/gson/issues/1601
459            https://github.com/google/gson/issues/1602
460            https://github.com/google/gson/issues/1608
461            https://github.com/google/gson/issues/1630
462       -->
463       <dependency>
464         <groupId>com.google.code.gson</groupId>
465         <artifactId>gson</artifactId>
466         <version>2.8.5</version>
467       </dependency>
468       <dependency>
469         <groupId>commons-fileupload</groupId>
470         <artifactId>commons-fileupload</artifactId>
471         <version>1.4</version>
472       </dependency>
473       <dependency>
474         <groupId>commons-io</groupId>
475         <artifactId>commons-io</artifactId>
476         <version>2.8.0</version>
477       </dependency>
478       <dependency>
479         <groupId>commons-net</groupId>
480         <artifactId>commons-net</artifactId>
481         <version>3.6</version>
482       </dependency>
483
484       <!-- Netty -->
485       <dependency>
486         <groupId>io.netty</groupId>
487         <artifactId>netty-bom</artifactId>
488         <!-- If these are updated, the version in features.xml needs to be changed too -->
489         <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
490         <version>4.1.51.Final</version>
491         <type>pom</type>
492         <scope>import</scope>
493       </dependency>
494
495       <dependency>
496         <groupId>javax.ws.rs</groupId>
497         <artifactId>jsr311-api</artifactId>
498         <version>1.1.1</version>
499       </dependency>
500       <dependency>
501         <groupId>javax.servlet</groupId>
502         <artifactId>javax.servlet-api</artifactId>
503         <version>3.1.0</version>
504       </dependency>
505       <dependency>
506         <groupId>org.apache.felix</groupId>
507         <artifactId>org.apache.felix.dependencymanager</artifactId>
508         <version>4.4.1</version>
509       </dependency>
510       <dependency>
511         <groupId>org.apache.felix</groupId>
512         <artifactId>org.apache.felix.dependencymanager.shell</artifactId>
513         <version>4.0.6</version>
514       </dependency>
515       <dependency>
516         <groupId>org.apache.felix</groupId>
517         <artifactId>org.apache.felix.metatype</artifactId>
518         <version>1.2.2</version>
519       </dependency>
520       <dependency>
521         <groupId>org.bouncycastle</groupId>
522         <artifactId>bcpkix-jdk15on</artifactId>
523         <version>${bouncycastle.version}</version>
524       </dependency>
525       <dependency>
526         <groupId>org.bouncycastle</groupId>
527         <artifactId>bcprov-jdk15on</artifactId>
528         <version>${bouncycastle.version}</version>
529       </dependency>
530       <dependency>
531         <groupId>org.bouncycastle</groupId>
532         <artifactId>bcprov-ext-jdk15on</artifactId>
533         <version>${bouncycastle.version}</version>
534       </dependency>
535
536       <dependency>
537         <groupId>com.webcohesion.enunciate</groupId>
538         <artifactId>enunciate-core-annotations</artifactId>
539         <!-- This must be aligned with the version of enunciate-maven-plugin specified below -->
540         <version>2.13.1</version>
541       </dependency>
542
543       <dependency>
544         <groupId>org.javassist</groupId>
545         <artifactId>javassist</artifactId>
546         <version>3.27.0-GA</version>
547       </dependency>
548       <dependency>
549         <groupId>org.jboss.spec.javax.transaction</groupId>
550         <artifactId>jboss-transaction-api_1.1_spec</artifactId>
551         <version>1.0.1.Final</version>
552       </dependency>
553       <dependency>
554         <groupId>org.jolokia</groupId>
555         <artifactId>jolokia-osgi</artifactId>
556         <version>1.6.2</version>
557       </dependency>
558       <dependency>
559         <groupId>org.osgi</groupId>
560         <artifactId>osgi.cmpn</artifactId>
561         <version>6.0.0</version>
562         <scope>provided</scope>
563       </dependency>
564       <dependency>
565         <groupId>org.osgi</groupId>
566         <artifactId>org.osgi.core</artifactId>
567         <version>6.0.0</version>
568         <scope>provided</scope>
569       </dependency>
570       <dependency>
571         <groupId>org.osgi</groupId>
572         <!-- for https://bugs.opendaylight.org/show_bug.cgi?id=4290 -->
573         <artifactId>org.osgi.service.event</artifactId>
574         <version>1.3.1</version>
575       </dependency>
576       <dependency>
577         <groupId>org.apache.aries.quiesce</groupId>
578         <artifactId>org.apache.aries.quiesce.api</artifactId>
579         <version>1.0.0</version>
580       </dependency>
581
582       <!-- LMAX Disruptor -->
583       <dependency>
584         <groupId>com.lmax</groupId>
585         <artifactId>disruptor</artifactId>
586         <version>3.4.2</version>
587       </dependency>
588
589       <!-- Add Pax Exam -->
590       <dependency>
591         <groupId>org.ops4j.pax.exam</groupId>
592         <artifactId>pax-exam</artifactId>
593         <version>4.13.3</version>
594         <scope>test</scope>
595       </dependency>
596       <dependency>
597         <groupId>org.ops4j.pax.exam</groupId>
598         <artifactId>pax-exam-container-forked</artifactId>
599         <version>4.13.3</version>
600         <scope>test</scope>
601       </dependency>
602       <dependency>
603         <groupId>org.ops4j.pax.exam</groupId>
604         <artifactId>pax-exam-container-karaf</artifactId>
605         <version>4.13.3</version>
606         <scope>test</scope>
607       </dependency>
608       <dependency>
609         <groupId>org.ops4j.pax.exam</groupId>
610         <artifactId>pax-exam-container-native</artifactId>
611         <version>4.13.3</version>
612         <scope>test</scope>
613       </dependency>
614       <dependency>
615         <groupId>org.ops4j.pax.exam</groupId>
616         <artifactId>pax-exam-extender-service</artifactId>
617         <version>4.13.3</version>
618         <scope>test</scope>
619       </dependency>
620       <dependency>
621         <groupId>org.ops4j.pax.exam</groupId>
622         <artifactId>pax-exam-inject</artifactId>
623         <version>4.13.3</version>
624         <scope>test</scope>
625       </dependency>
626       <dependency>
627         <groupId>org.ops4j.pax.exam</groupId>
628         <artifactId>pax-exam-invoker-junit</artifactId>
629         <version>4.13.3</version>
630         <scope>test</scope>
631       </dependency>
632       <dependency>
633         <groupId>org.ops4j.pax.exam</groupId>
634         <artifactId>pax-exam-features</artifactId>
635         <version>4.13.3</version>
636         <type>xml</type>
637         <scope>test</scope>
638       </dependency>
639       <dependency>
640         <groupId>org.ops4j.pax.exam</groupId>
641         <artifactId>pax-exam-junit4</artifactId>
642         <version>4.13.3</version>
643         <scope>test</scope>
644       </dependency>
645       <dependency>
646         <groupId>org.ops4j.pax.exam</groupId>
647         <artifactId>pax-exam-link-mvn</artifactId>
648         <version>4.13.3</version>
649         <scope>test</scope>
650       </dependency>
651       <dependency>
652         <groupId>org.ops4j.pax.exam</groupId>
653         <artifactId>pax-exam-link-assembly</artifactId>
654         <version>4.13.3</version>
655         <scope>test</scope>
656       </dependency>
657
658       <dependency>
659         <groupId>org.ops4j.pax.url</groupId>
660         <artifactId>pax-url-link</artifactId>
661         <version>2.5.4</version>
662         <scope>test</scope>
663       </dependency>
664       <dependency>
665         <groupId>org.ops4j.pax.url</groupId>
666         <artifactId>pax-url-aether</artifactId>
667         <version>2.5.4</version>
668         <scope>test</scope>
669       </dependency>
670       <dependency>
671         <groupId>org.ops4j.pax.url</groupId>
672         <artifactId>pax-url-wrap</artifactId>
673         <version>2.5.4</version>
674       </dependency>
675
676       <dependency>
677         <groupId>org.ops4j.pax.web</groupId>
678         <artifactId>pax-web-api</artifactId>
679         <!-- Note: keep this version synchronized with karaf -->
680         <version>7.2.16</version>
681       </dependency>
682
683       <dependency>
684         <groupId>org.springframework.osgi</groupId>
685         <artifactId>spring-osgi-mock</artifactId>
686         <version>1.2.1</version>
687         <scope>test</scope>
688       </dependency>
689
690       <dependency>
691         <groupId>org.xmlunit</groupId>
692         <artifactId>xmlunit-core</artifactId>
693         <version>2.7.0</version>
694         <scope>test</scope>
695       </dependency>
696       <dependency>
697         <groupId>org.xmlunit</groupId>
698         <artifactId>xmlunit-assertj</artifactId>
699         <version>2.7.0</version>
700         <scope>test</scope>
701       </dependency>
702       <dependency>
703         <groupId>org.xmlunit</groupId>
704         <artifactId>xmlunit-matchers</artifactId>
705         <version>2.7.0</version>
706         <scope>test</scope>
707       </dependency>
708       <!-- FIXME: remove this once we have migrated over -->
709       <dependency>
710         <groupId>org.xmlunit</groupId>
711         <artifactId>xmlunit-legacy</artifactId>
712         <version>2.7.0</version>
713         <scope>test</scope>
714       </dependency>
715
716       <!-- Annotations for modernizer-maven-plugin -->
717       <dependency>
718         <groupId>org.gaul</groupId>
719         <artifactId>modernizer-maven-annotations</artifactId>
720         <!-- This should match the plugin version below -->
721         <version>2.1.0</version>
722         <scope>provided</scope>
723       </dependency>
724
725       <dependency>
726         <groupId>org.eclipse.jetty</groupId>
727         <artifactId>jetty-bom</artifactId>
728         <version>9.4.28.v20200408</version>
729         <scope>import</scope>
730         <type>pom</type>
731       </dependency>
732
733       <dependency>
734         <groupId>com.h2database</groupId>
735         <artifactId>h2</artifactId>
736         <version>1.4.200</version>
737       </dependency>
738
739       <!-- Xtend http://xtend-lang.org
740            NOTE: When you increase the version here,
741            then remember to also increase it for the
742            xtend-maven-plugin below! (We don't want to
743            use a Maven property, in order not to "leak" that.)
744        -->
745       <dependency>
746           <groupId>org.eclipse.xtend</groupId>
747           <artifactId>org.eclipse.xtend.lib</artifactId>
748           <version>2.23.0</version>
749       </dependency>
750       <dependency>
751           <groupId>org.eclipse.xtend</groupId>
752           <artifactId>org.eclipse.xtend.lib.macro</artifactId>
753           <version>2.23.0</version>
754       </dependency>
755       <dependency>
756           <groupId>org.eclipse.xtext</groupId>
757           <artifactId>org.eclipse.xtext.xbase.lib</artifactId>
758           <version>2.23.0</version>
759       </dependency>
760
761       <!-- Annotations -->
762       <dependency>
763         <groupId>javax.inject</groupId>
764         <artifactId>javax.inject</artifactId>
765         <version>1</version>
766         <optional>true</optional>
767       </dependency>
768
769       <!-- jung, a graph library -->
770       <dependency>
771         <groupId>net.sf.jung</groupId>
772         <artifactId>jung-api</artifactId>
773         <version>2.1.1</version>
774       </dependency>
775       <dependency>
776         <groupId>net.sf.jung</groupId>
777         <artifactId>jung-algorithms</artifactId>
778         <version>2.1.1</version>
779       </dependency>
780       <dependency>
781         <groupId>net.sf.jung</groupId>
782         <artifactId>jung-graph-impl</artifactId>
783         <version>2.1.1</version>
784       </dependency>
785
786       <!-- Karaf console support -->
787       <dependency>
788         <groupId>org.apache.karaf.shell</groupId>
789         <artifactId>org.apache.karaf.shell.core</artifactId>
790         <version>${karaf.version}</version>
791         <scope>provided</scope>
792       </dependency>
793       <dependency>
794         <groupId>org.apache.karaf.shell</groupId>
795         <artifactId>org.apache.karaf.shell.console</artifactId>
796         <version>${karaf.version}</version>
797         <scope>provided</scope>
798       </dependency>
799
800       <!-- ThreeTen-Extra, date/time complements -->
801       <dependency>
802         <groupId>org.threeten</groupId>
803         <artifactId>threeten-extra</artifactId>
804         <version>1.5.0</version>
805       </dependency>
806
807       <!-- When updating this version, consider antl4-maven-plugin below -->
808       <dependency>
809         <groupId>org.antlr</groupId>
810         <artifactId>antlr4-runtime</artifactId>
811         <version>4.8-1</version>
812       </dependency>
813       <!-- Aries' Blueprint version should be kept in sync to the version actually
814            used by our ${karaf[4].version} ... please bump this when increasing that.
815            TODO Find a smarter way to inherit this from a (TBD..) Karaf artifacts BOM! -->
816       <dependency>
817         <groupId>org.apache.aries.blueprint</groupId>
818         <artifactId>org.apache.aries.blueprint.core</artifactId>
819         <version>1.10.2</version>
820       </dependency>
821       <dependency>
822         <groupId>org.apache.aries.blueprint</groupId>
823         <artifactId>blueprint-maven-plugin-annotation</artifactId>
824         <version>1.3.0</version>
825         <optional>true</optional>
826       </dependency>
827
828       <!-- TrieMap library -->
829       <dependency>
830         <groupId>tech.pantheon.triemap</groupId>
831         <artifactId>bom</artifactId>
832         <version>1.2.0</version>
833         <scope>import</scope>
834         <type>pom</type>
835       </dependency>
836
837       <!-- Dropwizard metrics -->
838       <dependency>
839         <groupId>io.dropwizard.metrics</groupId>
840         <artifactId>metrics-bom</artifactId>
841         <version>4.1.9</version>
842         <scope>import</scope>
843         <type>pom</type>
844       </dependency>
845
846       <!-- JAXB for Java 11+, match this with Karaf -->
847       <dependency>
848         <groupId>jakarta.xml.bind</groupId>
849         <artifactId>jakarta.xml.bind-api</artifactId>
850         <version>2.3.2</version>
851       </dependency>
852       <dependency>
853         <groupId>org.glassfish.jaxb</groupId>
854         <artifactId>jaxb-runtime</artifactId>
855         <version>2.3.2</version>
856       </dependency>
857     </dependencies>
858   </dependencyManagement>
859
860   <dependencies>
861     <!--
862          We expect slf4j-api to be provided by the platform.
863          Karaf provides it, other containers need to provide it themselves.
864     -->
865     <dependency>
866       <groupId>org.slf4j</groupId>
867       <artifactId>slf4j-api</artifactId>
868       <scope>provided</scope>
869     </dependency>
870
871     <!--
872           Enable useful code quality annotations everywhere. Since these annotations
873           are not required at runtime.
874     -->
875     <dependency>
876       <groupId>org.eclipse.jdt</groupId>
877       <artifactId>org.eclipse.jdt.annotation</artifactId>
878       <scope>provided</scope>
879     </dependency>
880     <dependency>
881       <groupId>com.github.spotbugs</groupId>
882       <artifactId>spotbugs-annotations</artifactId>
883       <scope>provided</scope>
884       <optional>true</optional>
885     </dependency>
886     <dependency>
887       <groupId>org.gaul</groupId>
888       <artifactId>modernizer-maven-annotations</artifactId>
889       <scope>provided</scope>
890     </dependency>
891
892     <!--
893           Testing output should be routed through slf4j-simple.
894     -->
895     <dependency>
896       <groupId>org.slf4j</groupId>
897       <artifactId>slf4j-simple</artifactId>
898       <scope>test</scope>
899     </dependency>
900
901     <!--
902           Unit tests can use JUnit + Mockito + Hamcrest by default.
903     -->
904     <dependency>
905       <groupId>org.hamcrest</groupId>
906       <artifactId>hamcrest</artifactId>
907       <scope>test</scope>
908     </dependency>
909     <dependency>
910       <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
911       <groupId>org.hamcrest</groupId>
912       <artifactId>hamcrest-library</artifactId>
913       <scope>test</scope>
914     </dependency>
915     <dependency>
916       <groupId>junit</groupId>
917       <artifactId>junit</artifactId>
918       <scope>test</scope>
919     </dependency>
920     <dependency>
921       <groupId>org.mockito</groupId>
922       <artifactId>mockito-core</artifactId>
923       <scope>test</scope>
924     </dependency>
925   </dependencies>
926
927   <build>
928     <pluginManagement>
929       <plugins>
930         <!-- Official maven plugins, alpha-sorted by artifactId.
931              We do not need to specify the groupId. -->
932         <plugin>
933           <artifactId>maven-checkstyle-plugin</artifactId>
934           <version>3.1.1</version>
935           <dependencies>
936             <dependency>
937               <groupId>com.puppycrawl.tools</groupId>
938               <artifactId>checkstyle</artifactId>
939               <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
940               <version>8.34</version>
941             </dependency>
942             <dependency>
943               <groupId>org.opendaylight.odlparent</groupId>
944               <artifactId>checkstyle</artifactId>
945               <version>8.0.0-SNAPSHOT</version>
946             </dependency>
947             <dependency>
948               <groupId>com.github.sevntu-checkstyle</groupId>
949               <artifactId>sevntu-checks</artifactId>
950               <version>1.37.1</version>
951             </dependency>
952           </dependencies>
953           <configuration>
954             <configLocation>odl_checks.xml</configLocation>
955             <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
956             <!-- <sourceDirectories> are needed so that checkstyle ignores the
957                  generated sources directory -->
958             <sourceDirectories>
959               <directory>${project.build.sourceDirectory}</directory>
960             </sourceDirectories>
961             <includeResources>true</includeResources>
962             <includeTestSourceDirectory>true</includeTestSourceDirectory>
963             <includeTestResources>true</includeTestResources>
964             <includes>**\/*.java, **\/*.xtend</includes>
965             <excludes>
966               org/opendaylight/yang/gen/**,
967               **/protobuff/messages/**,
968               **/thrift/gen/*.java,
969               **/module-info.java
970             </excludes>
971             <failsOnError>false</failsOnError>
972             <consoleOutput>true</consoleOutput>
973           </configuration>
974           <executions>
975             <execution>
976               <id>check-license</id>
977               <goals>
978                 <goal>check</goal>
979               </goals>
980               <phase>process-sources</phase>
981               <configuration>
982                 <configLocation>check-license.xml</configLocation>
983                 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
984                 <includeResources>false</includeResources>
985                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
986                 <includeTestResources>false</includeTestResources>
987                 <sourceDirectories>
988                   <directory>${project.build.sourceDirectory}</directory>
989                 </sourceDirectories>
990                 <excludes>
991                   org/opendaylight/yang/gen/**,
992                   **/protobuff/messages/**,
993                   **/thrift/gen/*.java
994                 </excludes>
995                 <failsOnError>false</failsOnError>
996                 <consoleOutput>true</consoleOutput>
997               </configuration>
998             </execution>
999             <execution>
1000               <goals>
1001                 <goal>check</goal>
1002               </goals>
1003               <phase>process-sources</phase>
1004               <configuration>
1005                 <failOnViolation>${odlparent.checkstyle.enforce}</failOnViolation>
1006                 <skip>${odlparent.checkstyle.skip}</skip>
1007                 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
1008               </configuration>
1009             </execution>
1010           </executions>
1011         </plugin>
1012         <plugin>
1013           <groupId>org.apache.maven.plugins</groupId>
1014           <artifactId>maven-pmd-plugin</artifactId>
1015           <version>3.13.0</version>
1016           <executions>
1017             <execution>
1018               <id>cpd</id>
1019               <phase>process-sources</phase>
1020               <goals>
1021                 <goal>cpd-check</goal>
1022               </goals>
1023               <configuration>
1024                 <failOnViolation>${pmd.cpd.fail}</failOnViolation>
1025                 <!-- 100 "tokens" here correspond to approx. 5-10 lines of code -->
1026                 <minimumTokens>101</minimumTokens>
1027                 <printFailingErrors>true</printFailingErrors>
1028                 <excludeRoots>
1029                   <!-- FIXME: this should be a wildcard, but PMD is brain-damaged and does
1030                               not understand path prefixes nor wildcards. Details are available
1031                               at http://stackoverflow.com/questions/15647771/pmd-exclude-not-working
1032                               Hence people introducing new generated sources have to include
1033                               PMD config too.
1034                    -->
1035                   <excludeRoot>${project.build.directory}/generated-sources</excludeRoot>
1036                   <excludeRoot>${project.build.directory}/generated-test-sources</excludeRoot>
1037                 </excludeRoots>
1038                 <linkXRef>false</linkXRef>
1039               </configuration>
1040             </execution>
1041           </executions>
1042         </plugin>
1043         <plugin>
1044           <artifactId>maven-compiler-plugin</artifactId>
1045           <version>3.8.1</version>
1046           <configuration>
1047             <showWarnings>true</showWarnings>
1048             <compilerArgs>
1049               <arg>-parameters</arg>
1050               <arg>-Xlint:deprecation</arg>
1051               <arg>-Xlint:unchecked</arg>
1052             </compilerArgs>
1053             <annotationProcessorPaths>
1054               <dependency>
1055                 <groupId>org.immutables</groupId>
1056                 <artifactId>value</artifactId>
1057                 <!-- Keep this version in sync with dependency declaration above -->
1058                 <version>2.7.5</version>
1059               </dependency>
1060               <dependency>
1061                 <groupId>org.kohsuke.metainf-services</groupId>
1062                 <artifactId>metainf-services</artifactId>
1063                 <!-- Keep this version in sync with dependency declaration above -->
1064                 <version>1.8</version>
1065               </dependency>
1066             </annotationProcessorPaths>
1067           </configuration>
1068         </plugin>
1069         <plugin>
1070           <artifactId>maven-failsafe-plugin</artifactId>
1071           <version>2.22.2</version>
1072         </plugin>
1073         <plugin>
1074           <artifactId>maven-invoker-plugin</artifactId>
1075           <version>3.2.1</version>
1076         </plugin>
1077         <plugin>
1078           <artifactId>maven-dependency-plugin</artifactId>
1079           <executions>
1080             <execution>
1081               <id>unpack-license</id>
1082               <phase>generate-resources</phase>
1083               <goals>
1084                 <goal>copy</goal>
1085               </goals>
1086               <configuration>
1087                 <artifactItems>
1088                   <artifactItem>
1089                     <groupId>org.opendaylight.odlparent</groupId>
1090                     <artifactId>odl-license</artifactId>
1091                     <version>8.0.0-SNAPSHOT</version>
1092                     <type>license</type>
1093                     <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1094                     <destFileName>LICENSE</destFileName>
1095                     <overWrite>false</overWrite>
1096                   </artifactItem>
1097                 </artifactItems>
1098                 <silent>true</silent>
1099               </configuration>
1100             </execution>
1101           </executions>
1102         </plugin>
1103
1104         <plugin>
1105           <artifactId>maven-plugin-plugin</artifactId>
1106           <version>3.6.0</version>
1107         </plugin>
1108
1109         <plugin>
1110           <artifactId>maven-remote-resources-plugin</artifactId>
1111           <version>1.7.0</version>
1112         </plugin>
1113         <plugin>
1114           <artifactId>maven-resources-plugin</artifactId>
1115           <version>3.1.0</version>
1116         </plugin>
1117         <plugin>
1118           <artifactId>maven-shade-plugin</artifactId>
1119           <version>3.2.4</version>
1120         </plugin>
1121         <plugin>
1122           <artifactId>maven-source-plugin</artifactId>
1123           <version>3.2.1</version>
1124           <executions>
1125             <execution>
1126               <id>attach-sources</id>
1127               <phase>verify</phase>
1128               <goals>
1129                 <goal>jar-no-fork</goal>
1130               </goals>
1131             </execution>
1132           </executions>
1133         </plugin>
1134         <plugin>
1135           <artifactId>maven-surefire-plugin</artifactId>
1136           <version>2.22.2</version>
1137           <configuration>
1138             <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1139             <trimStackTrace>false</trimStackTrace>
1140           </configuration>
1141         </plugin>
1142
1143         <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1144         <plugin>
1145           <!-- Support Blueprint XML construction using annotations -->
1146           <groupId>org.apache.aries.blueprint</groupId>
1147           <artifactId>blueprint-maven-plugin</artifactId>
1148           <version>1.10.0</version>
1149           <!-- TODO remove dependencies when we bump from 1.10.0 to 1.11.0 (or 1.10.1);
1150              see https://jira.opendaylight.org/browse/ODLPARENT-167 & https://jira.apache.org/jira/browse/ARIES-1826 -->
1151           <dependencies>
1152             <dependency>
1153               <groupId>org.apache.xbean</groupId>
1154               <artifactId>xbean-finder-shaded</artifactId>
1155               <version>4.17</version>
1156             </dependency>
1157           </dependencies>
1158           <configuration>
1159             <scanPaths>
1160               <scanPath>${project.groupId}</scanPath>
1161             </scanPaths>
1162           </configuration>
1163           <executions>
1164             <execution>
1165               <goals>
1166                 <goal>blueprint-generate</goal>
1167               </goals>
1168             </execution>
1169           </executions>
1170         </plugin>
1171
1172         <plugin>
1173           <groupId>org.apache.felix</groupId>
1174           <artifactId>maven-bundle-plugin</artifactId>
1175           <version>4.2.1</version>
1176           <extensions>true</extensions>
1177           <configuration>
1178             <instructions>
1179               <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1180                    so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1181                    and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present.  -->
1182               <Include-Resource>{maven-resources},${project.build.directory}/classes/LICENSE,META-INF/git.properties=-${project.build.directory}/classes/META-INF/git.properties,META-INF/services=-${project.build.directory}/classes/META-INF/services</Include-Resource>
1183
1184               <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1185                    to generate Import-Service and Export-Service headers. -->
1186               <_removeheaders>Import-Service,Export-Service</_removeheaders>
1187             </instructions>
1188           </configuration>
1189         </plugin>
1190
1191         <plugin>
1192           <groupId>org.apache.karaf.tooling</groupId>
1193           <artifactId>karaf-maven-plugin</artifactId>
1194           <version>${karaf.version}</version>
1195         </plugin>
1196
1197         <plugin>
1198           <groupId>org.apache.servicemix.tooling</groupId>
1199           <artifactId>depends-maven-plugin</artifactId>
1200           <version>1.4.0</version>
1201           <executions>
1202             <execution>
1203               <id>generate-depends-file</id>
1204               <goals>
1205                 <goal>generate-depends-file</goal>
1206               </goals>
1207             </execution>
1208           </executions>
1209         </plugin>
1210
1211         <plugin>
1212           <groupId>com.webcohesion.enunciate</groupId>
1213           <artifactId>enunciate-maven-plugin</artifactId>
1214           <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1215           <version>2.13.1</version>
1216         </plugin>
1217
1218         <plugin>
1219           <groupId>org.gaul</groupId>
1220           <artifactId>modernizer-maven-plugin</artifactId>
1221           <version>2.1.0</version>
1222           <configuration>
1223             <javaVersion>${odlparent.modernizer.target}</javaVersion>
1224             <failOnViolations>${odlparent.modernizer.enforce}</failOnViolations>
1225             <skip>${odlparent.modernizer.skip}</skip>
1226           </configuration>
1227
1228           <executions>
1229             <execution>
1230               <id>modernizer</id>
1231               <phase>verify</phase>
1232               <goals>
1233                 <goal>modernizer</goal>
1234               </goals>
1235             </execution>
1236           </executions>
1237         </plugin>
1238
1239         <plugin>
1240           <groupId>com.github.spotbugs</groupId>
1241           <artifactId>spotbugs-maven-plugin</artifactId>
1242           <version>3.1.12.2</version>
1243           <dependencies>
1244             <dependency>
1245               <groupId>com.github.spotbugs</groupId>
1246               <artifactId>spotbugs</artifactId>
1247               <version>3.1.12</version>
1248             </dependency>
1249             <dependency>
1250               <groupId>org.opendaylight.odlparent</groupId>
1251               <artifactId>spotbugs</artifactId>
1252               <version>8.0.0-SNAPSHOT</version>
1253             </dependency>
1254             <dependency>
1255               <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 -->
1256               <groupId>org.slf4j</groupId>
1257               <artifactId>slf4j-simple</artifactId>
1258               <version>1.8.0-beta2</version>
1259             </dependency>
1260           </dependencies>
1261           <configuration>
1262             <plugins>
1263               <plugin>
1264                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1265                 <artifactId>bug-pattern</artifactId>
1266                 <version>1.5.0</version>
1267               </plugin>
1268             </plugins>
1269             <!--
1270               Enables analysis which takes more memory but finds more bugs.
1271               If you run out of memory, changes the value of the effort element
1272               to 'Low'.
1273             -->
1274             <effort>Max</effort>
1275             <!-- Reports all bugs (other values are medium and max) -->
1276             <threshold>Low</threshold>
1277             <!-- Build doesn't fail if problems are found -->
1278             <failOnError>${odlparent.spotbugs.enforce}</failOnError>
1279             <skip>${odlparent.spotbugs.skip}</skip>
1280             <!-- References the excluded rules -->
1281             <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1282             <!-- Produces XML report -->
1283             <xmlOutput>true</xmlOutput>
1284             <!-- Configures the directory in which the XML report is created -->
1285             <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1286           </configuration>
1287           <executions>
1288             <!--
1289               Ensures that SpotBugs inspects source code when project is compiled.
1290             -->
1291             <execution>
1292               <id>analyze-compile</id>
1293               <phase>compile</phase>
1294               <goals>
1295                 <goal>check</goal>
1296               </goals>
1297             </execution>
1298           </executions>
1299         </plugin>
1300         <plugin>
1301           <groupId>org.codehaus.mojo</groupId>
1302           <artifactId>properties-maven-plugin</artifactId>
1303           <version>1.0.0</version>
1304         </plugin>
1305         <plugin>
1306           <groupId>org.eclipse.xtend</groupId>
1307           <artifactId>xtend-maven-plugin</artifactId>
1308           <!-- NOTE: This version MUST be kept in sync with the Xtend version in <dependencyManagement> -->
1309           <version>2.23.0</version>
1310           <executions>
1311             <execution>
1312               <goals>
1313                 <goal>compile</goal>
1314                 <goal>testCompile</goal>
1315               </goals>
1316               <configuration>
1317                 <outputDirectory>${project.build.directory}/generated-sources/xtend</outputDirectory>
1318                 <testOutputDirectory>${project.build.directory}/generated-test-sources/xtend</testOutputDirectory>
1319               </configuration>
1320             </execution>
1321           </executions>
1322         </plugin>
1323         <plugin>
1324           <groupId>org.eclipse.m2e</groupId>
1325           <artifactId>lifecycle-mapping</artifactId>
1326           <version>1.0.0</version>
1327           <configuration>
1328             <lifecycleMappingMetadata>
1329               <pluginExecutions>
1330                 <pluginExecution>
1331                   <pluginExecutionFilter>
1332                     <groupId>org.apache.felix</groupId>
1333                     <artifactId>maven-bundle-plugin</artifactId>
1334                     <versionRange>[1.0,)</versionRange>
1335                     <goals>
1336                       <goal>manifest</goal>
1337                     </goals>
1338                   </pluginExecutionFilter>
1339                   <action>
1340                     <execute/>
1341                   </action>
1342                 </pluginExecution>
1343                 <pluginExecution>
1344                   <pluginExecutionFilter>
1345                     <groupId>org.apache.maven.plugins</groupId>
1346                     <artifactId>maven-enforcer-plugin</artifactId>
1347                     <versionRange>[1.0.0,)</versionRange>
1348                     <goals>
1349                       <goal>enforce</goal>
1350                     </goals>
1351                   </pluginExecutionFilter>
1352                   <action>
1353                     <ignore/>
1354                   </action>
1355                 </pluginExecution>
1356                 <pluginExecution>
1357                   <pluginExecutionFilter>
1358                     <groupId>org.apache.maven.plugins</groupId>
1359                     <artifactId>maven-dependency-plugin</artifactId>
1360                     <versionRange>[2.10,)</versionRange>
1361                     <goals>
1362                       <goal>copy</goal>
1363                     </goals>
1364                   </pluginExecutionFilter>
1365                   <action>
1366                     <ignore/>
1367                   </action>
1368                 </pluginExecution>
1369                 <pluginExecution>
1370                   <pluginExecutionFilter>
1371                     <groupId>org.apache.maven.plugins</groupId>
1372                     <artifactId>maven-pmd-plugin</artifactId>
1373                     <versionRange>[3.6,)</versionRange>
1374                     <goals>
1375                       <goal>cpd-check</goal>
1376                     </goals>
1377                   </pluginExecutionFilter>
1378                   <action>
1379                     <ignore/>
1380                   </action>
1381                 </pluginExecution>
1382                 <!-- The plugin will eventually be removed, remove this too at that point -->
1383                 <pluginExecution>
1384                   <pluginExecutionFilter>
1385                     <groupId>org.apache.maven.plugins</groupId>
1386                     <artifactId>maven-antrun-plugin</artifactId>
1387                     <versionRange>[1.8,)</versionRange>
1388                     <goals>
1389                       <goal>run</goal>
1390                     </goals>
1391                   </pluginExecutionFilter>
1392                   <action>
1393                     <ignore/>
1394                   </action>
1395                 </pluginExecution>
1396                 <pluginExecution>
1397                   <pluginExecutionFilter>
1398                     <groupId>org.apache.servicemix.tooling</groupId>
1399                     <artifactId>depends-maven-plugin</artifactId>
1400                     <versionRange>[1.2,)</versionRange>
1401                     <goals>
1402                       <goal>generate-depends-file</goal>
1403                     </goals>
1404                   </pluginExecutionFilter>
1405                   <action>
1406                     <execute/>
1407                   </action>
1408                 </pluginExecution>
1409                 <pluginExecution>
1410                   <pluginExecutionFilter>
1411                     <groupId>org.jacoco</groupId>
1412                     <artifactId>jacoco-maven-plugin</artifactId>
1413                     <versionRange>[0.7.0,)</versionRange>
1414                     <goals>
1415                       <goal>prepare-agent</goal>
1416                     </goals>
1417                   </pluginExecutionFilter>
1418                   <action>
1419                     <ignore/>
1420                   </action>
1421                 </pluginExecution>
1422
1423                 <pluginExecution>
1424                   <pluginExecutionFilter>
1425                     <groupId>org.ops4j.pax.exam</groupId>
1426                     <artifactId>maven-paxexam-plugin</artifactId>
1427                     <versionRange>[1.2.4,)</versionRange>
1428                     <goals>
1429                       <goal>generate-depends-file</goal>
1430                     </goals>
1431                   </pluginExecutionFilter>
1432                   <action>
1433                     <ignore/>
1434                   </action>
1435                 </pluginExecution>
1436
1437                 <pluginExecution>
1438                   <pluginExecutionFilter>
1439                     <groupId>org.basepom.maven</groupId>
1440                     <artifactId>
1441                       duplicate-finder-maven-plugin
1442                     </artifactId>
1443                     <versionRange>[1.2.1,)</versionRange>
1444                     <goals>
1445                       <goal>check</goal>
1446                     </goals>
1447                   </pluginExecutionFilter>
1448                   <action>
1449                     <ignore></ignore>
1450                   </action>
1451                 </pluginExecution>
1452               </pluginExecutions>
1453             </lifecycleMappingMetadata>
1454           </configuration>
1455         </plugin>
1456
1457         <plugin>
1458           <groupId>org.jacoco</groupId>
1459           <artifactId>jacoco-maven-plugin</artifactId>
1460           <configuration>
1461             <!-- Note: This exclusion list should match <sonar.exclusions>
1462                        property above -->
1463             <excludes>
1464               <exclude>**/gen/**</exclude>
1465               <exclude>**/generated-sources/**</exclude>
1466               <exclude>**/generated-test-sources/**</exclude>
1467               <exclude>**/yang-gen/**</exclude>
1468               <exclude>**/yang-gen-config/**</exclude>
1469               <exclude>**/yang-gen-sal/**</exclude>
1470               <exclude>**/yang-gen-code/**</exclude>
1471               <exclude>**/pax/**</exclude>
1472             </excludes>
1473           </configuration>
1474         </plugin>
1475
1476         <plugin>
1477           <groupId>org.ops4j.pax.exam</groupId>
1478           <artifactId>maven-paxexam-plugin</artifactId>
1479           <version>1.2.4</version>
1480         </plugin>
1481
1482         <!-- When updating this version, consider antl4-runtime above -->
1483         <plugin>
1484           <groupId>org.antlr</groupId>
1485           <artifactId>antlr4-maven-plugin</artifactId>
1486           <version>4.8-1</version>
1487         </plugin>
1488       </plugins>
1489     </pluginManagement>
1490
1491     <plugins>
1492       <plugin>
1493         <artifactId>maven-enforcer-plugin</artifactId>
1494         <executions>
1495           <execution>
1496             <id>enforce-banned-dependencies</id>
1497             <goals>
1498               <goal>enforce</goal>
1499             </goals>
1500             <configuration>
1501               <rules>
1502                 <bannedDependencies>
1503                   <message>Please always use mockito-core instead of mockito-all (see https://bugs.opendaylight.org/show_bug.cgi?id=7662), and spotbugs:annotations instead of findbugs:annotations</message>
1504                   <excludes>
1505                     <exclude>org.mockito:mockito-all</exclude>
1506                     <exclude>com.google.code.findbugs:annotations</exclude>
1507                   </excludes>
1508                 </bannedDependencies>
1509               </rules>
1510               <fail>true</fail>
1511             </configuration>
1512           </execution>
1513         </executions>
1514       </plugin>
1515       <plugin>
1516         <groupId>org.basepom.maven</groupId>
1517         <artifactId>duplicate-finder-maven-plugin</artifactId>
1518         <version>1.4.0</version>
1519         <executions>
1520           <execution>
1521             <id>find-duplicate-classpath-entries</id>
1522             <phase>verify</phase>
1523             <goals>
1524               <goal>check</goal>
1525             </goals>
1526           </execution>
1527         </executions>
1528         <configuration>
1529             <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1530             <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1531             <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1532             <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1533             <printEqualFiles>false</printEqualFiles>
1534             <quiet>true</quiet>
1535             <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1536                  as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1537                  we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1538                  also ignore: -->
1539             <ignoredResourcePatterns>
1540               <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1541               <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1542               <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1543               <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1544               <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1545               <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1546             </ignoredResourcePatterns>
1547             <ignoredDependencies>
1548               <ignoredDependency>
1549                 <groupId>org.slf4j</groupId>
1550                 <artifactId>slf4j-simple</artifactId>
1551               </ignoredDependency>
1552               <ignoredDependency>
1553                 <groupId>org.opendaylight.odlparent</groupId>
1554                 <artifactId>opendaylight-karaf-empty</artifactId>
1555               </ignoredDependency>
1556             </ignoredDependencies>
1557         </configuration>
1558       </plugin>
1559       <plugin>
1560         <artifactId>maven-dependency-plugin</artifactId>
1561       </plugin>
1562       <plugin>
1563         <artifactId>maven-checkstyle-plugin</artifactId>
1564       </plugin>
1565       <plugin>
1566           <artifactId>maven-pmd-plugin</artifactId>
1567       </plugin>
1568       <plugin>
1569         <artifactId>maven-source-plugin</artifactId>
1570       </plugin>
1571       <plugin>
1572         <artifactId>maven-javadoc-plugin</artifactId>
1573       </plugin>
1574       <plugin>
1575         <groupId>org.gaul</groupId>
1576         <artifactId>modernizer-maven-plugin</artifactId>
1577       </plugin>
1578       <plugin>
1579         <groupId>com.github.spotbugs</groupId>
1580         <artifactId>spotbugs-maven-plugin</artifactId>
1581       </plugin>
1582
1583       <!-- Jacoco / Sonar -->
1584       <plugin>
1585         <groupId>org.jacoco</groupId>
1586         <artifactId>jacoco-maven-plugin</artifactId>
1587         <executions>
1588           <execution>
1589             <id>pre-unit-test</id>
1590             <goals>
1591               <goal>prepare-agent</goal>
1592             </goals>
1593           </execution>
1594           <execution>
1595             <id>report</id>
1596             <goals>
1597               <goal>report</goal>
1598             </goals>
1599           </execution>
1600         </executions>
1601       </plugin>
1602
1603       <plugin>
1604         <groupId>com.alexecollins.maven.plugin</groupId>
1605         <artifactId>script-maven-plugin</artifactId>
1606         <version>1.0.0</version>
1607         <executions>
1608            <execution>
1609              <phase>prepare-package</phase>
1610              <goals>
1611                <goal>execute</goal>
1612              </goals>
1613              <configuration>
1614                <script>
1615                  // BeanShell is 2005-ish and thus doesn't support generics, varargs, try-with-resources or lambdas, so:
1616                  // (If we do this kind of inline code in pom.xml more often, we shold have a new simple module in
1617                  //  odl-parent, which has *.java that we compile, and then just depend on it here and call one-line
1618                  //  static class methods only - it will be MUCH easier to write!)
1619                  void copy(File root, String glob, File target) {
1620                      java.nio.file.DirectoryStream dirStream = java.nio.file.Files.newDirectoryStream(root.toPath(), glob);
1621                      Iterator dirStreamIterator = dirStream.iterator();
1622                      while (dirStreamIterator.hasNext()) {
1623                          java.nio.file.Path path = dirStreamIterator.next();
1624                          java.nio.file.Files.copy(path, new File(target, path.toFile().getName()).toPath(),
1625                              new java.nio.file.CopyOption[] {
1626                                  java.nio.file.StandardCopyOption.REPLACE_EXISTING,
1627                                  java.nio.file.StandardCopyOption.COPY_ATTRIBUTES
1628                              }
1629                          );
1630                      }
1631                      dirStream.close();
1632                  }
1633
1634                  File gitRepoRootDir = project.basedir;
1635                  while (!new File(gitRepoRootDir, ".git").exists() &amp;&amp; gitRepoRootDir.getParentFile() != null) {
1636                      gitRepoRootDir = gitRepoRootDir.getParentFile();
1637                  }
1638
1639                  File target = new File(project.build.outputDirectory);
1640                  target.mkdirs();
1641                  copy(gitRepoRootDir, "README*", target);
1642                  copy(gitRepoRootDir, "CONTRIBUTING*", target);
1643                  copy(gitRepoRootDir, "PROJECT_INFO.yaml", target);
1644                </script>
1645              </configuration>
1646            </execution>
1647          </executions>
1648          <dependencies>
1649            <dependency>
1650              <groupId>org.apache-extras.beanshell</groupId>
1651              <artifactId>bsh</artifactId>
1652              <version>2.0b6</version>
1653            </dependency>
1654          </dependencies>
1655       </plugin>
1656     </plugins>
1657   </build>
1658
1659   <reporting>
1660     <plugins>
1661       <plugin>
1662         <artifactId>maven-checkstyle-plugin</artifactId>
1663         <version>3.1.0</version>
1664       </plugin>
1665
1666       <!-- FIXME: activate this
1667       <plugin>
1668         <artifactId>maven-project-info-reports-plugin</artifactId>
1669       </plugin-->
1670       <plugin>
1671         <groupId>org.codehaus.mojo</groupId>
1672         <artifactId>jdepend-maven-plugin</artifactId>
1673         <reportSets>
1674           <reportSet>
1675             <reports>
1676               <report>generate-no-fork</report>
1677             </reports>
1678           </reportSet>
1679         </reportSets>
1680       </plugin>
1681     </plugins>
1682   </reporting>
1683 </project>
1684