1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=2 tabstop=2: -->
4 Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
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>
14 <groupId>org.opendaylight.odlparent</groupId>
15 <artifactId>odlparent-lite</artifactId>
16 <version>11.0.0-SNAPSHOT</version>
17 <relativePath>../odlparent-lite</relativePath>
20 <artifactId>odlparent</artifactId>
21 <packaging>pom</packaging>
22 <name>ODL :: odlparent :: ${project.artifactId}</name>
25 <connection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</connection>
26 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</developerConnection>
28 <url>https://wiki.opendaylight.org/display/ODL/ODL+Root+Parent</url>
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. -->
37 <nexus.repository.release>opendaylight.release</nexus.repository.release>
38 <nexus.repository.snapshot>opendaylight.snapshot</nexus.repository.snapshot>
40 <!-- Used in controller, genius, infrautils, netconf, netvirt, ovsdb, serviceutils -->
41 <karaf.version>4.4.0</karaf.version>
43 <!-- Supporting Libraries -->
44 <!-- Only used internally -->
45 <bouncycastle.version>1.71</bouncycastle.version>
47 <!-- JaCoCo configuration, by default tied to Sonar configuration, but can be overridden separately
48 to allow projects to report Sonar values from the entire project. -->
49 <jacoco.destFile>${project.build.directory}/code-coverage/jacoco.exec</jacoco.destFile>
50 <jacoco.dataFile>${jacoco.destFile}</jacoco.dataFile>
52 <!-- Default Sonar configuration -->
53 <sonar.java.source>${maven.compiler.release}</sonar.java.source>
54 <sonar-jacoco-listeners.version>5.14.0.18788</sonar-jacoco-listeners.version>
55 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
57 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
58 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/generated-test-sources/**,**/yang-gen/**,**/yang-gen-config/**,**/yang-gen-sal/**,**/yang-gen-code/**,**/pax/**</sonar.exclusions>
60 <!-- Opt-in code quality checks -->
61 <duplicate-finder.skip>true</duplicate-finder.skip> <!-- Classpath duplicates -->
63 <!-- Redirect test output to files (overridable) -->
64 <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
66 <!-- Opt-out from maven-checkstyle-plugin failing the build on violations. Defaults
67 to true. Set to 'false' in pom.xml of project which desires to not enforce
68 no reported violations. -->
69 <odlparent.checkstyle.enforce>true</odlparent.checkstyle.enforce>
71 <!-- Opt-in into modernizer-maven-plugin failing the build on violations. Defaults
72 to true. Set to 'false' in pom.xml of project which desires to not enforce
73 no reported violations. -->
74 <odlparent.modernizer.enforce>true</odlparent.modernizer.enforce>
76 <!-- Target release for modernizer-maven-plugin. It defaults to '1.11',
77 meaning Java 11, but can be set to any version in pom.xml of project
78 which desires to override it (such as '1.12' for Java 12). -->
79 <odlparent.modernizer.target>1.11</odlparent.modernizer.target>
81 <!-- Opt-out from spotbugs-maven-plugin failing the build on violations. Defaults
82 to true. Set to 'false' in pom.xml of project which desires to not enforce
83 no reported violations. -->
84 <odlparent.spotbugs.enforce>true</odlparent.spotbugs.enforce>
86 <!-- Opt-in into maven-dependency-plugin dependency declaration consistency
87 enforcement. Defaults to false. Set to 'true' in pom.xml of a project which
88 desires to have the consistency of its dependencies checked and enforced. -->
89 <odlparent.dependency.enforce>false</odlparent.dependency.enforce>
91 <!-- Opt-out from maven-dependency-plugin dependency declaration consistency
92 checking. Defaults to false. Set to 'true' in pom.xml of a project which
93 desires to not check the consistency of its dependencies. -->
94 <odlparent.dependency.skip>false</odlparent.dependency.skip>
97 <dependencyManagement>
101 <groupId>org.opendaylight.odlparent</groupId>
102 <artifactId>odlparent-artifacts</artifactId>
103 <version>11.0.0-SNAPSHOT</version>
104 <scope>import</scope>
108 <!-- We import the Karaf BOM to ensure we converge by default on the versions used there -->
110 <groupId>org.apache.karaf</groupId>
111 <artifactId>karaf-bom</artifactId>
112 <version>${karaf.version}</version>
113 <scope>import</scope>
117 <!-- Build tool dependencies (normally not here in <dependencies>,
118 but in a <dependency> in <pluginManagement> but for Checkstyle this
119 is required so that we can share the same version of Checkstyle
120 for both the Maven plugin below as well as for custom Checkstyle
121 check rule projects, such as yangtools' checkstyle-logging) -->
123 <groupId>com.puppycrawl.tools</groupId>
124 <artifactId>checkstyle</artifactId>
125 <!-- This should match the plugin management on maven-checkstyle-plugin below -->
126 <version>10.2</version>
129 <!-- Testing Dependencies -->
130 <!-- JUnit, Hamcrest and Mockito need to be kept in sync -->
132 <groupId>org.junit</groupId>
133 <artifactId>junit-bom</artifactId>
134 <version>5.8.2</version>
136 <scope>import</scope>
139 <groupId>junit</groupId>
140 <artifactId>junit</artifactId>
141 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
142 <version>4.13.2</version>
146 <groupId>org.mockito</groupId>
147 <artifactId>mockito-core</artifactId>
148 <version>4.5.1</version>
152 <groupId>org.mockito</groupId>
153 <artifactId>mockito-junit-jupiter</artifactId>
154 <version>4.5.1</version>
158 <groupId>org.mockito</groupId>
159 <artifactId>mockito-inline</artifactId>
160 <version>4.5.1</version>
164 <groupId>org.hamcrest</groupId>
165 <artifactId>hamcrest</artifactId>
166 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
167 <version>2.2</version>
171 <groupId>org.hamcrest</groupId>
172 <artifactId>hamcrest-core</artifactId>
173 <version>2.2</version>
177 <groupId>org.hamcrest</groupId>
178 <artifactId>hamcrest-library</artifactId>
179 <version>2.2</version>
183 <groupId>org.awaitility</groupId>
184 <artifactId>awaitility</artifactId>
185 <version>4.1.1</version>
190 Annotation Processors
193 <!-- Generates immutable implementations, builders, the works -->
194 <groupId>org.immutables</groupId>
195 <artifactId>value</artifactId>
196 <classifier>annotations</classifier>
197 <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
198 <version>2.8.8</version>
199 <!-- Must be provided; scope=test here breaks APT in Eclipse :( -->
200 <scope>provided</scope>
204 <!-- Generates META-INF/services entries for ServiceLoader -->
205 <groupId>org.kohsuke.metainf-services</groupId>
206 <artifactId>metainf-services</artifactId>
207 <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
208 <version>1.9</version>
209 <optional>true</optional>
210 <scope>provided</scope>
217 <groupId>ch.qos.logback</groupId>
218 <artifactId>logback-core</artifactId>
219 <version>1.2.11</version>
222 <groupId>ch.qos.logback</groupId>
223 <artifactId>logback-classic</artifactId>
224 <version>1.2.11</version>
229 <groupId>org.apache.logging.log4j</groupId>
230 <artifactId>log4j-bom</artifactId>
231 <version>2.17.1</version>
232 <scope>import</scope>
237 <groupId>com.google.guava</groupId>
238 <artifactId>guava</artifactId>
239 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
240 <version>31.1-jre</version>
243 <!-- Do not leak JSR305 onto the classpath by default -->
244 <groupId>com.google.code.findbugs</groupId>
245 <artifactId>jsr305</artifactId>
250 <groupId>com.google.guava</groupId>
251 <artifactId>guava-testlib</artifactId>
252 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
253 <version>31.1-jre</version>
257 <!-- Do not leak JSR305 onto the classpath by default -->
258 <groupId>com.google.code.findbugs</groupId>
259 <artifactId>jsr305</artifactId>
264 <groupId>org.checkerframework</groupId>
265 <artifactId>checker-qual</artifactId>
266 <version>3.12.0</version>
269 <groupId>com.google.errorprone</groupId>
270 <artifactId>error_prone_annotations</artifactId>
271 <version>2.13.1</version>
275 <groupId>commons-beanutils</groupId>
276 <artifactId>commons-beanutils</artifactId>
277 <version>1.9.4</version>
280 <groupId>org.apache.commons</groupId>
281 <artifactId>commons-lang3</artifactId>
282 <version>3.12.0</version>
285 <groupId>org.apache.commons</groupId>
286 <artifactId>commons-text</artifactId>
287 <version>1.9</version>
290 <groupId>commons-lang</groupId>
291 <artifactId>commons-lang</artifactId>
292 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
293 <version>2.6</version>
295 <!-- Jersey for JAXRS -->
297 <groupId>javax.ws.rs</groupId>
298 <artifactId>javax.ws.rs-api</artifactId>
299 <version>2.1.1</version>
302 <groupId>org.glassfish.jersey</groupId>
303 <artifactId>jersey-bom</artifactId>
304 <version>2.27</version>
306 <scope>import</scope>
310 <groupId>jakarta.activation</groupId>
311 <artifactId>jakarta.activation-api</artifactId>
312 <version>1.2.2</version>
316 <groupId>javax.annotation</groupId>
317 <artifactId>javax.annotation-api</artifactId>
318 <version>1.3.2</version>
319 <optional>true</optional>
322 <groupId>xml-apis</groupId>
323 <artifactId>xml-apis</artifactId>
324 <version>1.4.01</version>
327 <!-- Plugin integration -->
329 <groupId>net.java.dev.stax-utils</groupId>
330 <artifactId>stax-utils</artifactId>
331 <version>20070216</version>
334 <!-- JSR173 ships with JRE by default -->
335 <groupId>com.bea.xml</groupId>
336 <artifactId>jsr173-ri</artifactId>
341 <groupId>org.sonatype.plexus</groupId>
342 <artifactId>plexus-build-api</artifactId>
343 <version>0.0.7</version>
346 <groupId>org.codehaus.plexus</groupId>
347 <artifactId>plexus-slf4j-logging</artifactId>
348 <version>1.1</version>
351 <!-- These three need to be consistent:
352 jackson-2.13.2 needs woodstox-6.2.4+
353 woodstox-5.3+ needs stax2-api-4.2.x
356 <groupId>org.codehaus.woodstox</groupId>
357 <artifactId>stax2-api</artifactId>
358 <version>4.2.1</version>
361 <groupId>com.fasterxml.woodstox</groupId>
362 <artifactId>woodstox-core</artifactId>
363 <version>6.2.8</version>
366 <groupId>com.fasterxml.jackson</groupId>
367 <artifactId>jackson-bom</artifactId>
368 <version>2.13.2</version>
369 <scope>import</scope>
374 <groupId>com.github.spotbugs</groupId>
375 <artifactId>spotbugs-annotations</artifactId>
376 <version>4.7.0</version>
377 <scope>provided</scope>
378 <!-- Contains retention=RUNTIME annotations, which are not really needed -->
379 <optional>true</optional>
382 <groupId>com.google.code.findbugs</groupId>
383 <artifactId>jsr305</artifactId>
389 <groupId>org.eclipse.jdt</groupId>
390 <artifactId>org.eclipse.jdt.annotation</artifactId>
391 <version>2.2.600</version>
392 <scope>provided</scope>
395 <groupId>com.google.code.gson</groupId>
396 <artifactId>gson</artifactId>
397 <version>2.9.0</version>
400 <groupId>commons-io</groupId>
401 <artifactId>commons-io</artifactId>
402 <version>2.11.0</version>
407 <groupId>io.netty</groupId>
408 <artifactId>netty-bom</artifactId>
409 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
410 <version>4.1.76.Final</version>
412 <scope>import</scope>
416 <groupId>javax.ws.rs</groupId>
417 <artifactId>jsr311-api</artifactId>
418 <version>1.1.1</version>
421 <groupId>org.bouncycastle</groupId>
422 <artifactId>bcpkix-jdk18on</artifactId>
423 <version>${bouncycastle.version}</version>
426 <groupId>org.bouncycastle</groupId>
427 <artifactId>bcprov-jdk18on</artifactId>
428 <version>${bouncycastle.version}</version>
431 <groupId>org.bouncycastle</groupId>
432 <artifactId>bcprov-ext-jdk18on</artifactId>
433 <version>${bouncycastle.version}</version>
436 <groupId>org.bouncycastle</groupId>
437 <artifactId>bcutil-jdk18on</artifactId>
438 <version>${bouncycastle.version}</version>
442 <groupId>com.webcohesion.enunciate</groupId>
443 <artifactId>enunciate-core-annotations</artifactId>
444 <!-- This must be aligned with the version of enunciate-maven-plugin specified below -->
445 <version>2.13.3</version>
449 <groupId>org.javassist</groupId>
450 <artifactId>javassist</artifactId>
451 <version>3.28.0-GA</version>
454 <groupId>org.jboss.spec.javax.transaction</groupId>
455 <artifactId>jboss-transaction-api_1.1_spec</artifactId>
456 <version>1.0.1.Final</version>
459 <groupId>org.jolokia</groupId>
460 <artifactId>jolokia-osgi</artifactId>
461 <version>1.7.1</version>
464 <!-- OSGi Release 8 artifacts we support, augmenting Karaf's BOM -->
466 <groupId>org.osgi</groupId>
467 <artifactId>org.osgi.annotation.bundle</artifactId>
468 <version>1.1.0</version>
469 <scope>provided</scope>
472 <groupId>org.osgi</groupId>
473 <artifactId>org.osgi.annotation.versioning</artifactId>
474 <version>1.1.1</version>
475 <scope>provided</scope>
478 <groupId>org.osgi</groupId>
479 <artifactId>org.osgi.framework</artifactId>
480 <version>1.10.0</version>
481 <scope>provided</scope>
484 <groupId>org.osgi</groupId>
485 <artifactId>org.osgi.service.component.annotations</artifactId>
486 <version>1.5.0</version>
487 <scope>provided</scope>
489 <!-- Causes class path duplicates -->
491 <groupId>org.osgi</groupId>
492 <artifactId>osgi.annotation</artifactId>
497 <groupId>org.osgi</groupId>
498 <artifactId>org.osgi.service.http.whiteboard</artifactId>
499 <version>1.1.1</version>
500 <scope>provided</scope>
502 <!-- Causes class path duplicates -->
504 <groupId>org.osgi</groupId>
505 <artifactId>osgi.annotation</artifactId>
510 <groupId>org.osgi</groupId>
511 <artifactId>org.osgi.service.jdbc</artifactId>
512 <version>1.0.1</version>
513 <scope>provided</scope>
515 <!-- Causes class path duplicates -->
517 <groupId>org.osgi</groupId>
518 <artifactId>osgi.annotation</artifactId>
523 <groupId>org.osgi</groupId>
524 <artifactId>org.osgi.service.metatype.annotations</artifactId>
525 <version>1.4.1</version>
526 <scope>provided</scope>
528 <!-- Causes class path duplicates -->
530 <groupId>org.osgi</groupId>
531 <artifactId>osgi.annotation</artifactId>
536 <groupId>org.osgi</groupId>
537 <artifactId>org.osgi.service.resolver</artifactId>
538 <version>1.1.1</version>
539 <scope>provided</scope>
542 <groupId>org.osgi</groupId>
543 <artifactId>org.osgi.service.url</artifactId>
544 <version>1.0.1</version>
545 <scope>provided</scope>
548 <groupId>org.osgi</groupId>
549 <artifactId>org.osgi.util.tracker</artifactId>
550 <version>1.5.3</version>
551 <scope>provided</scope>
554 <!-- for https://jira.opendaylight.org/browse/ODLPARENT-24 -->
556 <groupId>org.apache.aries.quiesce</groupId>
557 <artifactId>org.apache.aries.quiesce.api</artifactId>
558 <version>1.0.0</version>
561 <!-- LMAX Disruptor -->
563 <groupId>com.lmax</groupId>
564 <artifactId>disruptor</artifactId>
565 <version>3.4.4</version>
568 <!-- Add Pax Exam -->
570 <groupId>org.ops4j.pax.exam</groupId>
571 <artifactId>pax-exam</artifactId>
572 <version>4.13.5</version>
576 <groupId>org.ops4j.pax.exam</groupId>
577 <artifactId>pax-exam-container-forked</artifactId>
578 <version>4.13.5</version>
582 <groupId>org.ops4j.pax.exam</groupId>
583 <artifactId>pax-exam-container-karaf</artifactId>
584 <version>4.13.5</version>
588 <groupId>org.ops4j.pax.exam</groupId>
589 <artifactId>pax-exam-container-native</artifactId>
590 <version>4.13.5</version>
594 <groupId>org.ops4j.pax.exam</groupId>
595 <artifactId>pax-exam-extender-service</artifactId>
596 <version>4.13.5</version>
600 <groupId>org.ops4j.pax.exam</groupId>
601 <artifactId>pax-exam-inject</artifactId>
602 <version>4.13.5</version>
606 <groupId>org.ops4j.pax.exam</groupId>
607 <artifactId>pax-exam-invoker-junit</artifactId>
608 <version>4.13.5</version>
612 <groupId>org.ops4j.pax.exam</groupId>
613 <artifactId>pax-exam-features</artifactId>
614 <version>4.13.5</version>
619 <groupId>org.ops4j.pax.exam</groupId>
620 <artifactId>pax-exam-junit4</artifactId>
621 <version>4.13.5</version>
625 <groupId>org.ops4j.pax.exam</groupId>
626 <artifactId>pax-exam-link-mvn</artifactId>
627 <version>4.13.5</version>
631 <groupId>org.ops4j.pax.exam</groupId>
632 <artifactId>pax-exam-link-assembly</artifactId>
633 <version>4.13.5</version>
638 <groupId>org.ops4j.pax.url</groupId>
639 <artifactId>pax-url-link</artifactId>
640 <version>2.6.10</version>
644 <groupId>org.ops4j.pax.url</groupId>
645 <artifactId>pax-url-aether</artifactId>
646 <version>2.6.10</version>
650 <groupId>org.ops4j.pax.url</groupId>
651 <artifactId>pax-url-wrap</artifactId>
652 <version>2.6.10</version>
656 <groupId>org.springframework.osgi</groupId>
657 <artifactId>spring-osgi-mock</artifactId>
658 <version>1.2.1</version>
663 <groupId>org.xmlunit</groupId>
664 <artifactId>xmlunit-core</artifactId>
665 <version>2.9.0</version>
669 <groupId>org.xmlunit</groupId>
670 <artifactId>xmlunit-assertj</artifactId>
671 <version>2.9.0</version>
675 <groupId>org.xmlunit</groupId>
676 <artifactId>xmlunit-assertj3</artifactId>
677 <version>2.9.0</version>
681 <groupId>org.xmlunit</groupId>
682 <artifactId>xmlunit-matchers</artifactId>
683 <version>2.9.0</version>
686 <!-- FIXME: remove this once we have migrated over -->
688 <groupId>org.xmlunit</groupId>
689 <artifactId>xmlunit-legacy</artifactId>
690 <version>2.9.0</version>
694 <!-- Annotations for modernizer-maven-plugin -->
696 <groupId>org.gaul</groupId>
697 <artifactId>modernizer-maven-annotations</artifactId>
698 <!-- This should match the plugin version below -->
699 <version>2.4.0</version>
700 <scope>provided</scope>
704 <groupId>org.eclipse.jetty</groupId>
705 <artifactId>jetty-bom</artifactId>
706 <version>9.4.46.v20220331</version>
707 <scope>import</scope>
712 <!-- A better alternative for javax.inject, from https://guicedee.com/ -->
714 <groupId>com.guicedee.services</groupId>
715 <artifactId>javax.inject</artifactId>
716 <version>1.0.20.0</version>
717 <scope>provided</scope>
718 <optional>true</optional>
721 <!-- jung, a graph library -->
723 <groupId>net.sf.jung</groupId>
724 <artifactId>jung-api</artifactId>
725 <version>2.1.1</version>
728 <groupId>net.sf.jung</groupId>
729 <artifactId>jung-algorithms</artifactId>
730 <version>2.1.1</version>
733 <groupId>net.sf.jung</groupId>
734 <artifactId>jung-graph-impl</artifactId>
735 <version>2.1.1</version>
738 <!-- ThreeTen-Extra, date/time complements -->
740 <groupId>org.threeten</groupId>
741 <artifactId>threeten-extra</artifactId>
742 <version>1.7.0</version>
745 <!-- When updating this version, consider antl4-maven-plugin below -->
747 <groupId>org.antlr</groupId>
748 <artifactId>antlr4-runtime</artifactId>
749 <version>4.9.3</version>
752 <!-- TrieMap library -->
754 <groupId>tech.pantheon.triemap</groupId>
755 <artifactId>bom</artifactId>
756 <version>1.2.0</version>
757 <scope>import</scope>
761 <!-- Dropwizard metrics -->
763 <groupId>io.dropwizard.metrics</groupId>
764 <artifactId>metrics-bom</artifactId>
765 <version>4.2.9</version>
766 <scope>import</scope>
770 <!-- Sonar/JaCoCo integration -->
772 <groupId>org.sonarsource.java</groupId>
773 <artifactId>sonar-jacoco-listeners</artifactId>
774 <version>${sonar-jacoco-listeners.version}</version>
778 </dependencyManagement>
782 We expect slf4j-api to be provided by the platform.
783 Karaf provides it, other containers need to provide it themselves.
786 <groupId>org.slf4j</groupId>
787 <artifactId>slf4j-api</artifactId>
788 <scope>provided</scope>
792 Enable useful code quality annotations everywhere. Since these annotations
793 are not required at runtime.
796 <groupId>org.eclipse.jdt</groupId>
797 <artifactId>org.eclipse.jdt.annotation</artifactId>
798 <scope>provided</scope>
801 <groupId>com.github.spotbugs</groupId>
802 <artifactId>spotbugs-annotations</artifactId>
803 <scope>provided</scope>
804 <optional>true</optional>
807 <groupId>org.gaul</groupId>
808 <artifactId>modernizer-maven-annotations</artifactId>
809 <scope>provided</scope>
813 Testing output should be routed through slf4j-simple.
816 <groupId>org.slf4j</groupId>
817 <artifactId>slf4j-simple</artifactId>
822 Unit tests can use JUnit + Mockito + Hamcrest by default.
825 <groupId>org.hamcrest</groupId>
826 <artifactId>hamcrest</artifactId>
830 <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
831 <groupId>org.hamcrest</groupId>
832 <artifactId>hamcrest-library</artifactId>
836 <!-- JUnit 5 integration -->
838 <groupId>org.junit.jupiter</groupId>
839 <artifactId>junit-jupiter-api</artifactId>
843 <groupId>org.junit.jupiter</groupId>
844 <artifactId>junit-jupiter-engine</artifactId>
848 <groupId>org.mockito</groupId>
849 <artifactId>mockito-junit-jupiter</artifactId>
853 <!-- JUnit 4 integration -->
855 <groupId>junit</groupId>
856 <artifactId>junit</artifactId>
860 <groupId>org.junit.jupiter</groupId>
861 <artifactId>junit-jupiter-migrationsupport</artifactId>
865 <groupId>org.junit.vintage</groupId>
866 <artifactId>junit-vintage-engine</artifactId>
870 <groupId>org.mockito</groupId>
871 <artifactId>mockito-core</artifactId>
879 <!-- Official maven plugins, alpha-sorted by artifactId.
880 We do not need to specify the groupId. -->
882 <artifactId>maven-checkstyle-plugin</artifactId>
883 <version>3.1.2</version>
886 <groupId>com.puppycrawl.tools</groupId>
887 <artifactId>checkstyle</artifactId>
888 <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
889 <version>10.2</version>
892 <groupId>org.opendaylight.odlparent</groupId>
893 <artifactId>checkstyle</artifactId>
894 <version>11.0.0-SNAPSHOT</version>
897 <groupId>com.github.sevntu-checkstyle</groupId>
898 <artifactId>sevntu-checks</artifactId>
899 <version>1.42.0</version>
903 <configLocation>odl_checks.xml</configLocation>
904 <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
905 <!-- <sourceDirectories> are needed so that checkstyle ignores the
906 generated sources directory -->
908 <directory>${project.build.sourceDirectory}</directory>
910 <includeResources>true</includeResources>
911 <includeTestSourceDirectory>true</includeTestSourceDirectory>
912 <includeTestResources>true</includeTestResources>
913 <includes>**\/*.java</includes>
915 org/opendaylight/yang/gen/**,
916 **/protobuff/messages/**,
917 **/thrift/gen/*.java,
920 <failsOnError>false</failsOnError>
921 <consoleOutput>true</consoleOutput>
925 <id>check-license</id>
929 <phase>process-sources</phase>
931 <configLocation>check-license.xml</configLocation>
932 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
933 <includeResources>false</includeResources>
934 <includeTestSourceDirectory>true</includeTestSourceDirectory>
935 <includeTestResources>false</includeTestResources>
937 <directory>${project.build.sourceDirectory}</directory>
940 org/opendaylight/yang/gen/**,
941 **/protobuff/messages/**,
944 <failsOnError>false</failsOnError>
945 <consoleOutput>true</consoleOutput>
952 <phase>process-sources</phase>
954 <failOnViolation>${odlparent.checkstyle.enforce}</failOnViolation>
955 <skip>${odlparent.checkstyle.skip}</skip>
956 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
962 <artifactId>maven-compiler-plugin</artifactId>
964 <showWarnings>true</showWarnings>
966 <arg>-parameters</arg>
967 <arg>-Xlint:all</arg>
968 <!-- Disable 'No processor claimed any of these annotations' -->
969 <arg>-Xlint:-processing</arg>
970 <!-- Disable 'declares no explicit constructors, thereby exposing a default constructor'
971 because it causes a lot of warnings in downstreams. -->
972 <arg>-Xlint:-missing-explicit-ctor</arg>
974 <annotationProcessorPaths>
976 <groupId>org.immutables</groupId>
977 <artifactId>value</artifactId>
978 <!-- Keep this version in sync with dependency declaration above -->
979 <version>2.8.8</version>
982 <groupId>org.kohsuke.metainf-services</groupId>
983 <artifactId>metainf-services</artifactId>
984 <!-- Keep this version in sync with dependency declaration above -->
985 <version>1.9</version>
987 </annotationProcessorPaths>
991 <artifactId>maven-failsafe-plugin</artifactId>
992 <version>3.0.0-M6</version>
995 <artifactId>maven-invoker-plugin</artifactId>
996 <version>3.2.2</version>
999 <artifactId>maven-dependency-plugin</artifactId>
1002 <id>unpack-license</id>
1003 <phase>generate-resources</phase>
1010 <groupId>org.opendaylight.odlparent</groupId>
1011 <artifactId>odl-license</artifactId>
1012 <version>11.0.0-SNAPSHOT</version>
1013 <type>license</type>
1014 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1015 <destFileName>LICENSE</destFileName>
1016 <overWrite>false</overWrite>
1019 <silent>true</silent>
1023 <id>analyze-declarations</id>
1025 <goal>analyze-only</goal>
1028 <failOnWarning>${odlparent.dependency.enforce}</failOnWarning>
1029 <ignoreNonCompile>true</ignoreNonCompile>
1030 <skip>${odlparent.dependency.skip}</skip>
1037 <artifactId>maven-plugin-plugin</artifactId>
1038 <version>3.6.2</version>
1042 <artifactId>maven-remote-resources-plugin</artifactId>
1043 <version>1.7.0</version>
1046 <artifactId>maven-shade-plugin</artifactId>
1047 <version>3.3.0</version>
1050 <artifactId>maven-source-plugin</artifactId>
1051 <version>3.2.1</version>
1054 <id>attach-sources</id>
1055 <phase>verify</phase>
1057 <goal>jar-no-fork</goal>
1063 <artifactId>maven-surefire-plugin</artifactId>
1064 <version>3.0.0-M6</version>
1066 <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1067 <trimStackTrace>false</trimStackTrace>
1071 <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1073 <groupId>org.basepom.maven</groupId>
1074 <artifactId>duplicate-finder-maven-plugin</artifactId>
1075 <version>1.5.0</version>
1079 <groupId>com.github.ekryd.echo-maven-plugin</groupId>
1080 <artifactId>echo-maven-plugin</artifactId>
1081 <version>1.3.2</version>
1085 <groupId>org.apache.felix</groupId>
1086 <artifactId>maven-bundle-plugin</artifactId>
1087 <version>5.1.5</version>
1088 <extensions>true</extensions>
1091 <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1092 so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1093 and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present. -->
1094 <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>
1096 <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1097 to generate Import-Service and Export-Service headers. -->
1098 <_removeheaders>Import-Service,Export-Service</_removeheaders>
1104 <groupId>org.apache.karaf.tooling</groupId>
1105 <artifactId>karaf-maven-plugin</artifactId>
1106 <version>${karaf.version}</version>
1107 <extensions>true</extensions>
1111 <groupId>org.apache.servicemix.tooling</groupId>
1112 <artifactId>depends-maven-plugin</artifactId>
1113 <version>1.4.0</version>
1116 <id>generate-depends-file</id>
1118 <goal>generate-depends-file</goal>
1125 <groupId>com.webcohesion.enunciate</groupId>
1126 <artifactId>enunciate-maven-plugin</artifactId>
1127 <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1128 <version>2.13.3</version>
1132 <groupId>org.gaul</groupId>
1133 <artifactId>modernizer-maven-plugin</artifactId>
1134 <version>2.4.0</version>
1136 <javaVersion>${odlparent.modernizer.target}</javaVersion>
1137 <failOnViolations>${odlparent.modernizer.enforce}</failOnViolations>
1138 <skip>${odlparent.modernizer.skip}</skip>
1141 <!-- We are using Guava as per normal and we have grown a large body of code
1142 around the patterns there. Furthermore the suggested replacements have
1143 different behavior, hence we do NOT want to blindly migrate. Examples
1146 - Iterables, which we are widely use for efficient discovery of when
1147 the Iterable is actually a Collection
1149 <exclusionPattern>com/google/common/collect/Iterables.*</exclusionPattern>
1150 </exclusionPatterns>
1156 <phase>verify</phase>
1158 <goal>modernizer</goal>
1165 <groupId>org.apache.karaf.tooling</groupId>
1166 <artifactId>karaf-services-maven-plugin</artifactId>
1167 <version>${karaf.version}</version>
1170 <id>service-metadata-generate</id>
1171 <phase>process-classes</phase>
1173 <goal>service-metadata-generate</goal>
1180 <groupId>com.github.spotbugs</groupId>
1181 <artifactId>spotbugs-maven-plugin</artifactId>
1182 <version>4.7.0.0</version>
1185 <groupId>com.github.spotbugs</groupId>
1186 <artifactId>spotbugs</artifactId>
1187 <version>4.7.0</version>
1190 <groupId>org.opendaylight.odlparent</groupId>
1191 <artifactId>spotbugs</artifactId>
1192 <version>11.0.0-SNAPSHOT</version>
1195 <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 4 -->
1197 <groupId>org.slf4j</groupId>
1198 <artifactId>slf4j-api</artifactId>
1199 <version>1.8.0-beta4</version>
1202 <groupId>org.slf4j</groupId>
1203 <artifactId>slf4j-simple</artifactId>
1204 <version>1.8.0-beta4</version>
1210 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1211 <artifactId>bug-pattern</artifactId>
1212 <version>1.5.0</version>
1216 Enables analysis which takes more memory but finds more bugs.
1217 If you run out of memory, changes the value of the effort element
1220 <effort>Max</effort>
1221 <!-- Reports all bugs (other values are medium and max) -->
1222 <threshold>Low</threshold>
1223 <!-- Build doesn't fail if problems are found -->
1224 <failOnError>${odlparent.spotbugs.enforce}</failOnError>
1225 <skip>${odlparent.spotbugs.skip}</skip>
1226 <!-- References the excluded rules -->
1227 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1228 <!-- Produces XML report -->
1229 <xmlOutput>true</xmlOutput>
1230 <!-- Configures the directory in which the XML report is created -->
1231 <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1235 Ensures that SpotBugs inspects source code when project is compiled.
1238 <id>analyze-compile</id>
1239 <phase>compile</phase>
1247 <groupId>org.codehaus.mojo</groupId>
1248 <artifactId>properties-maven-plugin</artifactId>
1249 <version>1.0.0</version>
1252 <groupId>org.eclipse.m2e</groupId>
1253 <artifactId>lifecycle-mapping</artifactId>
1254 <version>1.0.0</version>
1256 <lifecycleMappingMetadata>
1259 <pluginExecutionFilter>
1260 <groupId>org.apache.felix</groupId>
1261 <artifactId>maven-bundle-plugin</artifactId>
1262 <versionRange>[1.0,)</versionRange>
1264 <goal>manifest</goal>
1266 </pluginExecutionFilter>
1272 <pluginExecutionFilter>
1273 <groupId>org.apache.maven.plugins</groupId>
1274 <artifactId>maven-enforcer-plugin</artifactId>
1275 <versionRange>[1.0.0,)</versionRange>
1277 <goal>enforce</goal>
1279 </pluginExecutionFilter>
1285 <pluginExecutionFilter>
1286 <groupId>org.apache.maven.plugins</groupId>
1287 <artifactId>maven-dependency-plugin</artifactId>
1288 <versionRange>[2.10,)</versionRange>
1292 </pluginExecutionFilter>
1297 <!-- The plugin will eventually be removed, remove this too at that point -->
1299 <pluginExecutionFilter>
1300 <groupId>org.apache.maven.plugins</groupId>
1301 <artifactId>maven-antrun-plugin</artifactId>
1302 <versionRange>[1.8,)</versionRange>
1306 </pluginExecutionFilter>
1312 <pluginExecutionFilter>
1313 <groupId>org.apache.servicemix.tooling</groupId>
1314 <artifactId>depends-maven-plugin</artifactId>
1315 <versionRange>[1.2,)</versionRange>
1317 <goal>generate-depends-file</goal>
1319 </pluginExecutionFilter>
1325 <pluginExecutionFilter>
1326 <groupId>org.jacoco</groupId>
1327 <artifactId>jacoco-maven-plugin</artifactId>
1328 <versionRange>[0.7.0,)</versionRange>
1330 <goal>prepare-agent</goal>
1332 </pluginExecutionFilter>
1339 <pluginExecutionFilter>
1340 <groupId>org.ops4j.pax.exam</groupId>
1341 <artifactId>maven-paxexam-plugin</artifactId>
1342 <versionRange>[1.2.4,)</versionRange>
1344 <goal>generate-depends-file</goal>
1346 </pluginExecutionFilter>
1353 <pluginExecutionFilter>
1354 <groupId>org.basepom.maven</groupId>
1356 duplicate-finder-maven-plugin
1358 <versionRange>[1.2.1,)</versionRange>
1362 </pluginExecutionFilter>
1368 </lifecycleMappingMetadata>
1373 <groupId>org.jacoco</groupId>
1374 <artifactId>jacoco-maven-plugin</artifactId>
1376 <!-- Note: This exclusion list should match <sonar.exclusions>
1379 <exclude>**/gen/**</exclude>
1380 <exclude>**/generated-sources/**</exclude>
1381 <exclude>**/generated-test-sources/**</exclude>
1382 <exclude>**/yang-gen/**</exclude>
1383 <exclude>**/yang-gen-config/**</exclude>
1384 <exclude>**/yang-gen-sal/**</exclude>
1385 <exclude>**/yang-gen-code/**</exclude>
1386 <exclude>**/pax/**</exclude>
1392 <groupId>org.ops4j.pax.exam</groupId>
1393 <artifactId>maven-paxexam-plugin</artifactId>
1394 <version>1.2.4</version>
1397 <!-- When updating this version, consider antl4-runtime above -->
1399 <groupId>org.antlr</groupId>
1400 <artifactId>antlr4-maven-plugin</artifactId>
1401 <version>4.9.3</version>
1408 <artifactId>maven-enforcer-plugin</artifactId>
1411 <id>enforce-banned-dependencies</id>
1413 <goal>enforce</goal>
1417 <bannedDependencies>
1418 <message>Please always use mockito-core instead of mockito-all (see https://jira.opendaylight.org/browse/ODLPARENT-59), and spotbugs:annotations instead of findbugs:annotations</message>
1420 <exclude>org.mockito:mockito-all</exclude>
1421 <exclude>com.google.code.findbugs:annotations</exclude>
1423 </bannedDependencies>
1431 <groupId>org.basepom.maven</groupId>
1432 <artifactId>duplicate-finder-maven-plugin</artifactId>
1435 <id>find-duplicate-classpath-entries</id>
1436 <phase>verify</phase>
1443 <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1444 <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1445 <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1446 <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1447 <printEqualFiles>false</printEqualFiles>
1449 <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1450 as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1451 we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1453 <ignoredResourcePatterns>
1454 <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1455 <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1456 <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1457 <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1458 <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1459 <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1460 <ignoredResourcePattern>.api_description</ignoredResourcePattern>
1461 </ignoredResourcePatterns>
1462 <ignoredDependencies>
1464 <groupId>org.slf4j</groupId>
1465 <artifactId>slf4j-simple</artifactId>
1466 </ignoredDependency>
1468 <groupId>org.opendaylight.odlparent</groupId>
1469 <artifactId>opendaylight-karaf-empty</artifactId>
1470 </ignoredDependency>
1471 </ignoredDependencies>
1475 <artifactId>maven-dependency-plugin</artifactId>
1478 <artifactId>maven-checkstyle-plugin</artifactId>
1481 <artifactId>maven-source-plugin</artifactId>
1484 <artifactId>maven-javadoc-plugin</artifactId>
1487 <groupId>org.gaul</groupId>
1488 <artifactId>modernizer-maven-plugin</artifactId>
1491 <groupId>com.github.spotbugs</groupId>
1492 <artifactId>spotbugs-maven-plugin</artifactId>
1495 <!-- Jacoco / Sonar -->
1497 <groupId>org.jacoco</groupId>
1498 <artifactId>jacoco-maven-plugin</artifactId>
1501 <id>pre-unit-test</id>
1503 <goal>prepare-agent</goal>
1516 <groupId>org.opendaylight.odlparent</groupId>
1517 <artifactId>copy-files-plugin</artifactId>
1518 <version>11.0.0-SNAPSHOT</version>
1521 <phase>prepare-package</phase>
1523 <goal>copy-files</goal>
1527 <glob>README*</glob>
1528 <glob>CONTRIBUTING*</glob>
1529 <glob>PROJECT_INFO.yaml</glob>
1541 <artifactId>maven-checkstyle-plugin</artifactId>
1542 <version>3.1.0</version>
1545 <!-- FIXME: activate this
1547 <artifactId>maven-project-info-reports-plugin</artifactId>
1550 <groupId>org.codehaus.mojo</groupId>
1551 <artifactId>jdepend-maven-plugin</artifactId>
1555 <report>generate-no-fork</report>