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>9.0.4-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/view/ODL_Root_Parent:Main</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 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
43 <!-- Java Versions -->
44 <maven.compiler.release>11</maven.compiler.release>
46 <!-- Used in controller, genius, infrautils, netconf, netvirt, ovsdb, serviceutils -->
47 <karaf.version>4.3.2</karaf.version>
49 <!-- Supporting Libraries -->
50 <!-- Only used internally -->
51 <bouncycastle.version>1.69</bouncycastle.version>
53 <!-- JaCoCo configuration, by default tied to Sonar configuration, but can be overridden separately
54 to allow projects to report Sonar values from the entire project. -->
55 <jacoco.destFile>${project.build.directory}/code-coverage/jacoco.exec</jacoco.destFile>
56 <jacoco.dataFile>${jacoco.destFile}</jacoco.dataFile>
58 <!-- Default Sonar configuration -->
59 <sonar.java.source>${maven.compiler.release}</sonar.java.source>
60 <sonar-jacoco-listeners.version>3.8</sonar-jacoco-listeners.version>
61 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
63 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
64 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/generated-test-sources/**,**/yang-gen/**,**/yang-gen-config/**,**/yang-gen-sal/**,**/yang-gen-code/**,**/pax/**</sonar.exclusions>
66 <!-- Opt-in code quality checks -->
67 <pmd.cpd.fail>false</pmd.cpd.fail> <!-- Copy/paste detection -->
68 <duplicate-finder.skip>true</duplicate-finder.skip> <!-- Classpath duplicates -->
70 <!-- Redirect test output to files (overridable) -->
71 <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
73 <!-- Opt-out from maven-checkstyle-plugin failing the build on violations. Defaults
74 to true. Set to 'false' in pom.xml of project which desires to not enforce
75 no reported violations. -->
76 <odlparent.checkstyle.enforce>true</odlparent.checkstyle.enforce>
78 <!-- Opt-in into modernizer-maven-plugin failing the build on violations. Defaults
79 to true. Set to 'false' in pom.xml of project which desires to not enforce
80 no reported violations. -->
81 <odlparent.modernizer.enforce>true</odlparent.modernizer.enforce>
83 <!-- Target release for modernizer-maven-plugin. It defaults to '1.11',
84 meaning Java 11, but can be set to any version in pom.xml of project
85 which desires to override it (such as '1.12' for Java 12). -->
86 <odlparent.modernizer.target>1.11</odlparent.modernizer.target>
88 <!-- Opt-out from spotbugs-maven-plugin failing the build on violations. Defaults
89 to true. Set to 'false' in pom.xml of project which desires to not enforce
90 no reported violations. -->
91 <odlparent.spotbugs.enforce>true</odlparent.spotbugs.enforce>
93 <!-- Opt-in into maven-dependency-plugin dependency declaration consistency
94 enforcement. Defaults to false. Set to 'true' in pom.xml of a project which
95 desires to have the consistency of its dependencies checked and enforced. -->
96 <odlparent.dependency.enforce>false</odlparent.dependency.enforce>
98 <!-- Opt-out from maven-dependency-plugin dependency declaration consistency
99 checking. Defaults to false. Set to 'true' in pom.xml of a project which
100 desires to not check the consistency of its dependencies. -->
101 <odlparent.dependency.skip>false</odlparent.dependency.skip>
104 <dependencyManagement>
108 <groupId>org.opendaylight.odlparent</groupId>
109 <artifactId>odlparent-artifacts</artifactId>
110 <version>9.0.4-SNAPSHOT</version>
111 <scope>import</scope>
115 <!-- We import the Karaf BOM to ensure we converge by default on the versions used there -->
117 <groupId>org.apache.karaf</groupId>
118 <artifactId>karaf-bom</artifactId>
119 <version>${karaf.version}</version>
120 <scope>import</scope>
124 <!-- Build tool dependencies (normally not here in <dependencies>,
125 but in a <dependency> in <pluginManagement> but for Checkstyle this
126 is required so that we can share the same version of Checkstyle
127 for both the Maven plugin below as well as for custom Checkstyle
128 check rule projects, such as yangtools' checkstyle-logging) -->
130 <groupId>com.puppycrawl.tools</groupId>
131 <artifactId>checkstyle</artifactId>
132 <!-- This should match the plugin management on maven-checkstyle-plugin below -->
133 <version>8.45.1</version>
136 <!-- Testing Dependencies -->
137 <!-- JUnit, Hamcrest, Mockito and PowerMock need to be kept in sync -->
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.skyscreamer</groupId>
147 <artifactId>jsonassert</artifactId>
148 <version>1.5.0</version>
152 <groupId>org.mockito</groupId>
153 <artifactId>mockito-core</artifactId>
154 <version>3.9.0</version>
158 <groupId>org.mockito</groupId>
159 <artifactId>mockito-inline</artifactId>
160 <version>3.9.0</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>com.google.truth</groupId>
184 <artifactId>truth</artifactId>
185 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
186 <version>1.1.3</version>
190 <groupId>com.google.truth.extensions</groupId>
191 <artifactId>truth-java8-extension</artifactId>
192 <version>1.1.3</version>
196 <groupId>org.awaitility</groupId>
197 <artifactId>awaitility</artifactId>
198 <version>4.1.0</version>
202 <groupId>org.powermock</groupId>
203 <artifactId>powermock-api-mockito2</artifactId>
204 <version>2.0.9</version>
208 <groupId>org.powermock</groupId>
209 <artifactId>powermock-api-support</artifactId>
210 <version>2.0.9</version>
214 <groupId>org.powermock</groupId>
215 <artifactId>powermock-core</artifactId>
216 <version>2.0.9</version>
220 <groupId>org.powermock</groupId>
221 <artifactId>powermock-module-junit4</artifactId>
222 <version>2.0.9</version>
226 <groupId>org.powermock</groupId>
227 <artifactId>powermock-reflect</artifactId>
228 <version>2.0.9</version>
233 Annotation Processors
236 <!-- Generates immutable implementations, builders, the works -->
237 <groupId>org.immutables</groupId>
238 <artifactId>value</artifactId>
239 <classifier>annotations</classifier>
240 <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
241 <version>2.8.8</version>
242 <!-- Must be provided; scope=test here breaks APT in Eclipse :( -->
243 <scope>provided</scope>
247 <!-- Generates META-INF/services entries for ServiceLoader -->
248 <groupId>org.kohsuke.metainf-services</groupId>
249 <artifactId>metainf-services</artifactId>
250 <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
251 <version>1.8</version>
252 <optional>true</optional>
253 <scope>provided</scope>
260 <groupId>ch.qos.logback</groupId>
261 <artifactId>logback-core</artifactId>
262 <version>1.2.5</version>
265 <groupId>ch.qos.logback</groupId>
266 <artifactId>logback-classic</artifactId>
267 <version>1.2.5</version>
272 <groupId>org.apache.logging.log4j</groupId>
273 <artifactId>log4j-bom</artifactId>
274 <version>2.14.1</version>
275 <scope>import</scope>
280 <groupId>com.google.guava</groupId>
281 <artifactId>guava</artifactId>
282 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
283 <version>30.1.1-jre</version>
286 <!-- Do not leak JSR305 onto the classpath by default -->
287 <groupId>com.google.code.findbugs</groupId>
288 <artifactId>jsr305</artifactId>
293 <groupId>com.google.guava</groupId>
294 <artifactId>guava-testlib</artifactId>
295 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
296 <version>30.1.1-jre</version>
300 <!-- Do not leak JSR305 onto the classpath by default -->
301 <groupId>com.google.code.findbugs</groupId>
302 <artifactId>jsr305</artifactId>
307 <groupId>org.checkerframework</groupId>
308 <artifactId>checker-qual</artifactId>
309 <version>3.8.0</version>
312 <groupId>com.google.errorprone</groupId>
313 <artifactId>error_prone_annotations</artifactId>
314 <version>2.5.1</version>
318 <groupId>commons-beanutils</groupId>
319 <artifactId>commons-beanutils</artifactId>
320 <version>1.9.4</version>
323 <groupId>org.apache.commons</groupId>
324 <artifactId>commons-lang3</artifactId>
325 <version>3.12.0</version>
328 <groupId>org.apache.commons</groupId>
329 <artifactId>commons-text</artifactId>
330 <version>1.9</version>
333 <groupId>commons-lang</groupId>
334 <artifactId>commons-lang</artifactId>
335 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
336 <version>2.6</version>
339 <groupId>commons-codec</groupId>
340 <artifactId>commons-codec</artifactId>
341 <version>1.15</version>
343 <!-- Jersey for JAXRS -->
345 <groupId>javax.ws.rs</groupId>
346 <artifactId>javax.ws.rs-api</artifactId>
347 <version>2.1.1</version>
350 <groupId>org.glassfish.jersey</groupId>
351 <artifactId>jersey-bom</artifactId>
352 <version>2.27</version>
354 <scope>import</scope>
358 <groupId>jakarta.activation</groupId>
359 <artifactId>jakarta.activation-api</artifactId>
360 <version>1.2.2</version>
364 <groupId>javax.annotation</groupId>
365 <artifactId>javax.annotation-api</artifactId>
366 <version>1.3.1</version>
367 <optional>true</optional>
370 <groupId>xml-apis</groupId>
371 <artifactId>xml-apis</artifactId>
372 <version>1.4.01</version>
375 <!-- Plugin integration -->
377 <groupId>net.java.dev.stax-utils</groupId>
378 <artifactId>stax-utils</artifactId>
379 <version>20070216</version>
382 <!-- JSR173 ships with JRE by default -->
383 <groupId>com.bea.xml</groupId>
384 <artifactId>jsr173-ri</artifactId>
389 <groupId>org.sonatype.plexus</groupId>
390 <artifactId>plexus-build-api</artifactId>
391 <version>0.0.7</version>
394 <groupId>org.codehaus.plexus</groupId>
395 <artifactId>plexus-slf4j-logging</artifactId>
396 <version>1.1</version>
399 <!-- These three need to be consistent:
400 jackson-2.11.4 needs woodstox-6.2.3+
401 woodstox-5.3+ needs stax2-api-4.2.x
404 <groupId>org.codehaus.woodstox</groupId>
405 <artifactId>stax2-api</artifactId>
406 <version>4.2.1</version>
409 <groupId>com.fasterxml.woodstox</groupId>
410 <artifactId>woodstox-core</artifactId>
411 <version>6.2.6</version>
414 <groupId>com.fasterxml.jackson</groupId>
415 <artifactId>jackson-bom</artifactId>
416 <version>2.11.4</version>
417 <scope>import</scope>
422 <groupId>com.github.spotbugs</groupId>
423 <artifactId>spotbugs-annotations</artifactId>
424 <version>3.1.12</version>
425 <scope>provided</scope>
426 <!-- Contains retention=RUNTIME annotations, which are not really needed -->
427 <optional>true</optional>
430 <groupId>com.google.code.findbugs</groupId>
431 <artifactId>jsr305</artifactId>
437 <groupId>org.eclipse.jdt</groupId>
438 <artifactId>org.eclipse.jdt.annotation</artifactId>
439 <version>2.2.600</version>
440 <scope>provided</scope>
442 <!-- We're staying on 2.8.5 for now, 2.8.6 has issues:
443 https://github.com/google/gson/issues/1601
444 https://github.com/google/gson/issues/1602
445 https://github.com/google/gson/issues/1608
446 https://github.com/google/gson/issues/1630
449 <groupId>com.google.code.gson</groupId>
450 <artifactId>gson</artifactId>
451 <version>2.8.5</version>
454 <groupId>commons-fileupload</groupId>
455 <artifactId>commons-fileupload</artifactId>
456 <version>1.4</version>
459 <groupId>commons-io</groupId>
460 <artifactId>commons-io</artifactId>
461 <version>2.11.0</version>
464 <groupId>commons-net</groupId>
465 <artifactId>commons-net</artifactId>
466 <version>3.8.0</version>
471 <groupId>io.netty</groupId>
472 <artifactId>netty-bom</artifactId>
473 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
474 <version>4.1.67.Final</version>
476 <scope>import</scope>
480 <groupId>javax.ws.rs</groupId>
481 <artifactId>jsr311-api</artifactId>
482 <version>1.1.1</version>
485 <groupId>org.bouncycastle</groupId>
486 <artifactId>bcpkix-jdk15on</artifactId>
487 <version>${bouncycastle.version}</version>
490 <groupId>org.bouncycastle</groupId>
491 <artifactId>bcprov-jdk15on</artifactId>
492 <version>${bouncycastle.version}</version>
495 <groupId>org.bouncycastle</groupId>
496 <artifactId>bcprov-ext-jdk15on</artifactId>
497 <version>${bouncycastle.version}</version>
500 <groupId>org.bouncycastle</groupId>
501 <artifactId>bcutil-jdk15on</artifactId>
502 <version>${bouncycastle.version}</version>
506 <groupId>com.webcohesion.enunciate</groupId>
507 <artifactId>enunciate-core-annotations</artifactId>
508 <!-- This must be aligned with the version of enunciate-maven-plugin specified below -->
509 <version>2.13.3</version>
513 <groupId>org.javassist</groupId>
514 <artifactId>javassist</artifactId>
515 <version>3.27.0-GA</version>
518 <groupId>org.jboss.spec.javax.transaction</groupId>
519 <artifactId>jboss-transaction-api_1.1_spec</artifactId>
520 <version>1.0.1.Final</version>
523 <groupId>org.jolokia</groupId>
524 <artifactId>jolokia-osgi</artifactId>
525 <version>1.6.2</version>
529 These are usually used through osgi.cmpn, except when you also want
530 to be a JPMS module. In that case you need to depend on these and
531 have a 'require static org.osgi.service.component.annotations;'.
532 This incurs a warning about publishing the module to a public place.
533 We do not heed that warning, as nothing in this package is seen by
534 the runtime - thus the warning can be safely ignored :)
536 Keep this in sync with rest of OSGi:
537 - OSGi R7 (now) = 1.4.0
540 <groupId>org.osgi</groupId>
541 <artifactId>org.osgi.service.component.annotations</artifactId>
542 <version>1.4.0</version>
543 <scope>provided</scope>
546 <groupId>org.osgi</groupId>
547 <artifactId>org.osgi.service.metatype.annotations</artifactId>
548 <version>1.4.0</version>
552 <groupId>org.osgi</groupId>
553 <artifactId>osgi.annotation</artifactId>
554 <version>7.0.0</version>
555 <scope>provided</scope>
558 <groupId>org.osgi</groupId>
559 <artifactId>osgi.cmpn</artifactId>
560 <version>7.0.0</version>
561 <scope>provided</scope>
564 <groupId>org.osgi</groupId>
565 <artifactId>osgi.core</artifactId>
566 <version>7.0.0</version>
567 <scope>provided</scope>
571 <groupId>org.osgi</groupId>
572 <!-- for https://bugs.opendaylight.org/show_bug.cgi?id=4290 -->
573 <artifactId>org.osgi.service.event</artifactId>
574 <version>1.4.0</version>
577 <groupId>org.apache.aries.quiesce</groupId>
578 <artifactId>org.apache.aries.quiesce.api</artifactId>
579 <version>1.0.0</version>
582 <!-- LMAX Disruptor -->
584 <groupId>com.lmax</groupId>
585 <artifactId>disruptor</artifactId>
586 <version>3.4.4</version>
589 <!-- Add Pax Exam -->
591 <groupId>org.ops4j.pax.exam</groupId>
592 <artifactId>pax-exam</artifactId>
593 <version>4.13.4</version>
597 <groupId>org.ops4j.pax.exam</groupId>
598 <artifactId>pax-exam-container-forked</artifactId>
599 <version>4.13.4</version>
603 <groupId>org.ops4j.pax.exam</groupId>
604 <artifactId>pax-exam-container-karaf</artifactId>
605 <version>4.13.4</version>
609 <groupId>org.ops4j.pax.exam</groupId>
610 <artifactId>pax-exam-container-native</artifactId>
611 <version>4.13.4</version>
615 <groupId>org.ops4j.pax.exam</groupId>
616 <artifactId>pax-exam-extender-service</artifactId>
617 <version>4.13.4</version>
621 <groupId>org.ops4j.pax.exam</groupId>
622 <artifactId>pax-exam-inject</artifactId>
623 <version>4.13.4</version>
627 <groupId>org.ops4j.pax.exam</groupId>
628 <artifactId>pax-exam-invoker-junit</artifactId>
629 <version>4.13.4</version>
633 <groupId>org.ops4j.pax.exam</groupId>
634 <artifactId>pax-exam-features</artifactId>
635 <version>4.13.4</version>
640 <groupId>org.ops4j.pax.exam</groupId>
641 <artifactId>pax-exam-junit4</artifactId>
642 <version>4.13.4</version>
646 <groupId>org.ops4j.pax.exam</groupId>
647 <artifactId>pax-exam-link-mvn</artifactId>
648 <version>4.13.4</version>
652 <groupId>org.ops4j.pax.exam</groupId>
653 <artifactId>pax-exam-link-assembly</artifactId>
654 <version>4.13.4</version>
659 <groupId>org.ops4j.pax.url</groupId>
660 <artifactId>pax-url-link</artifactId>
661 <version>2.5.4</version>
665 <groupId>org.ops4j.pax.url</groupId>
666 <artifactId>pax-url-aether</artifactId>
667 <version>2.5.4</version>
671 <groupId>org.ops4j.pax.url</groupId>
672 <artifactId>pax-url-wrap</artifactId>
673 <version>2.5.4</version>
677 <groupId>org.springframework.osgi</groupId>
678 <artifactId>spring-osgi-mock</artifactId>
679 <version>1.2.1</version>
684 <groupId>org.xmlunit</groupId>
685 <artifactId>xmlunit-core</artifactId>
686 <version>2.8.2</version>
690 <groupId>org.xmlunit</groupId>
691 <artifactId>xmlunit-assertj</artifactId>
692 <version>2.8.2</version>
696 <groupId>org.xmlunit</groupId>
697 <artifactId>xmlunit-assertj3</artifactId>
698 <version>2.8.2</version>
702 <groupId>org.xmlunit</groupId>
703 <artifactId>xmlunit-matchers</artifactId>
704 <version>2.8.2</version>
707 <!-- FIXME: remove this once we have migrated over -->
709 <groupId>org.xmlunit</groupId>
710 <artifactId>xmlunit-legacy</artifactId>
711 <version>2.8.2</version>
715 <!-- Annotations for modernizer-maven-plugin -->
717 <groupId>org.gaul</groupId>
718 <artifactId>modernizer-maven-annotations</artifactId>
719 <!-- This should match the plugin version below -->
720 <version>2.2.0</version>
721 <scope>provided</scope>
725 <groupId>org.eclipse.jetty</groupId>
726 <artifactId>jetty-bom</artifactId>
727 <version>9.4.40.v20210413</version>
728 <scope>import</scope>
733 <groupId>com.h2database</groupId>
734 <artifactId>h2</artifactId>
735 <version>1.4.200</version>
738 <!-- Xtend http://xtend-lang.org
739 NOTE: When you increase the version here,
740 then remember to also increase it for the
741 xtend-maven-plugin below! (We don't want to
742 use a Maven property, in order not to "leak" that.)
745 <groupId>org.eclipse.xtend</groupId>
746 <artifactId>org.eclipse.xtend.lib</artifactId>
747 <version>2.25.0</version>
750 <groupId>org.eclipse.xtend</groupId>
751 <artifactId>org.eclipse.xtend.lib.macro</artifactId>
752 <version>2.25.0</version>
755 <groupId>org.eclipse.xtext</groupId>
756 <artifactId>org.eclipse.xtext.xbase.lib</artifactId>
757 <version>2.25.0</version>
761 <!-- A better alternative for javax.inject, from https://guicedee.com/ -->
763 <groupId>com.guicedee.services</groupId>
764 <artifactId>javax.inject</artifactId>
765 <version>1.0.20.0</version>
766 <scope>provided</scope>
767 <optional>true</optional>
770 <!-- jung, a graph library -->
772 <groupId>net.sf.jung</groupId>
773 <artifactId>jung-api</artifactId>
774 <version>2.1.1</version>
777 <groupId>net.sf.jung</groupId>
778 <artifactId>jung-algorithms</artifactId>
779 <version>2.1.1</version>
782 <groupId>net.sf.jung</groupId>
783 <artifactId>jung-graph-impl</artifactId>
784 <version>2.1.1</version>
787 <!-- ThreeTen-Extra, date/time complements -->
789 <groupId>org.threeten</groupId>
790 <artifactId>threeten-extra</artifactId>
791 <version>1.7.0</version>
794 <!-- When updating this version, consider antl4-maven-plugin below -->
796 <groupId>org.antlr</groupId>
797 <artifactId>antlr4-runtime</artifactId>
798 <version>4.9.2</version>
801 <groupId>org.apache.aries.blueprint</groupId>
802 <artifactId>blueprint-maven-plugin-annotation</artifactId>
803 <version>1.3.0</version>
804 <optional>true</optional>
807 <!-- TrieMap library -->
809 <groupId>tech.pantheon.triemap</groupId>
810 <artifactId>bom</artifactId>
811 <version>1.2.0</version>
812 <scope>import</scope>
816 <!-- Dropwizard metrics -->
818 <groupId>io.dropwizard.metrics</groupId>
819 <artifactId>metrics-bom</artifactId>
820 <version>4.1.25</version>
821 <scope>import</scope>
826 </dependencyManagement>
830 We expect slf4j-api to be provided by the platform.
831 Karaf provides it, other containers need to provide it themselves.
834 <groupId>org.slf4j</groupId>
835 <artifactId>slf4j-api</artifactId>
836 <scope>provided</scope>
840 Enable useful code quality annotations everywhere. Since these annotations
841 are not required at runtime.
844 <groupId>org.eclipse.jdt</groupId>
845 <artifactId>org.eclipse.jdt.annotation</artifactId>
846 <scope>provided</scope>
849 <groupId>com.github.spotbugs</groupId>
850 <artifactId>spotbugs-annotations</artifactId>
851 <scope>provided</scope>
852 <optional>true</optional>
855 <groupId>org.gaul</groupId>
856 <artifactId>modernizer-maven-annotations</artifactId>
857 <scope>provided</scope>
861 Testing output should be routed through slf4j-simple.
864 <groupId>org.slf4j</groupId>
865 <artifactId>slf4j-simple</artifactId>
870 Unit tests can use JUnit + Mockito + Hamcrest by default.
873 <groupId>org.hamcrest</groupId>
874 <artifactId>hamcrest</artifactId>
878 <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
879 <groupId>org.hamcrest</groupId>
880 <artifactId>hamcrest-library</artifactId>
884 <groupId>junit</groupId>
885 <artifactId>junit</artifactId>
889 <groupId>org.mockito</groupId>
890 <artifactId>mockito-core</artifactId>
898 <!-- Official maven plugins, alpha-sorted by artifactId.
899 We do not need to specify the groupId. -->
901 <artifactId>maven-checkstyle-plugin</artifactId>
902 <version>3.1.2</version>
905 <groupId>com.puppycrawl.tools</groupId>
906 <artifactId>checkstyle</artifactId>
907 <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
908 <version>8.45.1</version>
911 <groupId>org.opendaylight.odlparent</groupId>
912 <artifactId>checkstyle</artifactId>
913 <version>9.0.4-SNAPSHOT</version>
916 <groupId>com.github.sevntu-checkstyle</groupId>
917 <artifactId>sevntu-checks</artifactId>
918 <version>1.40.0</version>
922 <configLocation>odl_checks.xml</configLocation>
923 <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
924 <!-- <sourceDirectories> are needed so that checkstyle ignores the
925 generated sources directory -->
927 <directory>${project.build.sourceDirectory}</directory>
929 <includeResources>true</includeResources>
930 <includeTestSourceDirectory>true</includeTestSourceDirectory>
931 <includeTestResources>true</includeTestResources>
932 <includes>**\/*.java, **\/*.xtend</includes>
934 org/opendaylight/yang/gen/**,
935 **/protobuff/messages/**,
936 **/thrift/gen/*.java,
939 <failsOnError>false</failsOnError>
940 <consoleOutput>true</consoleOutput>
944 <id>check-license</id>
948 <phase>process-sources</phase>
950 <configLocation>check-license.xml</configLocation>
951 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
952 <includeResources>false</includeResources>
953 <includeTestSourceDirectory>true</includeTestSourceDirectory>
954 <includeTestResources>false</includeTestResources>
956 <directory>${project.build.sourceDirectory}</directory>
959 org/opendaylight/yang/gen/**,
960 **/protobuff/messages/**,
963 <failsOnError>false</failsOnError>
964 <consoleOutput>true</consoleOutput>
971 <phase>process-sources</phase>
973 <failOnViolation>${odlparent.checkstyle.enforce}</failOnViolation>
974 <skip>${odlparent.checkstyle.skip}</skip>
975 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
981 <groupId>org.apache.maven.plugins</groupId>
982 <artifactId>maven-pmd-plugin</artifactId>
983 <version>3.14.0</version>
987 <phase>process-sources</phase>
989 <goal>cpd-check</goal>
992 <failOnViolation>${pmd.cpd.fail}</failOnViolation>
993 <!-- 100 "tokens" here correspond to approx. 5-10 lines of code -->
994 <minimumTokens>101</minimumTokens>
995 <printFailingErrors>true</printFailingErrors>
997 <excludeRoot>${project.build.directory}/generated-sources</excludeRoot>
998 <excludeRoot>${project.build.directory}/generated-test-sources</excludeRoot>
1000 <linkXRef>false</linkXRef>
1006 <artifactId>maven-compiler-plugin</artifactId>
1007 <version>3.8.1</version>
1009 <showWarnings>true</showWarnings>
1011 <arg>-parameters</arg>
1012 <arg>-Xlint:all</arg>
1013 <!-- Disable 'No processor claimed any of these annotations' -->
1014 <arg>-Xlint:-processing</arg>
1016 <annotationProcessorPaths>
1018 <groupId>org.immutables</groupId>
1019 <artifactId>value</artifactId>
1020 <!-- Keep this version in sync with dependency declaration above -->
1021 <version>2.8.8</version>
1024 <groupId>org.kohsuke.metainf-services</groupId>
1025 <artifactId>metainf-services</artifactId>
1026 <!-- Keep this version in sync with dependency declaration above -->
1027 <version>1.8</version>
1029 </annotationProcessorPaths>
1033 <artifactId>maven-failsafe-plugin</artifactId>
1034 <version>2.22.2</version>
1037 <artifactId>maven-invoker-plugin</artifactId>
1038 <version>3.2.2</version>
1041 <artifactId>maven-dependency-plugin</artifactId>
1044 <id>unpack-license</id>
1045 <phase>generate-resources</phase>
1052 <groupId>org.opendaylight.odlparent</groupId>
1053 <artifactId>odl-license</artifactId>
1054 <version>9.0.4-SNAPSHOT</version>
1055 <type>license</type>
1056 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1057 <destFileName>LICENSE</destFileName>
1058 <overWrite>false</overWrite>
1061 <silent>true</silent>
1065 <id>analyze-declarations</id>
1067 <goal>analyze-only</goal>
1070 <failOnWarning>${odlparent.dependency.enforce}</failOnWarning>
1071 <ignoreNonCompile>true</ignoreNonCompile>
1072 <skip>${odlparent.dependency.skip}</skip>
1079 <artifactId>maven-plugin-plugin</artifactId>
1080 <version>3.6.1</version>
1084 <artifactId>maven-remote-resources-plugin</artifactId>
1085 <version>1.7.0</version>
1088 <artifactId>maven-shade-plugin</artifactId>
1089 <version>3.2.4</version>
1092 <artifactId>maven-source-plugin</artifactId>
1093 <version>3.2.1</version>
1096 <id>attach-sources</id>
1097 <phase>verify</phase>
1099 <goal>jar-no-fork</goal>
1105 <artifactId>maven-surefire-plugin</artifactId>
1106 <version>2.22.2</version>
1108 <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1109 <trimStackTrace>false</trimStackTrace>
1113 <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1115 <!-- Support Blueprint XML construction using annotations -->
1116 <groupId>org.apache.aries.blueprint</groupId>
1117 <artifactId>blueprint-maven-plugin</artifactId>
1118 <version>1.10.0</version>
1119 <!-- TODO remove dependencies when we bump from 1.10.0 to 1.11.0 (or 1.10.1);
1120 see https://jira.opendaylight.org/browse/ODLPARENT-167 & https://jira.apache.org/jira/browse/ARIES-1826 -->
1123 <groupId>org.apache.xbean</groupId>
1124 <artifactId>xbean-finder-shaded</artifactId>
1125 <version>4.19</version>
1130 <scanPath>${project.groupId}</scanPath>
1136 <goal>blueprint-generate</goal>
1143 <groupId>org.basepom.maven</groupId>
1144 <artifactId>duplicate-finder-maven-plugin</artifactId>
1145 <version>1.5.0</version>
1149 <groupId>com.github.ekryd.echo-maven-plugin</groupId>
1150 <artifactId>echo-maven-plugin</artifactId>
1151 <version>1.3.2</version>
1155 <groupId>org.apache.felix</groupId>
1156 <artifactId>maven-bundle-plugin</artifactId>
1157 <version>5.1.2</version>
1158 <extensions>true</extensions>
1161 <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1162 so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1163 and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present. -->
1164 <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>
1166 <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1167 to generate Import-Service and Export-Service headers. -->
1168 <_removeheaders>Import-Service,Export-Service</_removeheaders>
1174 <groupId>org.apache.karaf.tooling</groupId>
1175 <artifactId>karaf-maven-plugin</artifactId>
1176 <version>${karaf.version}</version>
1177 <extensions>true</extensions>
1181 <groupId>org.apache.servicemix.tooling</groupId>
1182 <artifactId>depends-maven-plugin</artifactId>
1183 <version>1.4.0</version>
1186 <id>generate-depends-file</id>
1188 <goal>generate-depends-file</goal>
1195 <groupId>com.webcohesion.enunciate</groupId>
1196 <artifactId>enunciate-maven-plugin</artifactId>
1197 <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1198 <version>2.13.3</version>
1202 <groupId>org.gaul</groupId>
1203 <artifactId>modernizer-maven-plugin</artifactId>
1204 <version>2.2.0</version>
1206 <javaVersion>${odlparent.modernizer.target}</javaVersion>
1207 <failOnViolations>${odlparent.modernizer.enforce}</failOnViolations>
1208 <skip>${odlparent.modernizer.skip}</skip>
1211 <!-- We are using Guava as per normal and we have grown a large body of code
1212 around the patterns there. Furthermore the suggested replacements have
1213 different behavior, hence we do NOT want to blindly migrate. Examples
1216 - ImmutableCollection et al. are not just implementation details, they
1217 form an API contract.
1218 - ImmutableMap/ImmutableSet retain iteration order, whereas their
1219 Map.of()/Set.of() counterparts have unstable iteration order (by design)
1221 <exclusionPattern>com/google/common/collect/Immutable.*</exclusionPattern>
1222 </exclusionPatterns>
1228 <phase>verify</phase>
1230 <goal>modernizer</goal>
1237 <groupId>com.alexecollins.maven.plugin</groupId>
1238 <artifactId>script-maven-plugin</artifactId>
1239 <version>1.0.0</version>
1243 <groupId>com.github.spotbugs</groupId>
1244 <artifactId>spotbugs-maven-plugin</artifactId>
1245 <version>3.1.12.2</version>
1248 <groupId>com.github.spotbugs</groupId>
1249 <artifactId>spotbugs</artifactId>
1250 <version>3.1.12</version>
1253 <groupId>org.opendaylight.odlparent</groupId>
1254 <artifactId>spotbugs</artifactId>
1255 <version>9.0.4-SNAPSHOT</version>
1258 <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 -->
1259 <groupId>org.slf4j</groupId>
1260 <artifactId>slf4j-simple</artifactId>
1261 <version>1.8.0-beta2</version>
1267 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1268 <artifactId>bug-pattern</artifactId>
1269 <version>1.5.0</version>
1273 Enables analysis which takes more memory but finds more bugs.
1274 If you run out of memory, changes the value of the effort element
1277 <effort>Max</effort>
1278 <!-- Reports all bugs (other values are medium and max) -->
1279 <threshold>Low</threshold>
1280 <!-- Build doesn't fail if problems are found -->
1281 <failOnError>${odlparent.spotbugs.enforce}</failOnError>
1282 <skip>${odlparent.spotbugs.skip}</skip>
1283 <!-- References the excluded rules -->
1284 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1285 <!-- Produces XML report -->
1286 <xmlOutput>true</xmlOutput>
1287 <!-- Configures the directory in which the XML report is created -->
1288 <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1292 Ensures that SpotBugs inspects source code when project is compiled.
1295 <id>analyze-compile</id>
1296 <phase>compile</phase>
1304 <groupId>org.codehaus.mojo</groupId>
1305 <artifactId>properties-maven-plugin</artifactId>
1306 <version>1.0.0</version>
1309 <groupId>org.eclipse.xtend</groupId>
1310 <artifactId>xtend-maven-plugin</artifactId>
1311 <!-- NOTE: This version MUST be kept in sync with the Xtend version in <dependencyManagement> -->
1312 <version>2.25.0</version>
1316 <goal>compile</goal>
1317 <goal>testCompile</goal>
1320 <outputDirectory>${project.build.directory}/generated-sources/xtend</outputDirectory>
1321 <testOutputDirectory>${project.build.directory}/generated-test-sources/xtend</testOutputDirectory>
1327 <groupId>org.eclipse.m2e</groupId>
1328 <artifactId>lifecycle-mapping</artifactId>
1329 <version>1.0.0</version>
1331 <lifecycleMappingMetadata>
1334 <pluginExecutionFilter>
1335 <groupId>org.apache.felix</groupId>
1336 <artifactId>maven-bundle-plugin</artifactId>
1337 <versionRange>[1.0,)</versionRange>
1339 <goal>manifest</goal>
1341 </pluginExecutionFilter>
1347 <pluginExecutionFilter>
1348 <groupId>org.apache.maven.plugins</groupId>
1349 <artifactId>maven-enforcer-plugin</artifactId>
1350 <versionRange>[1.0.0,)</versionRange>
1352 <goal>enforce</goal>
1354 </pluginExecutionFilter>
1360 <pluginExecutionFilter>
1361 <groupId>org.apache.maven.plugins</groupId>
1362 <artifactId>maven-dependency-plugin</artifactId>
1363 <versionRange>[2.10,)</versionRange>
1367 </pluginExecutionFilter>
1373 <pluginExecutionFilter>
1374 <groupId>org.apache.maven.plugins</groupId>
1375 <artifactId>maven-pmd-plugin</artifactId>
1376 <versionRange>[3.6,)</versionRange>
1378 <goal>cpd-check</goal>
1380 </pluginExecutionFilter>
1385 <!-- The plugin will eventually be removed, remove this too at that point -->
1387 <pluginExecutionFilter>
1388 <groupId>org.apache.maven.plugins</groupId>
1389 <artifactId>maven-antrun-plugin</artifactId>
1390 <versionRange>[1.8,)</versionRange>
1394 </pluginExecutionFilter>
1400 <pluginExecutionFilter>
1401 <groupId>org.apache.servicemix.tooling</groupId>
1402 <artifactId>depends-maven-plugin</artifactId>
1403 <versionRange>[1.2,)</versionRange>
1405 <goal>generate-depends-file</goal>
1407 </pluginExecutionFilter>
1413 <pluginExecutionFilter>
1414 <groupId>org.jacoco</groupId>
1415 <artifactId>jacoco-maven-plugin</artifactId>
1416 <versionRange>[0.7.0,)</versionRange>
1418 <goal>prepare-agent</goal>
1420 </pluginExecutionFilter>
1427 <pluginExecutionFilter>
1428 <groupId>org.ops4j.pax.exam</groupId>
1429 <artifactId>maven-paxexam-plugin</artifactId>
1430 <versionRange>[1.2.4,)</versionRange>
1432 <goal>generate-depends-file</goal>
1434 </pluginExecutionFilter>
1441 <pluginExecutionFilter>
1442 <groupId>org.basepom.maven</groupId>
1444 duplicate-finder-maven-plugin
1446 <versionRange>[1.2.1,)</versionRange>
1450 </pluginExecutionFilter>
1456 </lifecycleMappingMetadata>
1461 <groupId>org.jacoco</groupId>
1462 <artifactId>jacoco-maven-plugin</artifactId>
1464 <!-- Note: This exclusion list should match <sonar.exclusions>
1467 <exclude>**/gen/**</exclude>
1468 <exclude>**/generated-sources/**</exclude>
1469 <exclude>**/generated-test-sources/**</exclude>
1470 <exclude>**/yang-gen/**</exclude>
1471 <exclude>**/yang-gen-config/**</exclude>
1472 <exclude>**/yang-gen-sal/**</exclude>
1473 <exclude>**/yang-gen-code/**</exclude>
1474 <exclude>**/pax/**</exclude>
1480 <groupId>org.ops4j.pax.exam</groupId>
1481 <artifactId>maven-paxexam-plugin</artifactId>
1482 <version>1.2.4</version>
1485 <!-- When updating this version, consider antl4-runtime above -->
1487 <groupId>org.antlr</groupId>
1488 <artifactId>antlr4-maven-plugin</artifactId>
1489 <version>4.9.2</version>
1496 <artifactId>maven-enforcer-plugin</artifactId>
1499 <id>enforce-banned-dependencies</id>
1501 <goal>enforce</goal>
1505 <bannedDependencies>
1506 <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>
1508 <exclude>org.mockito:mockito-all</exclude>
1509 <exclude>com.google.code.findbugs:annotations</exclude>
1511 </bannedDependencies>
1519 <groupId>org.basepom.maven</groupId>
1520 <artifactId>duplicate-finder-maven-plugin</artifactId>
1523 <id>find-duplicate-classpath-entries</id>
1524 <phase>verify</phase>
1531 <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1532 <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1533 <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1534 <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1535 <printEqualFiles>false</printEqualFiles>
1537 <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1538 as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1539 we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1541 <ignoredResourcePatterns>
1542 <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1543 <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1544 <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1545 <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1546 <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1547 <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1548 <ignoredResourcePattern>.api_description</ignoredResourcePattern>
1549 </ignoredResourcePatterns>
1550 <ignoredDependencies>
1552 <groupId>org.slf4j</groupId>
1553 <artifactId>slf4j-simple</artifactId>
1554 </ignoredDependency>
1556 <groupId>org.opendaylight.odlparent</groupId>
1557 <artifactId>opendaylight-karaf-empty</artifactId>
1558 </ignoredDependency>
1559 </ignoredDependencies>
1563 <artifactId>maven-dependency-plugin</artifactId>
1566 <artifactId>maven-checkstyle-plugin</artifactId>
1569 <artifactId>maven-pmd-plugin</artifactId>
1572 <artifactId>maven-source-plugin</artifactId>
1575 <artifactId>maven-javadoc-plugin</artifactId>
1578 <groupId>org.gaul</groupId>
1579 <artifactId>modernizer-maven-plugin</artifactId>
1582 <groupId>com.github.spotbugs</groupId>
1583 <artifactId>spotbugs-maven-plugin</artifactId>
1586 <!-- Jacoco / Sonar -->
1588 <groupId>org.jacoco</groupId>
1589 <artifactId>jacoco-maven-plugin</artifactId>
1592 <id>pre-unit-test</id>
1594 <goal>prepare-agent</goal>
1607 <groupId>com.alexecollins.maven.plugin</groupId>
1608 <artifactId>script-maven-plugin</artifactId>
1611 <phase>prepare-package</phase>
1613 <goal>execute</goal>
1617 // BeanShell is 2005-ish and thus doesn't support generics, varargs, try-with-resources or lambdas, so:
1618 // (If we do this kind of inline code in pom.xml more often, we shold have a new simple module in
1619 // odl-parent, which has *.java that we compile, and then just depend on it here and call one-line
1620 // static class methods only - it will be MUCH easier to write!)
1621 void copy(File root, String glob, File target) {
1622 java.nio.file.DirectoryStream dirStream = java.nio.file.Files.newDirectoryStream(root.toPath(), glob);
1623 Iterator dirStreamIterator = dirStream.iterator();
1624 while (dirStreamIterator.hasNext()) {
1625 java.nio.file.Path path = dirStreamIterator.next();
1626 java.nio.file.Files.copy(path, new File(target, path.toFile().getName()).toPath(),
1627 new java.nio.file.CopyOption[] {
1628 java.nio.file.StandardCopyOption.REPLACE_EXISTING,
1629 java.nio.file.StandardCopyOption.COPY_ATTRIBUTES
1636 File gitRepoRootDir = project.basedir;
1637 while (!new File(gitRepoRootDir, ".git").exists() && gitRepoRootDir.getParentFile() != null) {
1638 gitRepoRootDir = gitRepoRootDir.getParentFile();
1641 File target = new File(project.build.outputDirectory);
1643 copy(gitRepoRootDir, "README*", target);
1644 copy(gitRepoRootDir, "CONTRIBUTING*", target);
1645 copy(gitRepoRootDir, "PROJECT_INFO.yaml", target);
1652 <groupId>org.apache-extras.beanshell</groupId>
1653 <artifactId>bsh</artifactId>
1654 <version>2.0b6</version>
1663 <id>disable-spotbugs</id>
1665 <!-- Current spotbugs does not support JDK15+ -->
1670 <odlparent.spotbugs.skip>true</odlparent.spotbugs.skip>
1676 <groupId>com.github.ekryd.echo-maven-plugin</groupId>
1677 <artifactId>echo-maven-plugin</artifactId>
1680 <id>UNTESTED-JDK</id>
1686 <message>Running on JDK newer than 11, which is not supported. Skipping SpotBugs execution.</message>
1699 <artifactId>maven-checkstyle-plugin</artifactId>
1700 <version>3.1.0</version>
1703 <!-- FIXME: activate this
1705 <artifactId>maven-project-info-reports-plugin</artifactId>
1708 <groupId>org.codehaus.mojo</groupId>
1709 <artifactId>jdepend-maven-plugin</artifactId>
1713 <report>generate-no-fork</report>