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.3-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.3-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.44</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.10.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 <!-- If these are updated, the version in features.xml needs to be changed too -->
474 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
475 <version>4.1.65.Final</version>
477 <scope>import</scope>
481 <groupId>javax.ws.rs</groupId>
482 <artifactId>jsr311-api</artifactId>
483 <version>1.1.1</version>
486 <groupId>org.bouncycastle</groupId>
487 <artifactId>bcpkix-jdk15on</artifactId>
488 <version>${bouncycastle.version}</version>
491 <groupId>org.bouncycastle</groupId>
492 <artifactId>bcprov-jdk15on</artifactId>
493 <version>${bouncycastle.version}</version>
496 <groupId>org.bouncycastle</groupId>
497 <artifactId>bcprov-ext-jdk15on</artifactId>
498 <version>${bouncycastle.version}</version>
502 <groupId>com.webcohesion.enunciate</groupId>
503 <artifactId>enunciate-core-annotations</artifactId>
504 <!-- This must be aligned with the version of enunciate-maven-plugin specified below -->
505 <version>2.13.3</version>
509 <groupId>org.javassist</groupId>
510 <artifactId>javassist</artifactId>
511 <version>3.27.0-GA</version>
514 <groupId>org.jboss.spec.javax.transaction</groupId>
515 <artifactId>jboss-transaction-api_1.1_spec</artifactId>
516 <version>1.0.1.Final</version>
519 <groupId>org.jolokia</groupId>
520 <artifactId>jolokia-osgi</artifactId>
521 <version>1.6.2</version>
525 These are usually used through osgi.cmpn, except when you also want
526 to be a JPMS module. In that case you need to depend on these and
527 have a 'require static org.osgi.service.component.annotations;'.
528 This incurs a warning about publishing the module to a public place.
529 We do not heed that warning, as nothing in this package is seen by
530 the runtime - thus the warning can be safely ignored :)
532 Keep this in sync with rest of OSGi:
533 - OSGi R7 (now) = 1.4.0
536 <groupId>org.osgi</groupId>
537 <artifactId>org.osgi.service.component.annotations</artifactId>
538 <version>1.4.0</version>
539 <scope>provided</scope>
542 <groupId>org.osgi</groupId>
543 <artifactId>org.osgi.service.metatype.annotations</artifactId>
544 <version>1.4.0</version>
548 <groupId>org.osgi</groupId>
549 <artifactId>osgi.annotation</artifactId>
550 <version>7.0.0</version>
551 <scope>provided</scope>
554 <groupId>org.osgi</groupId>
555 <artifactId>osgi.cmpn</artifactId>
556 <version>7.0.0</version>
557 <scope>provided</scope>
560 <groupId>org.osgi</groupId>
561 <artifactId>osgi.core</artifactId>
562 <version>7.0.0</version>
563 <scope>provided</scope>
567 <groupId>org.osgi</groupId>
568 <!-- for https://bugs.opendaylight.org/show_bug.cgi?id=4290 -->
569 <artifactId>org.osgi.service.event</artifactId>
570 <version>1.4.0</version>
573 <groupId>org.apache.aries.quiesce</groupId>
574 <artifactId>org.apache.aries.quiesce.api</artifactId>
575 <version>1.0.0</version>
578 <!-- LMAX Disruptor -->
580 <groupId>com.lmax</groupId>
581 <artifactId>disruptor</artifactId>
582 <version>3.4.4</version>
585 <!-- Add Pax Exam -->
587 <groupId>org.ops4j.pax.exam</groupId>
588 <artifactId>pax-exam</artifactId>
589 <version>4.13.4</version>
593 <groupId>org.ops4j.pax.exam</groupId>
594 <artifactId>pax-exam-container-forked</artifactId>
595 <version>4.13.4</version>
599 <groupId>org.ops4j.pax.exam</groupId>
600 <artifactId>pax-exam-container-karaf</artifactId>
601 <version>4.13.4</version>
605 <groupId>org.ops4j.pax.exam</groupId>
606 <artifactId>pax-exam-container-native</artifactId>
607 <version>4.13.4</version>
611 <groupId>org.ops4j.pax.exam</groupId>
612 <artifactId>pax-exam-extender-service</artifactId>
613 <version>4.13.4</version>
617 <groupId>org.ops4j.pax.exam</groupId>
618 <artifactId>pax-exam-inject</artifactId>
619 <version>4.13.4</version>
623 <groupId>org.ops4j.pax.exam</groupId>
624 <artifactId>pax-exam-invoker-junit</artifactId>
625 <version>4.13.4</version>
629 <groupId>org.ops4j.pax.exam</groupId>
630 <artifactId>pax-exam-features</artifactId>
631 <version>4.13.4</version>
636 <groupId>org.ops4j.pax.exam</groupId>
637 <artifactId>pax-exam-junit4</artifactId>
638 <version>4.13.4</version>
642 <groupId>org.ops4j.pax.exam</groupId>
643 <artifactId>pax-exam-link-mvn</artifactId>
644 <version>4.13.4</version>
648 <groupId>org.ops4j.pax.exam</groupId>
649 <artifactId>pax-exam-link-assembly</artifactId>
650 <version>4.13.4</version>
655 <groupId>org.ops4j.pax.url</groupId>
656 <artifactId>pax-url-link</artifactId>
657 <version>2.5.4</version>
661 <groupId>org.ops4j.pax.url</groupId>
662 <artifactId>pax-url-aether</artifactId>
663 <version>2.5.4</version>
667 <groupId>org.ops4j.pax.url</groupId>
668 <artifactId>pax-url-wrap</artifactId>
669 <version>2.5.4</version>
673 <groupId>org.springframework.osgi</groupId>
674 <artifactId>spring-osgi-mock</artifactId>
675 <version>1.2.1</version>
680 <groupId>org.xmlunit</groupId>
681 <artifactId>xmlunit-core</artifactId>
682 <version>2.8.2</version>
686 <groupId>org.xmlunit</groupId>
687 <artifactId>xmlunit-assertj</artifactId>
688 <version>2.8.2</version>
692 <groupId>org.xmlunit</groupId>
693 <artifactId>xmlunit-assertj3</artifactId>
694 <version>2.8.2</version>
698 <groupId>org.xmlunit</groupId>
699 <artifactId>xmlunit-matchers</artifactId>
700 <version>2.8.2</version>
703 <!-- FIXME: remove this once we have migrated over -->
705 <groupId>org.xmlunit</groupId>
706 <artifactId>xmlunit-legacy</artifactId>
707 <version>2.8.2</version>
711 <!-- Annotations for modernizer-maven-plugin -->
713 <groupId>org.gaul</groupId>
714 <artifactId>modernizer-maven-annotations</artifactId>
715 <!-- This should match the plugin version below -->
716 <version>2.2.0</version>
717 <scope>provided</scope>
721 <groupId>org.eclipse.jetty</groupId>
722 <artifactId>jetty-bom</artifactId>
723 <version>9.4.40.v20210413</version>
724 <scope>import</scope>
729 <groupId>com.h2database</groupId>
730 <artifactId>h2</artifactId>
731 <version>1.4.200</version>
734 <!-- Xtend http://xtend-lang.org
735 NOTE: When you increase the version here,
736 then remember to also increase it for the
737 xtend-maven-plugin below! (We don't want to
738 use a Maven property, in order not to "leak" that.)
741 <groupId>org.eclipse.xtend</groupId>
742 <artifactId>org.eclipse.xtend.lib</artifactId>
743 <version>2.25.0</version>
746 <groupId>org.eclipse.xtend</groupId>
747 <artifactId>org.eclipse.xtend.lib.macro</artifactId>
748 <version>2.25.0</version>
751 <groupId>org.eclipse.xtext</groupId>
752 <artifactId>org.eclipse.xtext.xbase.lib</artifactId>
753 <version>2.25.0</version>
757 <!-- A better alternative for javax.inject, from https://guicedee.com/ -->
759 <groupId>com.guicedee.services</groupId>
760 <artifactId>javax.inject</artifactId>
761 <version>1.0.20.0</version>
762 <scope>provided</scope>
763 <optional>true</optional>
766 <!-- jung, a graph library -->
768 <groupId>net.sf.jung</groupId>
769 <artifactId>jung-api</artifactId>
770 <version>2.1.1</version>
773 <groupId>net.sf.jung</groupId>
774 <artifactId>jung-algorithms</artifactId>
775 <version>2.1.1</version>
778 <groupId>net.sf.jung</groupId>
779 <artifactId>jung-graph-impl</artifactId>
780 <version>2.1.1</version>
783 <!-- ThreeTen-Extra, date/time complements -->
785 <groupId>org.threeten</groupId>
786 <artifactId>threeten-extra</artifactId>
787 <version>1.6.0</version>
790 <!-- When updating this version, consider antl4-maven-plugin below -->
792 <groupId>org.antlr</groupId>
793 <artifactId>antlr4-runtime</artifactId>
794 <version>4.9.2</version>
797 <groupId>org.apache.aries.blueprint</groupId>
798 <artifactId>blueprint-maven-plugin-annotation</artifactId>
799 <version>1.3.0</version>
800 <optional>true</optional>
803 <!-- TrieMap library -->
805 <groupId>tech.pantheon.triemap</groupId>
806 <artifactId>bom</artifactId>
807 <version>1.2.0</version>
808 <scope>import</scope>
812 <!-- Dropwizard metrics -->
814 <groupId>io.dropwizard.metrics</groupId>
815 <artifactId>metrics-bom</artifactId>
816 <version>4.1.21</version>
817 <scope>import</scope>
822 </dependencyManagement>
826 We expect slf4j-api to be provided by the platform.
827 Karaf provides it, other containers need to provide it themselves.
830 <groupId>org.slf4j</groupId>
831 <artifactId>slf4j-api</artifactId>
832 <scope>provided</scope>
836 Enable useful code quality annotations everywhere. Since these annotations
837 are not required at runtime.
840 <groupId>org.eclipse.jdt</groupId>
841 <artifactId>org.eclipse.jdt.annotation</artifactId>
842 <scope>provided</scope>
845 <groupId>com.github.spotbugs</groupId>
846 <artifactId>spotbugs-annotations</artifactId>
847 <scope>provided</scope>
848 <optional>true</optional>
851 <groupId>org.gaul</groupId>
852 <artifactId>modernizer-maven-annotations</artifactId>
853 <scope>provided</scope>
857 Testing output should be routed through slf4j-simple.
860 <groupId>org.slf4j</groupId>
861 <artifactId>slf4j-simple</artifactId>
866 Unit tests can use JUnit + Mockito + Hamcrest by default.
869 <groupId>org.hamcrest</groupId>
870 <artifactId>hamcrest</artifactId>
874 <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
875 <groupId>org.hamcrest</groupId>
876 <artifactId>hamcrest-library</artifactId>
880 <groupId>junit</groupId>
881 <artifactId>junit</artifactId>
885 <groupId>org.mockito</groupId>
886 <artifactId>mockito-core</artifactId>
894 <!-- Official maven plugins, alpha-sorted by artifactId.
895 We do not need to specify the groupId. -->
897 <artifactId>maven-checkstyle-plugin</artifactId>
898 <version>3.1.2</version>
901 <groupId>com.puppycrawl.tools</groupId>
902 <artifactId>checkstyle</artifactId>
903 <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
904 <version>8.44</version>
907 <groupId>org.opendaylight.odlparent</groupId>
908 <artifactId>checkstyle</artifactId>
909 <version>9.0.3-SNAPSHOT</version>
912 <groupId>com.github.sevntu-checkstyle</groupId>
913 <artifactId>sevntu-checks</artifactId>
914 <version>1.40.0</version>
918 <configLocation>odl_checks.xml</configLocation>
919 <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
920 <!-- <sourceDirectories> are needed so that checkstyle ignores the
921 generated sources directory -->
923 <directory>${project.build.sourceDirectory}</directory>
925 <includeResources>true</includeResources>
926 <includeTestSourceDirectory>true</includeTestSourceDirectory>
927 <includeTestResources>true</includeTestResources>
928 <includes>**\/*.java, **\/*.xtend</includes>
930 org/opendaylight/yang/gen/**,
931 **/protobuff/messages/**,
932 **/thrift/gen/*.java,
935 <failsOnError>false</failsOnError>
936 <consoleOutput>true</consoleOutput>
940 <id>check-license</id>
944 <phase>process-sources</phase>
946 <configLocation>check-license.xml</configLocation>
947 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
948 <includeResources>false</includeResources>
949 <includeTestSourceDirectory>true</includeTestSourceDirectory>
950 <includeTestResources>false</includeTestResources>
952 <directory>${project.build.sourceDirectory}</directory>
955 org/opendaylight/yang/gen/**,
956 **/protobuff/messages/**,
959 <failsOnError>false</failsOnError>
960 <consoleOutput>true</consoleOutput>
967 <phase>process-sources</phase>
969 <failOnViolation>${odlparent.checkstyle.enforce}</failOnViolation>
970 <skip>${odlparent.checkstyle.skip}</skip>
971 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
977 <groupId>org.apache.maven.plugins</groupId>
978 <artifactId>maven-pmd-plugin</artifactId>
979 <version>3.14.0</version>
983 <phase>process-sources</phase>
985 <goal>cpd-check</goal>
988 <failOnViolation>${pmd.cpd.fail}</failOnViolation>
989 <!-- 100 "tokens" here correspond to approx. 5-10 lines of code -->
990 <minimumTokens>101</minimumTokens>
991 <printFailingErrors>true</printFailingErrors>
993 <excludeRoot>${project.build.directory}/generated-sources</excludeRoot>
994 <excludeRoot>${project.build.directory}/generated-test-sources</excludeRoot>
996 <linkXRef>false</linkXRef>
1002 <artifactId>maven-compiler-plugin</artifactId>
1003 <version>3.8.1</version>
1005 <showWarnings>true</showWarnings>
1007 <arg>-parameters</arg>
1008 <arg>-Xlint:all</arg>
1009 <!-- Disable 'No processor claimed any of these annotations' -->
1010 <arg>-Xlint:-processing</arg>
1012 <annotationProcessorPaths>
1014 <groupId>org.immutables</groupId>
1015 <artifactId>value</artifactId>
1016 <!-- Keep this version in sync with dependency declaration above -->
1017 <version>2.8.8</version>
1020 <groupId>org.kohsuke.metainf-services</groupId>
1021 <artifactId>metainf-services</artifactId>
1022 <!-- Keep this version in sync with dependency declaration above -->
1023 <version>1.8</version>
1025 </annotationProcessorPaths>
1029 <artifactId>maven-failsafe-plugin</artifactId>
1030 <version>2.22.2</version>
1033 <artifactId>maven-invoker-plugin</artifactId>
1034 <version>3.2.2</version>
1037 <artifactId>maven-dependency-plugin</artifactId>
1040 <id>unpack-license</id>
1041 <phase>generate-resources</phase>
1048 <groupId>org.opendaylight.odlparent</groupId>
1049 <artifactId>odl-license</artifactId>
1050 <version>9.0.3-SNAPSHOT</version>
1051 <type>license</type>
1052 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1053 <destFileName>LICENSE</destFileName>
1054 <overWrite>false</overWrite>
1057 <silent>true</silent>
1061 <id>analyze-declarations</id>
1063 <goal>analyze-only</goal>
1066 <failOnWarning>${odlparent.dependency.enforce}</failOnWarning>
1067 <ignoreNonCompile>true</ignoreNonCompile>
1068 <skip>${odlparent.dependency.skip}</skip>
1075 <artifactId>maven-plugin-plugin</artifactId>
1076 <version>3.6.1</version>
1080 <artifactId>maven-remote-resources-plugin</artifactId>
1081 <version>1.7.0</version>
1084 <artifactId>maven-shade-plugin</artifactId>
1085 <version>3.2.4</version>
1088 <artifactId>maven-source-plugin</artifactId>
1089 <version>3.2.1</version>
1092 <id>attach-sources</id>
1093 <phase>verify</phase>
1095 <goal>jar-no-fork</goal>
1101 <artifactId>maven-surefire-plugin</artifactId>
1102 <version>2.22.2</version>
1104 <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1105 <trimStackTrace>false</trimStackTrace>
1109 <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1111 <!-- Support Blueprint XML construction using annotations -->
1112 <groupId>org.apache.aries.blueprint</groupId>
1113 <artifactId>blueprint-maven-plugin</artifactId>
1114 <version>1.10.0</version>
1115 <!-- TODO remove dependencies when we bump from 1.10.0 to 1.11.0 (or 1.10.1);
1116 see https://jira.opendaylight.org/browse/ODLPARENT-167 & https://jira.apache.org/jira/browse/ARIES-1826 -->
1119 <groupId>org.apache.xbean</groupId>
1120 <artifactId>xbean-finder-shaded</artifactId>
1121 <version>4.19</version>
1126 <scanPath>${project.groupId}</scanPath>
1132 <goal>blueprint-generate</goal>
1139 <groupId>org.basepom.maven</groupId>
1140 <artifactId>duplicate-finder-maven-plugin</artifactId>
1141 <version>1.5.0</version>
1145 <groupId>com.github.ekryd.echo-maven-plugin</groupId>
1146 <artifactId>echo-maven-plugin</artifactId>
1147 <version>1.3.2</version>
1151 <groupId>org.apache.felix</groupId>
1152 <artifactId>maven-bundle-plugin</artifactId>
1153 <version>5.1.2</version>
1154 <extensions>true</extensions>
1157 <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1158 so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1159 and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present. -->
1160 <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>
1162 <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1163 to generate Import-Service and Export-Service headers. -->
1164 <_removeheaders>Import-Service,Export-Service</_removeheaders>
1170 <groupId>org.apache.karaf.tooling</groupId>
1171 <artifactId>karaf-maven-plugin</artifactId>
1172 <version>${karaf.version}</version>
1173 <extensions>true</extensions>
1177 <groupId>org.apache.servicemix.tooling</groupId>
1178 <artifactId>depends-maven-plugin</artifactId>
1179 <version>1.4.0</version>
1182 <id>generate-depends-file</id>
1184 <goal>generate-depends-file</goal>
1191 <groupId>com.webcohesion.enunciate</groupId>
1192 <artifactId>enunciate-maven-plugin</artifactId>
1193 <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1194 <version>2.13.3</version>
1198 <groupId>org.gaul</groupId>
1199 <artifactId>modernizer-maven-plugin</artifactId>
1200 <version>2.2.0</version>
1202 <javaVersion>${odlparent.modernizer.target}</javaVersion>
1203 <failOnViolations>${odlparent.modernizer.enforce}</failOnViolations>
1204 <skip>${odlparent.modernizer.skip}</skip>
1207 <!-- We are using Guava as per normal and we have grown a large body of code
1208 around the patterns there. Furthermore the suggested replacements have
1209 different behavior, hence we do NOT want to blindly migrate. Examples
1212 - ImmutableCollection et al. are not just implementation details, they
1213 form an API contract.
1214 - ImmutableMap/ImmutableSet retain iteration order, whereas their
1215 Map.of()/Set.of() counterparts have unstable iteration order (by design)
1217 <exclusionPattern>com/google/common/collect/Immutable.*</exclusionPattern>
1218 </exclusionPatterns>
1224 <phase>verify</phase>
1226 <goal>modernizer</goal>
1233 <groupId>com.alexecollins.maven.plugin</groupId>
1234 <artifactId>script-maven-plugin</artifactId>
1235 <version>1.0.0</version>
1239 <groupId>com.github.spotbugs</groupId>
1240 <artifactId>spotbugs-maven-plugin</artifactId>
1241 <version>3.1.12.2</version>
1244 <groupId>com.github.spotbugs</groupId>
1245 <artifactId>spotbugs</artifactId>
1246 <version>3.1.12</version>
1249 <groupId>org.opendaylight.odlparent</groupId>
1250 <artifactId>spotbugs</artifactId>
1251 <version>9.0.3-SNAPSHOT</version>
1254 <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 -->
1255 <groupId>org.slf4j</groupId>
1256 <artifactId>slf4j-simple</artifactId>
1257 <version>1.8.0-beta2</version>
1263 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1264 <artifactId>bug-pattern</artifactId>
1265 <version>1.5.0</version>
1269 Enables analysis which takes more memory but finds more bugs.
1270 If you run out of memory, changes the value of the effort element
1273 <effort>Max</effort>
1274 <!-- Reports all bugs (other values are medium and max) -->
1275 <threshold>Low</threshold>
1276 <!-- Build doesn't fail if problems are found -->
1277 <failOnError>${odlparent.spotbugs.enforce}</failOnError>
1278 <skip>${odlparent.spotbugs.skip}</skip>
1279 <!-- References the excluded rules -->
1280 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1281 <!-- Produces XML report -->
1282 <xmlOutput>true</xmlOutput>
1283 <!-- Configures the directory in which the XML report is created -->
1284 <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1288 Ensures that SpotBugs inspects source code when project is compiled.
1291 <id>analyze-compile</id>
1292 <phase>compile</phase>
1300 <groupId>org.codehaus.mojo</groupId>
1301 <artifactId>properties-maven-plugin</artifactId>
1302 <version>1.0.0</version>
1305 <groupId>org.eclipse.xtend</groupId>
1306 <artifactId>xtend-maven-plugin</artifactId>
1307 <!-- NOTE: This version MUST be kept in sync with the Xtend version in <dependencyManagement> -->
1308 <version>2.25.0</version>
1312 <goal>compile</goal>
1313 <goal>testCompile</goal>
1316 <outputDirectory>${project.build.directory}/generated-sources/xtend</outputDirectory>
1317 <testOutputDirectory>${project.build.directory}/generated-test-sources/xtend</testOutputDirectory>
1323 <groupId>org.eclipse.m2e</groupId>
1324 <artifactId>lifecycle-mapping</artifactId>
1325 <version>1.0.0</version>
1327 <lifecycleMappingMetadata>
1330 <pluginExecutionFilter>
1331 <groupId>org.apache.felix</groupId>
1332 <artifactId>maven-bundle-plugin</artifactId>
1333 <versionRange>[1.0,)</versionRange>
1335 <goal>manifest</goal>
1337 </pluginExecutionFilter>
1343 <pluginExecutionFilter>
1344 <groupId>org.apache.maven.plugins</groupId>
1345 <artifactId>maven-enforcer-plugin</artifactId>
1346 <versionRange>[1.0.0,)</versionRange>
1348 <goal>enforce</goal>
1350 </pluginExecutionFilter>
1356 <pluginExecutionFilter>
1357 <groupId>org.apache.maven.plugins</groupId>
1358 <artifactId>maven-dependency-plugin</artifactId>
1359 <versionRange>[2.10,)</versionRange>
1363 </pluginExecutionFilter>
1369 <pluginExecutionFilter>
1370 <groupId>org.apache.maven.plugins</groupId>
1371 <artifactId>maven-pmd-plugin</artifactId>
1372 <versionRange>[3.6,)</versionRange>
1374 <goal>cpd-check</goal>
1376 </pluginExecutionFilter>
1381 <!-- The plugin will eventually be removed, remove this too at that point -->
1383 <pluginExecutionFilter>
1384 <groupId>org.apache.maven.plugins</groupId>
1385 <artifactId>maven-antrun-plugin</artifactId>
1386 <versionRange>[1.8,)</versionRange>
1390 </pluginExecutionFilter>
1396 <pluginExecutionFilter>
1397 <groupId>org.apache.servicemix.tooling</groupId>
1398 <artifactId>depends-maven-plugin</artifactId>
1399 <versionRange>[1.2,)</versionRange>
1401 <goal>generate-depends-file</goal>
1403 </pluginExecutionFilter>
1409 <pluginExecutionFilter>
1410 <groupId>org.jacoco</groupId>
1411 <artifactId>jacoco-maven-plugin</artifactId>
1412 <versionRange>[0.7.0,)</versionRange>
1414 <goal>prepare-agent</goal>
1416 </pluginExecutionFilter>
1423 <pluginExecutionFilter>
1424 <groupId>org.ops4j.pax.exam</groupId>
1425 <artifactId>maven-paxexam-plugin</artifactId>
1426 <versionRange>[1.2.4,)</versionRange>
1428 <goal>generate-depends-file</goal>
1430 </pluginExecutionFilter>
1437 <pluginExecutionFilter>
1438 <groupId>org.basepom.maven</groupId>
1440 duplicate-finder-maven-plugin
1442 <versionRange>[1.2.1,)</versionRange>
1446 </pluginExecutionFilter>
1452 </lifecycleMappingMetadata>
1457 <groupId>org.jacoco</groupId>
1458 <artifactId>jacoco-maven-plugin</artifactId>
1460 <!-- Note: This exclusion list should match <sonar.exclusions>
1463 <exclude>**/gen/**</exclude>
1464 <exclude>**/generated-sources/**</exclude>
1465 <exclude>**/generated-test-sources/**</exclude>
1466 <exclude>**/yang-gen/**</exclude>
1467 <exclude>**/yang-gen-config/**</exclude>
1468 <exclude>**/yang-gen-sal/**</exclude>
1469 <exclude>**/yang-gen-code/**</exclude>
1470 <exclude>**/pax/**</exclude>
1476 <groupId>org.ops4j.pax.exam</groupId>
1477 <artifactId>maven-paxexam-plugin</artifactId>
1478 <version>1.2.4</version>
1481 <!-- When updating this version, consider antl4-runtime above -->
1483 <groupId>org.antlr</groupId>
1484 <artifactId>antlr4-maven-plugin</artifactId>
1485 <version>4.9.2</version>
1492 <artifactId>maven-enforcer-plugin</artifactId>
1495 <id>enforce-banned-dependencies</id>
1497 <goal>enforce</goal>
1501 <bannedDependencies>
1502 <message>Please always use mockito-core instead of mockito-all (see https://bugs.opendaylight.org/show_bug.cgi?id=7662), and spotbugs:annotations instead of findbugs:annotations</message>
1504 <exclude>org.mockito:mockito-all</exclude>
1505 <exclude>com.google.code.findbugs:annotations</exclude>
1507 </bannedDependencies>
1515 <groupId>org.basepom.maven</groupId>
1516 <artifactId>duplicate-finder-maven-plugin</artifactId>
1519 <id>find-duplicate-classpath-entries</id>
1520 <phase>verify</phase>
1527 <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1528 <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1529 <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1530 <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1531 <printEqualFiles>false</printEqualFiles>
1533 <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1534 as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1535 we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1537 <ignoredResourcePatterns>
1538 <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1539 <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1540 <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1541 <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1542 <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1543 <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1544 <ignoredResourcePattern>.api_description</ignoredResourcePattern>
1545 </ignoredResourcePatterns>
1546 <ignoredDependencies>
1548 <groupId>org.slf4j</groupId>
1549 <artifactId>slf4j-simple</artifactId>
1550 </ignoredDependency>
1552 <groupId>org.opendaylight.odlparent</groupId>
1553 <artifactId>opendaylight-karaf-empty</artifactId>
1554 </ignoredDependency>
1555 </ignoredDependencies>
1559 <artifactId>maven-dependency-plugin</artifactId>
1562 <artifactId>maven-checkstyle-plugin</artifactId>
1565 <artifactId>maven-pmd-plugin</artifactId>
1568 <artifactId>maven-source-plugin</artifactId>
1571 <artifactId>maven-javadoc-plugin</artifactId>
1574 <groupId>org.gaul</groupId>
1575 <artifactId>modernizer-maven-plugin</artifactId>
1578 <groupId>com.github.spotbugs</groupId>
1579 <artifactId>spotbugs-maven-plugin</artifactId>
1582 <!-- Jacoco / Sonar -->
1584 <groupId>org.jacoco</groupId>
1585 <artifactId>jacoco-maven-plugin</artifactId>
1588 <id>pre-unit-test</id>
1590 <goal>prepare-agent</goal>
1603 <groupId>com.alexecollins.maven.plugin</groupId>
1604 <artifactId>script-maven-plugin</artifactId>
1607 <phase>prepare-package</phase>
1609 <goal>execute</goal>
1613 // BeanShell is 2005-ish and thus doesn't support generics, varargs, try-with-resources or lambdas, so:
1614 // (If we do this kind of inline code in pom.xml more often, we shold have a new simple module in
1615 // odl-parent, which has *.java that we compile, and then just depend on it here and call one-line
1616 // static class methods only - it will be MUCH easier to write!)
1617 void copy(File root, String glob, File target) {
1618 java.nio.file.DirectoryStream dirStream = java.nio.file.Files.newDirectoryStream(root.toPath(), glob);
1619 Iterator dirStreamIterator = dirStream.iterator();
1620 while (dirStreamIterator.hasNext()) {
1621 java.nio.file.Path path = dirStreamIterator.next();
1622 java.nio.file.Files.copy(path, new File(target, path.toFile().getName()).toPath(),
1623 new java.nio.file.CopyOption[] {
1624 java.nio.file.StandardCopyOption.REPLACE_EXISTING,
1625 java.nio.file.StandardCopyOption.COPY_ATTRIBUTES
1632 File gitRepoRootDir = project.basedir;
1633 while (!new File(gitRepoRootDir, ".git").exists() && gitRepoRootDir.getParentFile() != null) {
1634 gitRepoRootDir = gitRepoRootDir.getParentFile();
1637 File target = new File(project.build.outputDirectory);
1639 copy(gitRepoRootDir, "README*", target);
1640 copy(gitRepoRootDir, "CONTRIBUTING*", target);
1641 copy(gitRepoRootDir, "PROJECT_INFO.yaml", target);
1648 <groupId>org.apache-extras.beanshell</groupId>
1649 <artifactId>bsh</artifactId>
1650 <version>2.0b6</version>
1659 <id>disable-spotbugs</id>
1661 <!-- Current spotbugs does not support JDK15+ -->
1666 <odlparent.spotbugs.skip>true</odlparent.spotbugs.skip>
1672 <groupId>com.github.ekryd.echo-maven-plugin</groupId>
1673 <artifactId>echo-maven-plugin</artifactId>
1676 <id>UNTESTED-JDK</id>
1682 <message>Running on JDK newer than 11, which is not supported. Skipping SpotBugs execution.</message>
1695 <artifactId>maven-checkstyle-plugin</artifactId>
1696 <version>3.1.0</version>
1699 <!-- FIXME: activate this
1701 <artifactId>maven-project-info-reports-plugin</artifactId>
1704 <groupId>org.codehaus.mojo</groupId>
1705 <artifactId>jdepend-maven-plugin</artifactId>
1709 <report>generate-no-fork</report>