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