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.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/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.1</karaf.version>
49 <!-- Supporting Libraries -->
50 <!-- Only used internally -->
51 <bouncycastle.version>1.68</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>
94 <dependencyManagement>
98 <groupId>org.opendaylight.odlparent</groupId>
99 <artifactId>odlparent-artifacts</artifactId>
100 <version>9.0.0-SNAPSHOT</version>
101 <scope>import</scope>
105 <!-- We import the Karaf BOM to ensure we converge by default on the versions used there -->
107 <groupId>org.apache.karaf</groupId>
108 <artifactId>karaf-bom</artifactId>
109 <version>${karaf.version}</version>
110 <scope>import</scope>
114 <!-- Build tool dependencies (normally not here in <dependencies>,
115 but in a <dependency> in <pluginManagement> but for Checkstyle this
116 is required so that we can share the same version of Checkstyle
117 for both the Maven plugin below as well as for custom Checkstyle
118 check rule projects, such as yangtools' checkstyle-logging) -->
120 <groupId>com.puppycrawl.tools</groupId>
121 <artifactId>checkstyle</artifactId>
122 <!-- This should match the plugin management on maven-checkstyle-plugin below -->
123 <version>8.40</version>
126 <!-- Testing Dependencies -->
127 <!-- JUnit, Hamcrest, Mockito and PowerMock need to be kept in sync -->
129 <groupId>junit</groupId>
130 <artifactId>junit</artifactId>
131 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
132 <version>4.13.2</version>
136 <groupId>org.skyscreamer</groupId>
137 <artifactId>jsonassert</artifactId>
138 <version>1.5.0</version>
142 <groupId>org.mockito</groupId>
143 <artifactId>mockito-core</artifactId>
144 <version>3.5.11</version>
148 <groupId>org.mockito</groupId>
149 <artifactId>mockito-inline</artifactId>
150 <version>3.5.11</version>
154 <groupId>org.hamcrest</groupId>
155 <artifactId>hamcrest</artifactId>
156 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
157 <version>2.2</version>
161 <groupId>org.hamcrest</groupId>
162 <artifactId>hamcrest-core</artifactId>
163 <version>2.2</version>
167 <groupId>org.hamcrest</groupId>
168 <artifactId>hamcrest-library</artifactId>
169 <version>2.2</version>
173 <groupId>com.google.truth</groupId>
174 <artifactId>truth</artifactId>
175 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
176 <version>1.1.2</version>
180 <groupId>com.google.truth.extensions</groupId>
181 <artifactId>truth-java8-extension</artifactId>
182 <version>1.1.2</version>
186 <groupId>org.awaitility</groupId>
187 <artifactId>awaitility</artifactId>
188 <version>4.0.3</version>
192 <groupId>org.powermock</groupId>
193 <artifactId>powermock-api-mockito2</artifactId>
194 <version>2.0.9</version>
198 <groupId>org.powermock</groupId>
199 <artifactId>powermock-api-support</artifactId>
200 <version>2.0.9</version>
204 <groupId>org.powermock</groupId>
205 <artifactId>powermock-core</artifactId>
206 <version>2.0.9</version>
210 <groupId>org.powermock</groupId>
211 <artifactId>powermock-module-junit4</artifactId>
212 <version>2.0.9</version>
216 <groupId>org.powermock</groupId>
217 <artifactId>powermock-reflect</artifactId>
218 <version>2.0.9</version>
223 Annotation Processors
226 <!-- Generates immutable implementations, builders, the works -->
227 <groupId>org.immutables</groupId>
228 <artifactId>value</artifactId>
229 <classifier>annotations</classifier>
230 <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
231 <version>2.8.8</version>
232 <!-- Must be provided; scope=test here breaks APT in Eclipse :( -->
233 <scope>provided</scope>
237 <!-- Generates META-INF/services entries for ServiceLoader -->
238 <groupId>org.kohsuke.metainf-services</groupId>
239 <artifactId>metainf-services</artifactId>
240 <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
241 <version>1.8</version>
242 <optional>true</optional>
243 <scope>provided</scope>
250 <groupId>ch.qos.logback</groupId>
251 <artifactId>logback-core</artifactId>
252 <version>1.2.3</version>
255 <groupId>ch.qos.logback</groupId>
256 <artifactId>logback-classic</artifactId>
257 <version>1.2.3</version>
262 <groupId>org.apache.logging.log4j</groupId>
263 <artifactId>log4j-bom</artifactId>
264 <version>2.14.1</version>
265 <scope>import</scope>
270 <groupId>com.google.guava</groupId>
271 <artifactId>guava</artifactId>
272 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
273 <version>30.1.1-jre</version>
276 <!-- Do not leak JSR305 onto the classpath by default -->
277 <groupId>com.google.code.findbugs</groupId>
278 <artifactId>jsr305</artifactId>
283 <groupId>com.google.guava</groupId>
284 <artifactId>guava-testlib</artifactId>
285 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
286 <version>30.1.1-jre</version>
290 <!-- Do not leak JSR305 onto the classpath by default -->
291 <groupId>com.google.code.findbugs</groupId>
292 <artifactId>jsr305</artifactId>
297 <groupId>org.checkerframework</groupId>
298 <artifactId>checker-qual</artifactId>
299 <version>3.8.0</version>
302 <groupId>com.google.errorprone</groupId>
303 <artifactId>error_prone_annotations</artifactId>
304 <version>2.5.1</version>
308 <groupId>commons-beanutils</groupId>
309 <artifactId>commons-beanutils</artifactId>
310 <version>1.9.4</version>
313 <groupId>org.apache.commons</groupId>
314 <artifactId>commons-lang3</artifactId>
315 <version>3.12.0</version>
318 <groupId>org.apache.commons</groupId>
319 <artifactId>commons-text</artifactId>
320 <version>1.9</version>
323 <groupId>commons-lang</groupId>
324 <artifactId>commons-lang</artifactId>
325 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
326 <version>2.6</version>
329 <groupId>commons-codec</groupId>
330 <artifactId>commons-codec</artifactId>
331 <version>1.15</version>
333 <!-- Jersey for JAXRS -->
335 <groupId>javax.ws.rs</groupId>
336 <artifactId>javax.ws.rs-api</artifactId>
337 <version>2.1.1</version>
340 <groupId>org.glassfish.jersey</groupId>
341 <artifactId>jersey-bom</artifactId>
342 <version>2.27</version>
344 <scope>import</scope>
348 <groupId>jakarta.activation</groupId>
349 <artifactId>jakarta.activation-api</artifactId>
350 <version>1.2.2</version>
354 <groupId>javax.annotation</groupId>
355 <artifactId>javax.annotation-api</artifactId>
356 <version>1.3.1</version>
357 <optional>true</optional>
360 <groupId>xml-apis</groupId>
361 <artifactId>xml-apis</artifactId>
362 <version>1.4.01</version>
365 <!-- Plugin integration -->
367 <groupId>net.java.dev.stax-utils</groupId>
368 <artifactId>stax-utils</artifactId>
369 <version>20070216</version>
372 <groupId>org.sonatype.plexus</groupId>
373 <artifactId>plexus-build-api</artifactId>
374 <version>0.0.7</version>
377 <groupId>org.codehaus.plexus</groupId>
378 <artifactId>plexus-slf4j-logging</artifactId>
379 <version>1.1</version>
382 <!-- These three need to be consistent:
383 jackson-2.11.4 needs woodstox-6.2.3+
384 woodstox-5.3+ needs stax2-api-4.2.x
387 <groupId>org.codehaus.woodstox</groupId>
388 <artifactId>stax2-api</artifactId>
389 <version>4.2.1</version>
392 <groupId>com.fasterxml.woodstox</groupId>
393 <artifactId>woodstox-core</artifactId>
394 <version>6.2.5</version>
397 <groupId>com.fasterxml.jackson</groupId>
398 <artifactId>jackson-bom</artifactId>
399 <version>2.11.4</version>
400 <scope>import</scope>
405 <groupId>com.github.spotbugs</groupId>
406 <artifactId>spotbugs-annotations</artifactId>
407 <version>3.1.12</version>
408 <scope>provided</scope>
409 <!-- Contains retention=RUNTIME annotations, which are not really needed -->
410 <optional>true</optional>
413 <groupId>com.google.code.findbugs</groupId>
414 <artifactId>jsr305</artifactId>
420 <groupId>org.eclipse.jdt</groupId>
421 <artifactId>org.eclipse.jdt.annotation</artifactId>
422 <version>2.2.400</version>
423 <scope>provided</scope>
425 <!-- We're staying on 2.8.5 for now, 2.8.6 has issues:
426 https://github.com/google/gson/issues/1601
427 https://github.com/google/gson/issues/1602
428 https://github.com/google/gson/issues/1608
429 https://github.com/google/gson/issues/1630
432 <groupId>com.google.code.gson</groupId>
433 <artifactId>gson</artifactId>
434 <version>2.8.5</version>
437 <groupId>commons-fileupload</groupId>
438 <artifactId>commons-fileupload</artifactId>
439 <version>1.4</version>
442 <groupId>commons-io</groupId>
443 <artifactId>commons-io</artifactId>
444 <version>2.8.0</version>
447 <groupId>commons-net</groupId>
448 <artifactId>commons-net</artifactId>
449 <version>3.8.0</version>
454 <groupId>io.netty</groupId>
455 <artifactId>netty-bom</artifactId>
456 <!-- If these are updated, the version in features.xml needs to be changed too -->
457 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
458 <version>4.1.63.Final</version>
460 <scope>import</scope>
464 <groupId>javax.ws.rs</groupId>
465 <artifactId>jsr311-api</artifactId>
466 <version>1.1.1</version>
469 <groupId>org.bouncycastle</groupId>
470 <artifactId>bcpkix-jdk15on</artifactId>
471 <version>${bouncycastle.version}</version>
474 <groupId>org.bouncycastle</groupId>
475 <artifactId>bcprov-jdk15on</artifactId>
476 <version>${bouncycastle.version}</version>
479 <groupId>org.bouncycastle</groupId>
480 <artifactId>bcprov-ext-jdk15on</artifactId>
481 <version>${bouncycastle.version}</version>
485 <groupId>com.webcohesion.enunciate</groupId>
486 <artifactId>enunciate-core-annotations</artifactId>
487 <!-- This must be aligned with the version of enunciate-maven-plugin specified below -->
488 <version>2.13.2</version>
492 <groupId>org.javassist</groupId>
493 <artifactId>javassist</artifactId>
494 <version>3.27.0-GA</version>
497 <groupId>org.jboss.spec.javax.transaction</groupId>
498 <artifactId>jboss-transaction-api_1.1_spec</artifactId>
499 <version>1.0.1.Final</version>
502 <groupId>org.jolokia</groupId>
503 <artifactId>jolokia-osgi</artifactId>
504 <version>1.6.2</version>
508 These are usually used through osgi.cmpn, except when you also want
509 to be a JPMS module. In that case you need to depend on these and
510 have a 'require static org.osgi.service.component.annotations;'.
511 This incurs a warning about publishing the module to a public place.
512 We do not heed that warning, as nothing in this package is seen by
513 the runtime - thus the warning can be safely ignored :)
515 Keep this in sync with rest of OSGi:
516 - OSGi R7 (now) = 1.4.0
519 <groupId>org.osgi</groupId>
520 <artifactId>org.osgi.service.component.annotations</artifactId>
521 <version>1.4.0</version>
522 <scope>provided</scope>
525 <groupId>org.osgi</groupId>
526 <artifactId>org.osgi.service.metatype.annotations</artifactId>
527 <version>1.4.0</version>
531 <groupId>org.osgi</groupId>
532 <artifactId>osgi.annotation</artifactId>
533 <version>7.0.0</version>
534 <scope>provided</scope>
537 <groupId>org.osgi</groupId>
538 <artifactId>osgi.cmpn</artifactId>
539 <version>7.0.0</version>
540 <scope>provided</scope>
543 <groupId>org.osgi</groupId>
544 <artifactId>osgi.core</artifactId>
545 <version>7.0.0</version>
546 <scope>provided</scope>
550 <groupId>org.osgi</groupId>
551 <!-- for https://bugs.opendaylight.org/show_bug.cgi?id=4290 -->
552 <artifactId>org.osgi.service.event</artifactId>
553 <version>1.4.0</version>
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.2</version>
568 <!-- Add Pax Exam -->
570 <groupId>org.ops4j.pax.exam</groupId>
571 <artifactId>pax-exam</artifactId>
572 <version>4.13.4</version>
576 <groupId>org.ops4j.pax.exam</groupId>
577 <artifactId>pax-exam-container-forked</artifactId>
578 <version>4.13.4</version>
582 <groupId>org.ops4j.pax.exam</groupId>
583 <artifactId>pax-exam-container-karaf</artifactId>
584 <version>4.13.4</version>
588 <groupId>org.ops4j.pax.exam</groupId>
589 <artifactId>pax-exam-container-native</artifactId>
590 <version>4.13.4</version>
594 <groupId>org.ops4j.pax.exam</groupId>
595 <artifactId>pax-exam-extender-service</artifactId>
596 <version>4.13.4</version>
600 <groupId>org.ops4j.pax.exam</groupId>
601 <artifactId>pax-exam-inject</artifactId>
602 <version>4.13.4</version>
606 <groupId>org.ops4j.pax.exam</groupId>
607 <artifactId>pax-exam-invoker-junit</artifactId>
608 <version>4.13.4</version>
612 <groupId>org.ops4j.pax.exam</groupId>
613 <artifactId>pax-exam-features</artifactId>
614 <version>4.13.4</version>
619 <groupId>org.ops4j.pax.exam</groupId>
620 <artifactId>pax-exam-junit4</artifactId>
621 <version>4.13.4</version>
625 <groupId>org.ops4j.pax.exam</groupId>
626 <artifactId>pax-exam-link-mvn</artifactId>
627 <version>4.13.4</version>
631 <groupId>org.ops4j.pax.exam</groupId>
632 <artifactId>pax-exam-link-assembly</artifactId>
633 <version>4.13.4</version>
638 <groupId>org.ops4j.pax.url</groupId>
639 <artifactId>pax-url-link</artifactId>
640 <version>2.5.4</version>
644 <groupId>org.ops4j.pax.url</groupId>
645 <artifactId>pax-url-aether</artifactId>
646 <version>2.5.4</version>
650 <groupId>org.ops4j.pax.url</groupId>
651 <artifactId>pax-url-wrap</artifactId>
652 <version>2.5.4</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.8.2</version>
669 <groupId>org.xmlunit</groupId>
670 <artifactId>xmlunit-assertj</artifactId>
671 <version>2.8.2</version>
675 <groupId>org.xmlunit</groupId>
676 <artifactId>xmlunit-assertj3</artifactId>
677 <version>2.8.2</version>
681 <groupId>org.xmlunit</groupId>
682 <artifactId>xmlunit-matchers</artifactId>
683 <version>2.8.2</version>
686 <!-- FIXME: remove this once we have migrated over -->
688 <groupId>org.xmlunit</groupId>
689 <artifactId>xmlunit-legacy</artifactId>
690 <version>2.8.2</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.1.0</version>
700 <scope>provided</scope>
704 <groupId>org.eclipse.jetty</groupId>
705 <artifactId>jetty-bom</artifactId>
706 <version>9.4.38.v20210224</version>
707 <scope>import</scope>
712 <groupId>com.h2database</groupId>
713 <artifactId>h2</artifactId>
714 <version>1.4.200</version>
717 <!-- Xtend http://xtend-lang.org
718 NOTE: When you increase the version here,
719 then remember to also increase it for the
720 xtend-maven-plugin below! (We don't want to
721 use a Maven property, in order not to "leak" that.)
724 <groupId>org.eclipse.xtend</groupId>
725 <artifactId>org.eclipse.xtend.lib</artifactId>
726 <version>2.25.0</version>
729 <groupId>org.eclipse.xtend</groupId>
730 <artifactId>org.eclipse.xtend.lib.macro</artifactId>
731 <version>2.25.0</version>
734 <groupId>org.eclipse.xtext</groupId>
735 <artifactId>org.eclipse.xtext.xbase.lib</artifactId>
736 <version>2.25.0</version>
740 <!-- A better alternative for javax.inject, from https://guicedee.com/ -->
742 <groupId>com.guicedee.services</groupId>
743 <artifactId>javax.inject</artifactId>
744 <version>1.0.20.0</version>
745 <scope>provided</scope>
746 <optional>true</optional>
749 <!-- jung, a graph library -->
751 <groupId>net.sf.jung</groupId>
752 <artifactId>jung-api</artifactId>
753 <version>2.1.1</version>
756 <groupId>net.sf.jung</groupId>
757 <artifactId>jung-algorithms</artifactId>
758 <version>2.1.1</version>
761 <groupId>net.sf.jung</groupId>
762 <artifactId>jung-graph-impl</artifactId>
763 <version>2.1.1</version>
766 <!-- ThreeTen-Extra, date/time complements -->
768 <groupId>org.threeten</groupId>
769 <artifactId>threeten-extra</artifactId>
770 <version>1.5.0</version>
773 <!-- When updating this version, consider antl4-maven-plugin below -->
775 <groupId>org.antlr</groupId>
776 <artifactId>antlr4-runtime</artifactId>
777 <version>4.9.2</version>
780 <groupId>org.apache.aries.blueprint</groupId>
781 <artifactId>blueprint-maven-plugin-annotation</artifactId>
782 <version>1.3.0</version>
783 <optional>true</optional>
786 <!-- TrieMap library -->
788 <groupId>tech.pantheon.triemap</groupId>
789 <artifactId>bom</artifactId>
790 <version>1.2.0</version>
791 <scope>import</scope>
795 <!-- Dropwizard metrics -->
797 <groupId>io.dropwizard.metrics</groupId>
798 <artifactId>metrics-bom</artifactId>
799 <version>4.1.12.1</version>
800 <scope>import</scope>
805 </dependencyManagement>
809 We expect slf4j-api to be provided by the platform.
810 Karaf provides it, other containers need to provide it themselves.
813 <groupId>org.slf4j</groupId>
814 <artifactId>slf4j-api</artifactId>
815 <scope>provided</scope>
819 Enable useful code quality annotations everywhere. Since these annotations
820 are not required at runtime.
823 <groupId>org.eclipse.jdt</groupId>
824 <artifactId>org.eclipse.jdt.annotation</artifactId>
825 <scope>provided</scope>
828 <groupId>com.github.spotbugs</groupId>
829 <artifactId>spotbugs-annotations</artifactId>
830 <scope>provided</scope>
831 <optional>true</optional>
834 <groupId>org.gaul</groupId>
835 <artifactId>modernizer-maven-annotations</artifactId>
836 <scope>provided</scope>
840 Testing output should be routed through slf4j-simple.
843 <groupId>org.slf4j</groupId>
844 <artifactId>slf4j-simple</artifactId>
849 Unit tests can use JUnit + Mockito + Hamcrest by default.
852 <groupId>org.hamcrest</groupId>
853 <artifactId>hamcrest</artifactId>
857 <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
858 <groupId>org.hamcrest</groupId>
859 <artifactId>hamcrest-library</artifactId>
863 <groupId>junit</groupId>
864 <artifactId>junit</artifactId>
868 <groupId>org.mockito</groupId>
869 <artifactId>mockito-core</artifactId>
877 <!-- Official maven plugins, alpha-sorted by artifactId.
878 We do not need to specify the groupId. -->
880 <artifactId>maven-checkstyle-plugin</artifactId>
881 <version>3.1.2</version>
884 <groupId>com.puppycrawl.tools</groupId>
885 <artifactId>checkstyle</artifactId>
886 <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
887 <version>8.40</version>
890 <groupId>org.opendaylight.odlparent</groupId>
891 <artifactId>checkstyle</artifactId>
892 <version>9.0.0-SNAPSHOT</version>
895 <groupId>com.github.sevntu-checkstyle</groupId>
896 <artifactId>sevntu-checks</artifactId>
897 <version>1.38.0</version>
901 <configLocation>odl_checks.xml</configLocation>
902 <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
903 <!-- <sourceDirectories> are needed so that checkstyle ignores the
904 generated sources directory -->
906 <directory>${project.build.sourceDirectory}</directory>
908 <includeResources>true</includeResources>
909 <includeTestSourceDirectory>true</includeTestSourceDirectory>
910 <includeTestResources>true</includeTestResources>
911 <includes>**\/*.java, **\/*.xtend</includes>
913 org/opendaylight/yang/gen/**,
914 **/protobuff/messages/**,
915 **/thrift/gen/*.java,
918 <failsOnError>false</failsOnError>
919 <consoleOutput>true</consoleOutput>
923 <id>check-license</id>
927 <phase>process-sources</phase>
929 <configLocation>check-license.xml</configLocation>
930 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
931 <includeResources>false</includeResources>
932 <includeTestSourceDirectory>true</includeTestSourceDirectory>
933 <includeTestResources>false</includeTestResources>
935 <directory>${project.build.sourceDirectory}</directory>
938 org/opendaylight/yang/gen/**,
939 **/protobuff/messages/**,
942 <failsOnError>false</failsOnError>
943 <consoleOutput>true</consoleOutput>
950 <phase>process-sources</phase>
952 <failOnViolation>${odlparent.checkstyle.enforce}</failOnViolation>
953 <skip>${odlparent.checkstyle.skip}</skip>
954 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
960 <groupId>org.apache.maven.plugins</groupId>
961 <artifactId>maven-pmd-plugin</artifactId>
962 <version>3.14.0</version>
966 <phase>process-sources</phase>
968 <goal>cpd-check</goal>
971 <failOnViolation>${pmd.cpd.fail}</failOnViolation>
972 <!-- 100 "tokens" here correspond to approx. 5-10 lines of code -->
973 <minimumTokens>101</minimumTokens>
974 <printFailingErrors>true</printFailingErrors>
976 <!-- FIXME: this should be a wildcard, but PMD is brain-damaged and does
977 not understand path prefixes nor wildcards. Details are available
978 at http://stackoverflow.com/questions/15647771/pmd-exclude-not-working
979 Hence people introducing new generated sources have to include
982 <excludeRoot>${project.build.directory}/generated-sources</excludeRoot>
983 <excludeRoot>${project.build.directory}/generated-test-sources</excludeRoot>
985 <linkXRef>false</linkXRef>
991 <artifactId>maven-compiler-plugin</artifactId>
992 <version>3.8.1</version>
994 <showWarnings>true</showWarnings>
996 <arg>-parameters</arg>
997 <arg>-Xlint:all</arg>
998 <!-- Disable 'No processor claimed any of these annotations' -->
999 <arg>-Xlint:-processing</arg>
1001 <annotationProcessorPaths>
1003 <groupId>org.immutables</groupId>
1004 <artifactId>value</artifactId>
1005 <!-- Keep this version in sync with dependency declaration above -->
1006 <version>2.8.8</version>
1009 <groupId>org.kohsuke.metainf-services</groupId>
1010 <artifactId>metainf-services</artifactId>
1011 <!-- Keep this version in sync with dependency declaration above -->
1012 <version>1.8</version>
1014 </annotationProcessorPaths>
1018 <artifactId>maven-failsafe-plugin</artifactId>
1019 <version>2.22.2</version>
1022 <artifactId>maven-invoker-plugin</artifactId>
1023 <version>3.2.2</version>
1026 <artifactId>maven-dependency-plugin</artifactId>
1029 <id>unpack-license</id>
1030 <phase>generate-resources</phase>
1037 <groupId>org.opendaylight.odlparent</groupId>
1038 <artifactId>odl-license</artifactId>
1039 <version>9.0.0-SNAPSHOT</version>
1040 <type>license</type>
1041 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1042 <destFileName>LICENSE</destFileName>
1043 <overWrite>false</overWrite>
1046 <silent>true</silent>
1053 <artifactId>maven-plugin-plugin</artifactId>
1054 <version>3.6.0</version>
1058 <artifactId>maven-remote-resources-plugin</artifactId>
1059 <version>1.7.0</version>
1062 <artifactId>maven-shade-plugin</artifactId>
1063 <version>3.2.4</version>
1066 <artifactId>maven-source-plugin</artifactId>
1067 <version>3.2.1</version>
1070 <id>attach-sources</id>
1071 <phase>verify</phase>
1073 <goal>jar-no-fork</goal>
1079 <artifactId>maven-surefire-plugin</artifactId>
1080 <version>2.22.2</version>
1082 <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1083 <trimStackTrace>false</trimStackTrace>
1087 <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1089 <!-- Support Blueprint XML construction using annotations -->
1090 <groupId>org.apache.aries.blueprint</groupId>
1091 <artifactId>blueprint-maven-plugin</artifactId>
1092 <version>1.10.0</version>
1093 <!-- TODO remove dependencies when we bump from 1.10.0 to 1.11.0 (or 1.10.1);
1094 see https://jira.opendaylight.org/browse/ODLPARENT-167 & https://jira.apache.org/jira/browse/ARIES-1826 -->
1097 <groupId>org.apache.xbean</groupId>
1098 <artifactId>xbean-finder-shaded</artifactId>
1099 <version>4.18</version>
1104 <scanPath>${project.groupId}</scanPath>
1110 <goal>blueprint-generate</goal>
1117 <groupId>com.github.ekryd.echo-maven-plugin</groupId>
1118 <artifactId>echo-maven-plugin</artifactId>
1119 <version>1.3.2</version>
1123 <groupId>org.apache.felix</groupId>
1124 <artifactId>maven-bundle-plugin</artifactId>
1125 <version>4.2.1</version>
1126 <extensions>true</extensions>
1129 <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1130 so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1131 and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present. -->
1132 <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>
1134 <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1135 to generate Import-Service and Export-Service headers. -->
1136 <_removeheaders>Import-Service,Export-Service</_removeheaders>
1141 <groupId>biz.aQute.bnd</groupId>
1142 <artifactId>biz.aQute.bndlib</artifactId>
1143 <version>5.1.0</version>
1149 <groupId>org.apache.karaf.tooling</groupId>
1150 <artifactId>karaf-maven-plugin</artifactId>
1151 <version>${karaf.version}</version>
1152 <extensions>true</extensions>
1156 <groupId>org.apache.servicemix.tooling</groupId>
1157 <artifactId>depends-maven-plugin</artifactId>
1158 <version>1.4.0</version>
1161 <id>generate-depends-file</id>
1163 <goal>generate-depends-file</goal>
1170 <groupId>com.webcohesion.enunciate</groupId>
1171 <artifactId>enunciate-maven-plugin</artifactId>
1172 <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1173 <version>2.13.2</version>
1177 <groupId>org.gaul</groupId>
1178 <artifactId>modernizer-maven-plugin</artifactId>
1179 <version>2.1.0</version>
1181 <javaVersion>${odlparent.modernizer.target}</javaVersion>
1182 <failOnViolations>${odlparent.modernizer.enforce}</failOnViolations>
1183 <skip>${odlparent.modernizer.skip}</skip>
1186 <!-- We are using Guava as per normal and we have grown a large body of code
1187 around the patterns there. Furthermore the suggested replacements have
1188 different behavior, hence we do NOT want to blindly migrate. Examples
1191 - ImmutableCollection et al. are not just implementation details, they
1192 form an API contract.
1193 - ImmutableMap/ImmutableSet retain iteration order, whereas their
1194 Map.of()/Set.of() counterparts have unstable iteration order (by design)
1196 <exclusionPattern>com/google/common/collect/Immutable.*</exclusionPattern>
1197 </exclusionPatterns>
1203 <phase>verify</phase>
1205 <goal>modernizer</goal>
1212 <groupId>com.github.spotbugs</groupId>
1213 <artifactId>spotbugs-maven-plugin</artifactId>
1214 <version>3.1.12.2</version>
1217 <groupId>com.github.spotbugs</groupId>
1218 <artifactId>spotbugs</artifactId>
1219 <version>3.1.12</version>
1222 <groupId>org.opendaylight.odlparent</groupId>
1223 <artifactId>spotbugs</artifactId>
1224 <version>9.0.0-SNAPSHOT</version>
1227 <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 -->
1228 <groupId>org.slf4j</groupId>
1229 <artifactId>slf4j-simple</artifactId>
1230 <version>1.8.0-beta2</version>
1236 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1237 <artifactId>bug-pattern</artifactId>
1238 <version>1.5.0</version>
1242 Enables analysis which takes more memory but finds more bugs.
1243 If you run out of memory, changes the value of the effort element
1246 <effort>Max</effort>
1247 <!-- Reports all bugs (other values are medium and max) -->
1248 <threshold>Low</threshold>
1249 <!-- Build doesn't fail if problems are found -->
1250 <failOnError>${odlparent.spotbugs.enforce}</failOnError>
1251 <skip>${odlparent.spotbugs.skip}</skip>
1252 <!-- References the excluded rules -->
1253 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1254 <!-- Produces XML report -->
1255 <xmlOutput>true</xmlOutput>
1256 <!-- Configures the directory in which the XML report is created -->
1257 <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1261 Ensures that SpotBugs inspects source code when project is compiled.
1264 <id>analyze-compile</id>
1265 <phase>compile</phase>
1273 <groupId>org.codehaus.mojo</groupId>
1274 <artifactId>properties-maven-plugin</artifactId>
1275 <version>1.0.0</version>
1278 <groupId>org.eclipse.xtend</groupId>
1279 <artifactId>xtend-maven-plugin</artifactId>
1280 <!-- NOTE: This version MUST be kept in sync with the Xtend version in <dependencyManagement> -->
1281 <version>2.25.0</version>
1285 <goal>compile</goal>
1286 <goal>testCompile</goal>
1289 <outputDirectory>${project.build.directory}/generated-sources/xtend</outputDirectory>
1290 <testOutputDirectory>${project.build.directory}/generated-test-sources/xtend</testOutputDirectory>
1296 <groupId>org.eclipse.m2e</groupId>
1297 <artifactId>lifecycle-mapping</artifactId>
1298 <version>1.0.0</version>
1300 <lifecycleMappingMetadata>
1303 <pluginExecutionFilter>
1304 <groupId>org.apache.felix</groupId>
1305 <artifactId>maven-bundle-plugin</artifactId>
1306 <versionRange>[1.0,)</versionRange>
1308 <goal>manifest</goal>
1310 </pluginExecutionFilter>
1316 <pluginExecutionFilter>
1317 <groupId>org.apache.maven.plugins</groupId>
1318 <artifactId>maven-enforcer-plugin</artifactId>
1319 <versionRange>[1.0.0,)</versionRange>
1321 <goal>enforce</goal>
1323 </pluginExecutionFilter>
1329 <pluginExecutionFilter>
1330 <groupId>org.apache.maven.plugins</groupId>
1331 <artifactId>maven-dependency-plugin</artifactId>
1332 <versionRange>[2.10,)</versionRange>
1336 </pluginExecutionFilter>
1342 <pluginExecutionFilter>
1343 <groupId>org.apache.maven.plugins</groupId>
1344 <artifactId>maven-pmd-plugin</artifactId>
1345 <versionRange>[3.6,)</versionRange>
1347 <goal>cpd-check</goal>
1349 </pluginExecutionFilter>
1354 <!-- The plugin will eventually be removed, remove this too at that point -->
1356 <pluginExecutionFilter>
1357 <groupId>org.apache.maven.plugins</groupId>
1358 <artifactId>maven-antrun-plugin</artifactId>
1359 <versionRange>[1.8,)</versionRange>
1363 </pluginExecutionFilter>
1369 <pluginExecutionFilter>
1370 <groupId>org.apache.servicemix.tooling</groupId>
1371 <artifactId>depends-maven-plugin</artifactId>
1372 <versionRange>[1.2,)</versionRange>
1374 <goal>generate-depends-file</goal>
1376 </pluginExecutionFilter>
1382 <pluginExecutionFilter>
1383 <groupId>org.jacoco</groupId>
1384 <artifactId>jacoco-maven-plugin</artifactId>
1385 <versionRange>[0.7.0,)</versionRange>
1387 <goal>prepare-agent</goal>
1389 </pluginExecutionFilter>
1396 <pluginExecutionFilter>
1397 <groupId>org.ops4j.pax.exam</groupId>
1398 <artifactId>maven-paxexam-plugin</artifactId>
1399 <versionRange>[1.2.4,)</versionRange>
1401 <goal>generate-depends-file</goal>
1403 </pluginExecutionFilter>
1410 <pluginExecutionFilter>
1411 <groupId>org.basepom.maven</groupId>
1413 duplicate-finder-maven-plugin
1415 <versionRange>[1.2.1,)</versionRange>
1419 </pluginExecutionFilter>
1425 </lifecycleMappingMetadata>
1430 <groupId>org.jacoco</groupId>
1431 <artifactId>jacoco-maven-plugin</artifactId>
1433 <!-- Note: This exclusion list should match <sonar.exclusions>
1436 <exclude>**/gen/**</exclude>
1437 <exclude>**/generated-sources/**</exclude>
1438 <exclude>**/generated-test-sources/**</exclude>
1439 <exclude>**/yang-gen/**</exclude>
1440 <exclude>**/yang-gen-config/**</exclude>
1441 <exclude>**/yang-gen-sal/**</exclude>
1442 <exclude>**/yang-gen-code/**</exclude>
1443 <exclude>**/pax/**</exclude>
1449 <groupId>org.ops4j.pax.exam</groupId>
1450 <artifactId>maven-paxexam-plugin</artifactId>
1451 <version>1.2.4</version>
1454 <!-- When updating this version, consider antl4-runtime above -->
1456 <groupId>org.antlr</groupId>
1457 <artifactId>antlr4-maven-plugin</artifactId>
1458 <version>4.9.2</version>
1465 <artifactId>maven-enforcer-plugin</artifactId>
1468 <id>enforce-banned-dependencies</id>
1470 <goal>enforce</goal>
1474 <bannedDependencies>
1475 <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>
1477 <exclude>org.mockito:mockito-all</exclude>
1478 <exclude>com.google.code.findbugs:annotations</exclude>
1480 </bannedDependencies>
1488 <groupId>org.basepom.maven</groupId>
1489 <artifactId>duplicate-finder-maven-plugin</artifactId>
1490 <version>1.5.0</version>
1493 <id>find-duplicate-classpath-entries</id>
1494 <phase>verify</phase>
1501 <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1502 <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1503 <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1504 <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1505 <printEqualFiles>false</printEqualFiles>
1507 <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1508 as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1509 we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1511 <ignoredResourcePatterns>
1512 <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1513 <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1514 <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1515 <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1516 <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1517 <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1518 </ignoredResourcePatterns>
1519 <ignoredDependencies>
1521 <groupId>org.slf4j</groupId>
1522 <artifactId>slf4j-simple</artifactId>
1523 </ignoredDependency>
1525 <groupId>org.opendaylight.odlparent</groupId>
1526 <artifactId>opendaylight-karaf-empty</artifactId>
1527 </ignoredDependency>
1528 </ignoredDependencies>
1532 <artifactId>maven-dependency-plugin</artifactId>
1535 <artifactId>maven-checkstyle-plugin</artifactId>
1538 <artifactId>maven-pmd-plugin</artifactId>
1541 <artifactId>maven-source-plugin</artifactId>
1544 <artifactId>maven-javadoc-plugin</artifactId>
1547 <groupId>org.gaul</groupId>
1548 <artifactId>modernizer-maven-plugin</artifactId>
1551 <groupId>com.github.spotbugs</groupId>
1552 <artifactId>spotbugs-maven-plugin</artifactId>
1555 <!-- Jacoco / Sonar -->
1557 <groupId>org.jacoco</groupId>
1558 <artifactId>jacoco-maven-plugin</artifactId>
1561 <id>pre-unit-test</id>
1563 <goal>prepare-agent</goal>
1576 <groupId>com.alexecollins.maven.plugin</groupId>
1577 <artifactId>script-maven-plugin</artifactId>
1578 <version>1.0.0</version>
1581 <phase>prepare-package</phase>
1583 <goal>execute</goal>
1587 // BeanShell is 2005-ish and thus doesn't support generics, varargs, try-with-resources or lambdas, so:
1588 // (If we do this kind of inline code in pom.xml more often, we shold have a new simple module in
1589 // odl-parent, which has *.java that we compile, and then just depend on it here and call one-line
1590 // static class methods only - it will be MUCH easier to write!)
1591 void copy(File root, String glob, File target) {
1592 java.nio.file.DirectoryStream dirStream = java.nio.file.Files.newDirectoryStream(root.toPath(), glob);
1593 Iterator dirStreamIterator = dirStream.iterator();
1594 while (dirStreamIterator.hasNext()) {
1595 java.nio.file.Path path = dirStreamIterator.next();
1596 java.nio.file.Files.copy(path, new File(target, path.toFile().getName()).toPath(),
1597 new java.nio.file.CopyOption[] {
1598 java.nio.file.StandardCopyOption.REPLACE_EXISTING,
1599 java.nio.file.StandardCopyOption.COPY_ATTRIBUTES
1606 File gitRepoRootDir = project.basedir;
1607 while (!new File(gitRepoRootDir, ".git").exists() && gitRepoRootDir.getParentFile() != null) {
1608 gitRepoRootDir = gitRepoRootDir.getParentFile();
1611 File target = new File(project.build.outputDirectory);
1613 copy(gitRepoRootDir, "README*", target);
1614 copy(gitRepoRootDir, "CONTRIBUTING*", target);
1615 copy(gitRepoRootDir, "PROJECT_INFO.yaml", target);
1622 <groupId>org.apache-extras.beanshell</groupId>
1623 <artifactId>bsh</artifactId>
1624 <version>2.0b6</version>
1633 <id>disable-spotbugs</id>
1635 <!-- Current spotbugs does not support JDK15+ -->
1640 <odlparent.spotbugs.skip>true</odlparent.spotbugs.skip>
1646 <groupId>com.github.ekryd.echo-maven-plugin</groupId>
1647 <artifactId>echo-maven-plugin</artifactId>
1650 <id>UNTESTED-JDK</id>
1656 <message>Running on JDK newer than 11, which is not supported. Skipping SpotBugs execution.</message>
1669 <artifactId>maven-checkstyle-plugin</artifactId>
1670 <version>3.1.0</version>
1673 <!-- FIXME: activate this
1675 <artifactId>maven-project-info-reports-plugin</artifactId>
1678 <groupId>org.codehaus.mojo</groupId>
1679 <artifactId>jdepend-maven-plugin</artifactId>
1683 <report>generate-no-fork</report>