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>12.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/display/ODL/ODL+Root+Parent</url>
31 <!-- Variables should only be used where genuinely useful (to avoid
32 repetition); in general versions should be specified in the
33 corresponding dependencyManagement or pluginManagement element, not as
34 a variable. Duplication within odlparent doesn't count if it can be
35 managed using maven-versions-plugin. -->
37 <nexus.repository.release>opendaylight.release</nexus.repository.release>
38 <nexus.repository.snapshot>opendaylight.snapshot</nexus.repository.snapshot>
40 <!-- Used in controller, genius, infrautils, netconf, netvirt, ovsdb, serviceutils -->
41 <karaf.version>4.4.3</karaf.version>
43 <!-- Supporting Libraries -->
44 <!-- Only used internally -->
45 <bouncycastle.version>1.72</bouncycastle.version>
47 <!-- JaCoCo configuration, by default tied to Sonar configuration, but can be overridden separately
48 to allow projects to report Sonar values from the entire project. -->
49 <jacoco.destFile>${project.build.directory}/code-coverage/jacoco.exec</jacoco.destFile>
50 <jacoco.dataFile>${jacoco.destFile}</jacoco.dataFile>
52 <!-- Default Sonar configuration -->
53 <sonar.java.source>${maven.compiler.release}</sonar.java.source>
54 <sonar-jacoco-listeners.version>5.14.0.18788</sonar-jacoco-listeners.version>
55 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
57 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
58 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/generated-test-sources/**,**/yang-gen/**,**/yang-gen-config/**,**/yang-gen-sal/**,**/yang-gen-code/**,**/pax/**</sonar.exclusions>
60 <!-- Opt-in code quality checks -->
61 <duplicate-finder.skip>true</duplicate-finder.skip> <!-- Classpath duplicates -->
63 <!-- Redirect test output to files (overridable) -->
64 <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
66 <!-- Opt-out from maven-checkstyle-plugin failing the build on violations. Defaults
67 to true. Set to 'false' in pom.xml of project which desires to not enforce
68 no reported violations. -->
69 <odlparent.checkstyle.enforce>true</odlparent.checkstyle.enforce>
71 <!-- Opt-in into modernizer-maven-plugin failing the build on violations. Defaults
72 to true. Set to 'false' in pom.xml of project which desires to not enforce
73 no reported violations. -->
74 <odlparent.modernizer.enforce>true</odlparent.modernizer.enforce>
76 <!-- Target release for modernizer-maven-plugin. It defaults to '1.11',
77 meaning Java 11, but can be set to any version in pom.xml of project
78 which desires to override it (such as '1.12' for Java 12). -->
79 <odlparent.modernizer.target>1.17</odlparent.modernizer.target>
81 <!-- Opt-out from spotbugs-maven-plugin failing the build on violations. Defaults
82 to true. Set to 'false' in pom.xml of project which desires to not enforce
83 no reported violations. -->
84 <odlparent.spotbugs.enforce>true</odlparent.spotbugs.enforce>
86 <!-- Opt-in into maven-dependency-plugin dependency declaration consistency
87 enforcement. Defaults to false. Set to 'true' in pom.xml of a project which
88 desires to have the consistency of its dependencies checked and enforced. -->
89 <odlparent.dependency.enforce>false</odlparent.dependency.enforce>
91 <!-- Opt-out from maven-dependency-plugin dependency declaration consistency
92 checking. Defaults to false. Set to 'true' in pom.xml of a project which
93 desires to not check the consistency of its dependencies. -->
94 <odlparent.dependency.skip>false</odlparent.dependency.skip>
97 <dependencyManagement>
101 <groupId>org.opendaylight.odlparent</groupId>
102 <artifactId>odlparent-artifacts</artifactId>
103 <version>12.0.4-SNAPSHOT</version>
104 <scope>import</scope>
108 <!-- We import the Karaf BOM to ensure we converge by default on the versions used there -->
110 <groupId>org.apache.karaf</groupId>
111 <artifactId>karaf-bom</artifactId>
112 <version>${karaf.version}</version>
113 <scope>import</scope>
117 <!-- Build tool dependencies (normally not here in <dependencies>,
118 but in a <dependency> in <pluginManagement> but for Checkstyle this
119 is required so that we can share the same version of Checkstyle
120 for both the Maven plugin below as well as for custom Checkstyle
121 check rule projects, such as yangtools' checkstyle-logging) -->
123 <groupId>com.puppycrawl.tools</groupId>
124 <artifactId>checkstyle</artifactId>
125 <!-- This should match the plugin management on maven-checkstyle-plugin below -->
126 <version>10.8.1</version>
129 <!-- Testing Dependencies -->
130 <!-- JUnit, Hamcrest and Mockito need to be kept in sync -->
132 <groupId>org.junit</groupId>
133 <artifactId>junit-bom</artifactId>
134 <version>5.9.2</version>
136 <scope>import</scope>
139 <groupId>org.mockito</groupId>
140 <artifactId>mockito-bom</artifactId>
141 <version>5.2.0</version>
143 <scope>import</scope>
146 <groupId>junit</groupId>
147 <artifactId>junit</artifactId>
148 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
149 <version>4.13.2</version>
153 <groupId>org.hamcrest</groupId>
154 <artifactId>hamcrest</artifactId>
155 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
156 <version>2.2</version>
160 <groupId>org.hamcrest</groupId>
161 <artifactId>hamcrest-core</artifactId>
162 <version>2.2</version>
166 <groupId>org.hamcrest</groupId>
167 <artifactId>hamcrest-library</artifactId>
168 <version>2.2</version>
172 <groupId>org.awaitility</groupId>
173 <artifactId>awaitility</artifactId>
174 <version>4.1.1</version>
179 Annotation Processors
182 <!-- Generates immutable implementations, builders, the works -->
183 <groupId>org.immutables</groupId>
184 <artifactId>value</artifactId>
185 <classifier>annotations</classifier>
186 <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
187 <version>2.9.3</version>
188 <!-- Must be provided; scope=test here breaks APT in Eclipse :( -->
189 <scope>provided</scope>
193 <!-- Generates META-INF/services entries for ServiceLoader -->
194 <groupId>org.kohsuke.metainf-services</groupId>
195 <artifactId>metainf-services</artifactId>
196 <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
197 <version>1.9</version>
198 <optional>true</optional>
199 <scope>provided</scope>
206 <groupId>ch.qos.logback</groupId>
207 <artifactId>logback-core</artifactId>
208 <version>1.2.11</version>
211 <groupId>ch.qos.logback</groupId>
212 <artifactId>logback-classic</artifactId>
213 <version>1.2.11</version>
218 <groupId>org.apache.logging.log4j</groupId>
219 <artifactId>log4j-bom</artifactId>
220 <version>2.17.1</version>
221 <scope>import</scope>
226 <groupId>com.google.guava</groupId>
227 <artifactId>guava</artifactId>
228 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
229 <version>31.1-jre</version>
232 <!-- Do not leak JSR305 onto the classpath by default -->
233 <groupId>com.google.code.findbugs</groupId>
234 <artifactId>jsr305</artifactId>
239 <groupId>com.google.guava</groupId>
240 <artifactId>guava-testlib</artifactId>
241 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
242 <version>31.1-jre</version>
246 <!-- Do not leak JSR305 onto the classpath by default -->
247 <groupId>com.google.code.findbugs</groupId>
248 <artifactId>jsr305</artifactId>
253 <groupId>org.checkerframework</groupId>
254 <artifactId>checker-qual</artifactId>
255 <version>3.32.0</version>
258 <groupId>com.google.errorprone</groupId>
259 <artifactId>error_prone_annotations</artifactId>
260 <version>2.18.0</version>
264 <groupId>commons-beanutils</groupId>
265 <artifactId>commons-beanutils</artifactId>
266 <version>1.9.4</version>
269 <groupId>org.apache.commons</groupId>
270 <artifactId>commons-lang3</artifactId>
271 <version>3.12.0</version>
274 <groupId>org.apache.commons</groupId>
275 <artifactId>commons-text</artifactId>
276 <version>1.10.0</version>
279 <groupId>commons-lang</groupId>
280 <artifactId>commons-lang</artifactId>
281 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
282 <version>2.6</version>
285 <!-- Jersey for JAXRS -->
287 <groupId>jakarta.ws.rs</groupId>
288 <artifactId>jakarta.ws.rs-api</artifactId>
289 <version>2.1.6</version>
292 <groupId>org.glassfish.jersey</groupId>
293 <artifactId>jersey-bom</artifactId>
294 <version>2.39</version>
296 <scope>import</scope>
300 <groupId>xml-apis</groupId>
301 <artifactId>xml-apis</artifactId>
302 <version>1.4.01</version>
305 <!-- Plugin integration -->
307 <groupId>net.java.dev.stax-utils</groupId>
308 <artifactId>stax-utils</artifactId>
309 <version>20070216</version>
312 <!-- JSR173 ships with JRE by default -->
313 <groupId>com.bea.xml</groupId>
314 <artifactId>jsr173-ri</artifactId>
319 <groupId>org.sonatype.plexus</groupId>
320 <artifactId>plexus-build-api</artifactId>
321 <version>0.0.7</version>
324 <groupId>org.codehaus.plexus</groupId>
325 <artifactId>plexus-slf4j-logging</artifactId>
326 <version>1.1</version>
329 <!-- These three need to be consistent:
330 jackson-2.14.2 needs woodstox-6.4.0+
331 woodstox-5.3+ needs stax2-api-4.2.x
334 <groupId>org.codehaus.woodstox</groupId>
335 <artifactId>stax2-api</artifactId>
336 <version>4.2.1</version>
339 <groupId>com.fasterxml.woodstox</groupId>
340 <artifactId>woodstox-core</artifactId>
341 <version>6.4.0</version>
344 <groupId>com.fasterxml.jackson</groupId>
345 <artifactId>jackson-bom</artifactId>
346 <version>2.14.2</version>
347 <scope>import</scope>
352 <groupId>com.github.spotbugs</groupId>
353 <artifactId>spotbugs-annotations</artifactId>
354 <version>4.7.3</version>
355 <scope>provided</scope>
356 <!-- Contains retention=RUNTIME annotations, which are not really needed -->
357 <optional>true</optional>
360 <groupId>com.google.code.findbugs</groupId>
361 <artifactId>jsr305</artifactId>
367 <groupId>org.eclipse.jdt</groupId>
368 <artifactId>org.eclipse.jdt.annotation</artifactId>
369 <version>2.2.700</version>
370 <scope>provided</scope>
373 <groupId>com.google.code.gson</groupId>
374 <artifactId>gson</artifactId>
375 <version>2.10.1</version>
378 <groupId>commons-io</groupId>
379 <artifactId>commons-io</artifactId>
380 <version>2.11.0</version>
385 <groupId>io.netty</groupId>
386 <artifactId>netty-bom</artifactId>
387 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
388 <version>4.1.89.Final</version>
390 <scope>import</scope>
394 <groupId>org.bouncycastle</groupId>
395 <artifactId>bcpkix-jdk18on</artifactId>
396 <version>${bouncycastle.version}</version>
399 <groupId>org.bouncycastle</groupId>
400 <artifactId>bcprov-jdk18on</artifactId>
401 <version>${bouncycastle.version}</version>
404 <groupId>org.bouncycastle</groupId>
405 <artifactId>bcprov-ext-jdk18on</artifactId>
406 <version>${bouncycastle.version}</version>
409 <groupId>org.bouncycastle</groupId>
410 <artifactId>bcutil-jdk18on</artifactId>
411 <version>${bouncycastle.version}</version>
415 <groupId>org.javassist</groupId>
416 <artifactId>javassist</artifactId>
417 <version>3.29.2-GA</version>
420 <groupId>org.jboss.spec.javax.transaction</groupId>
421 <artifactId>jboss-transaction-api_1.1_spec</artifactId>
422 <version>1.0.1.Final</version>
425 <groupId>org.jolokia</groupId>
426 <artifactId>jolokia-osgi</artifactId>
427 <version>1.7.2</version>
430 <!-- OSGi Release 8 artifacts we support, augmenting Karaf's BOM -->
432 <groupId>org.osgi</groupId>
433 <artifactId>org.osgi.annotation.bundle</artifactId>
434 <version>1.1.0</version>
435 <scope>provided</scope>
438 <groupId>org.osgi</groupId>
439 <artifactId>org.osgi.annotation.versioning</artifactId>
440 <version>1.1.2</version>
441 <scope>provided</scope>
444 <groupId>org.osgi</groupId>
445 <artifactId>org.osgi.framework</artifactId>
446 <version>1.10.0</version>
447 <scope>provided</scope>
450 <groupId>org.osgi</groupId>
451 <artifactId>org.osgi.service.component.annotations</artifactId>
452 <version>1.5.1</version>
453 <scope>provided</scope>
455 <!-- Causes class path duplicates -->
457 <groupId>org.osgi</groupId>
458 <artifactId>osgi.annotation</artifactId>
463 <groupId>org.osgi</groupId>
464 <artifactId>org.osgi.service.http.whiteboard</artifactId>
465 <version>1.1.1</version>
466 <scope>provided</scope>
468 <!-- Causes class path duplicates -->
470 <groupId>org.osgi</groupId>
471 <artifactId>osgi.annotation</artifactId>
476 <groupId>org.osgi</groupId>
477 <artifactId>org.osgi.service.jdbc</artifactId>
478 <version>1.0.1</version>
479 <scope>provided</scope>
481 <!-- Causes class path duplicates -->
483 <groupId>org.osgi</groupId>
484 <artifactId>osgi.annotation</artifactId>
489 <groupId>org.osgi</groupId>
490 <artifactId>org.osgi.service.metatype.annotations</artifactId>
491 <version>1.4.1</version>
492 <scope>provided</scope>
494 <!-- Causes class path duplicates -->
496 <groupId>org.osgi</groupId>
497 <artifactId>osgi.annotation</artifactId>
502 <groupId>org.osgi</groupId>
503 <artifactId>org.osgi.service.resolver</artifactId>
504 <version>1.1.1</version>
505 <scope>provided</scope>
508 <groupId>org.osgi</groupId>
509 <artifactId>org.osgi.service.url</artifactId>
510 <version>1.0.1</version>
511 <scope>provided</scope>
514 <groupId>org.osgi</groupId>
515 <artifactId>org.osgi.util.tracker</artifactId>
516 <version>1.5.4</version>
517 <scope>provided</scope>
520 <!-- for https://jira.opendaylight.org/browse/ODLPARENT-24 -->
522 <groupId>org.apache.aries.quiesce</groupId>
523 <artifactId>org.apache.aries.quiesce.api</artifactId>
524 <version>1.0.0</version>
527 <!-- LMAX Disruptor -->
529 <groupId>com.lmax</groupId>
530 <artifactId>disruptor</artifactId>
531 <version>3.4.4</version>
534 <!-- Add Pax Exam -->
536 <groupId>org.ops4j.pax.exam</groupId>
537 <artifactId>pax-exam</artifactId>
538 <version>4.13.5</version>
542 <groupId>org.ops4j.pax.exam</groupId>
543 <artifactId>pax-exam-container-forked</artifactId>
544 <version>4.13.5</version>
548 <groupId>org.ops4j.pax.exam</groupId>
549 <artifactId>pax-exam-container-karaf</artifactId>
550 <version>4.13.5</version>
554 <groupId>org.ops4j.pax.exam</groupId>
555 <artifactId>pax-exam-container-native</artifactId>
556 <version>4.13.5</version>
560 <groupId>org.ops4j.pax.exam</groupId>
561 <artifactId>pax-exam-extender-service</artifactId>
562 <version>4.13.5</version>
566 <groupId>org.ops4j.pax.exam</groupId>
567 <artifactId>pax-exam-inject</artifactId>
568 <version>4.13.5</version>
572 <groupId>org.ops4j.pax.exam</groupId>
573 <artifactId>pax-exam-invoker-junit</artifactId>
574 <version>4.13.5</version>
578 <groupId>org.ops4j.pax.exam</groupId>
579 <artifactId>pax-exam-features</artifactId>
580 <version>4.13.5</version>
585 <groupId>org.ops4j.pax.exam</groupId>
586 <artifactId>pax-exam-junit4</artifactId>
587 <version>4.13.5</version>
591 <groupId>org.ops4j.pax.exam</groupId>
592 <artifactId>pax-exam-link-mvn</artifactId>
593 <version>4.13.5</version>
597 <groupId>org.ops4j.pax.exam</groupId>
598 <artifactId>pax-exam-link-assembly</artifactId>
599 <version>4.13.5</version>
604 <groupId>org.ops4j.pax.url</groupId>
605 <artifactId>pax-url-link</artifactId>
606 <version>2.6.12</version>
610 <groupId>org.ops4j.pax.url</groupId>
611 <artifactId>pax-url-aether</artifactId>
612 <version>2.6.12</version>
616 <groupId>org.ops4j.pax.url</groupId>
617 <artifactId>pax-url-wrap</artifactId>
618 <version>2.6.12</version>
622 <groupId>org.xmlunit</groupId>
623 <artifactId>xmlunit-core</artifactId>
624 <version>2.9.1</version>
628 <groupId>org.xmlunit</groupId>
629 <artifactId>xmlunit-assertj</artifactId>
630 <version>2.9.1</version>
634 <groupId>org.xmlunit</groupId>
635 <artifactId>xmlunit-assertj3</artifactId>
636 <version>2.9.1</version>
640 <groupId>org.xmlunit</groupId>
641 <artifactId>xmlunit-matchers</artifactId>
642 <version>2.9.1</version>
645 <!-- FIXME: remove this once we have migrated over -->
647 <groupId>org.xmlunit</groupId>
648 <artifactId>xmlunit-legacy</artifactId>
649 <version>2.9.1</version>
653 <!-- Annotations for modernizer-maven-plugin -->
655 <groupId>org.gaul</groupId>
656 <artifactId>modernizer-maven-annotations</artifactId>
657 <!-- This should match the plugin version below -->
658 <version>2.5.0</version>
659 <scope>provided</scope>
663 <groupId>org.eclipse.jetty</groupId>
664 <artifactId>jetty-bom</artifactId>
665 <version>9.4.50.v20221201</version>
666 <scope>import</scope>
671 <!-- A better alternative for javax.inject, from https://guicedee.com/ -->
673 <groupId>com.guicedee.services</groupId>
674 <artifactId>javax.inject</artifactId>
675 <version>1.0.20.0</version>
676 <scope>provided</scope>
677 <optional>true</optional>
680 <!-- Argparse4j, for parsing command-line arguments in standalone executables -->
682 <groupId>net.sourceforge.argparse4j</groupId>
683 <artifactId>argparse4j</artifactId>
684 <version>0.9.0</version>
687 <!-- ThreeTen-Extra, date/time complements -->
689 <groupId>org.threeten</groupId>
690 <artifactId>threeten-extra</artifactId>
691 <version>1.7.2</version>
694 <!-- When updating this version, consider antl4-maven-plugin below -->
696 <groupId>org.antlr</groupId>
697 <artifactId>antlr4-runtime</artifactId>
698 <version>4.12.0</version>
701 <!-- TrieMap library -->
703 <groupId>tech.pantheon.triemap</groupId>
704 <artifactId>bom</artifactId>
705 <version>1.2.0</version>
706 <scope>import</scope>
710 <!-- Dropwizard metrics -->
712 <groupId>io.dropwizard.metrics</groupId>
713 <artifactId>metrics-bom</artifactId>
714 <version>4.2.17</version>
715 <scope>import</scope>
719 <!-- Sonar/JaCoCo integration -->
721 <groupId>org.sonarsource.java</groupId>
722 <artifactId>sonar-jacoco-listeners</artifactId>
723 <version>${sonar-jacoco-listeners.version}</version>
727 </dependencyManagement>
731 We expect slf4j-api to be provided by the platform.
732 Karaf provides it, other containers need to provide it themselves.
735 <groupId>org.slf4j</groupId>
736 <artifactId>slf4j-api</artifactId>
737 <scope>provided</scope>
741 Enable useful code quality annotations everywhere. Since these annotations
742 are not required at runtime.
745 <groupId>org.eclipse.jdt</groupId>
746 <artifactId>org.eclipse.jdt.annotation</artifactId>
747 <scope>provided</scope>
750 <groupId>com.github.spotbugs</groupId>
751 <artifactId>spotbugs-annotations</artifactId>
752 <scope>provided</scope>
753 <optional>true</optional>
756 <groupId>org.gaul</groupId>
757 <artifactId>modernizer-maven-annotations</artifactId>
758 <scope>provided</scope>
762 Testing output should be routed through slf4j-simple.
765 <groupId>org.slf4j</groupId>
766 <artifactId>slf4j-simple</artifactId>
771 Unit tests can use JUnit + Mockito + Hamcrest by default.
774 <groupId>org.hamcrest</groupId>
775 <artifactId>hamcrest</artifactId>
779 <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
780 <groupId>org.hamcrest</groupId>
781 <artifactId>hamcrest-library</artifactId>
785 <!-- JUnit 5 integration -->
787 <groupId>org.junit.jupiter</groupId>
788 <artifactId>junit-jupiter-api</artifactId>
792 <groupId>org.junit.jupiter</groupId>
793 <artifactId>junit-jupiter-params</artifactId>
797 <groupId>org.junit.jupiter</groupId>
798 <artifactId>junit-jupiter-engine</artifactId>
802 <groupId>org.mockito</groupId>
803 <artifactId>mockito-junit-jupiter</artifactId>
807 <!-- JUnit 4 integration -->
809 <groupId>junit</groupId>
810 <artifactId>junit</artifactId>
814 <groupId>org.junit.jupiter</groupId>
815 <artifactId>junit-jupiter-migrationsupport</artifactId>
819 <groupId>org.junit.vintage</groupId>
820 <artifactId>junit-vintage-engine</artifactId>
824 <groupId>org.mockito</groupId>
825 <artifactId>mockito-core</artifactId>
833 <!-- Official maven plugins, alpha-sorted by artifactId.
834 We do not need to specify the groupId. -->
836 <artifactId>maven-checkstyle-plugin</artifactId>
837 <version>3.2.1</version>
840 <groupId>com.puppycrawl.tools</groupId>
841 <artifactId>checkstyle</artifactId>
842 <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
843 <version>10.8.1</version>
846 <groupId>org.opendaylight.odlparent</groupId>
847 <artifactId>checkstyle</artifactId>
848 <version>12.0.4-SNAPSHOT</version>
851 <groupId>com.github.sevntu-checkstyle</groupId>
852 <artifactId>sevntu-checks</artifactId>
853 <version>1.44.1</version>
857 <configLocation>odl_checks.xml</configLocation>
858 <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
859 <!-- <sourceDirectories> are needed so that checkstyle ignores the
860 generated sources directory -->
862 <directory>${project.build.sourceDirectory}</directory>
864 <includeResources>true</includeResources>
865 <includeTestSourceDirectory>true</includeTestSourceDirectory>
866 <includeTestResources>true</includeTestResources>
867 <includes>**\/*.java</includes>
869 org/opendaylight/yang/gen/**,
870 **/protobuff/messages/**,
871 **/thrift/gen/*.java,
874 <failsOnError>false</failsOnError>
875 <consoleOutput>true</consoleOutput>
879 <id>check-license</id>
883 <phase>process-sources</phase>
885 <configLocation>check-license.xml</configLocation>
886 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
887 <includeResources>false</includeResources>
888 <includeTestSourceDirectory>true</includeTestSourceDirectory>
889 <includeTestResources>false</includeTestResources>
891 <directory>${project.build.sourceDirectory}</directory>
894 org/opendaylight/yang/gen/**,
895 **/protobuff/messages/**,
898 <failsOnError>false</failsOnError>
899 <consoleOutput>true</consoleOutput>
906 <phase>process-sources</phase>
908 <failOnViolation>${odlparent.checkstyle.enforce}</failOnViolation>
909 <skip>${odlparent.checkstyle.skip}</skip>
910 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
916 <artifactId>maven-compiler-plugin</artifactId>
919 <arg>-parameters</arg>
920 <arg>-Xlint:all</arg>
921 <!-- Disable 'No processor claimed any of these annotations' -->
922 <arg>-Xlint:-processing</arg>
923 <!-- Disable 'declares no explicit constructors, thereby exposing a default constructor'
924 because it causes a lot of warnings in downstreams. -->
925 <arg>-Xlint:-missing-explicit-ctor</arg>
927 <annotationProcessorPaths>
929 <groupId>org.immutables</groupId>
930 <artifactId>value</artifactId>
931 <!-- Keep this version in sync with dependency declaration above -->
932 <version>2.9.3</version>
935 <groupId>org.kohsuke.metainf-services</groupId>
936 <artifactId>metainf-services</artifactId>
937 <!-- Keep this version in sync with dependency declaration above -->
938 <version>1.9</version>
940 </annotationProcessorPaths>
944 <artifactId>maven-failsafe-plugin</artifactId>
945 <version>3.0.0</version>
948 <artifactId>maven-invoker-plugin</artifactId>
949 <version>3.4.0</version>
952 <artifactId>maven-dependency-plugin</artifactId>
955 <id>unpack-license</id>
956 <phase>generate-resources</phase>
963 <groupId>org.opendaylight.odlparent</groupId>
964 <artifactId>odl-license</artifactId>
965 <version>12.0.4-SNAPSHOT</version>
967 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
968 <destFileName>LICENSE</destFileName>
969 <overWrite>false</overWrite>
972 <silent>true</silent>
976 <id>analyze-declarations</id>
978 <goal>analyze-only</goal>
981 <failOnWarning>${odlparent.dependency.enforce}</failOnWarning>
982 <ignoreNonCompile>true</ignoreNonCompile>
983 <skip>${odlparent.dependency.skip}</skip>
990 <artifactId>maven-plugin-plugin</artifactId>
991 <version>3.7.1</version>
995 <artifactId>maven-remote-resources-plugin</artifactId>
996 <version>3.0.0</version>
999 <artifactId>maven-shade-plugin</artifactId>
1000 <version>3.4.1</version>
1003 <artifactId>maven-source-plugin</artifactId>
1004 <version>3.2.1</version>
1007 <id>attach-sources</id>
1008 <phase>verify</phase>
1010 <goal>jar-no-fork</goal>
1016 <artifactId>maven-surefire-plugin</artifactId>
1017 <version>3.0.0</version>
1019 <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1020 <trimStackTrace>false</trimStackTrace>
1024 <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1026 <groupId>org.basepom.maven</groupId>
1027 <artifactId>duplicate-finder-maven-plugin</artifactId>
1028 <version>1.5.1</version>
1032 <groupId>com.github.ekryd.echo-maven-plugin</groupId>
1033 <artifactId>echo-maven-plugin</artifactId>
1034 <version>2.0.1</version>
1038 <groupId>org.apache.felix</groupId>
1039 <artifactId>maven-bundle-plugin</artifactId>
1040 <version>5.1.8</version>
1041 <extensions>true</extensions>
1044 <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1045 so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1046 and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present. -->
1047 <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>
1049 <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1050 to generate Import-Service and Export-Service headers. -->
1051 <_removeheaders>Import-Service,Export-Service</_removeheaders>
1057 <groupId>org.apache.karaf.tooling</groupId>
1058 <artifactId>karaf-maven-plugin</artifactId>
1059 <version>${karaf.version}</version>
1060 <extensions>true</extensions>
1064 <groupId>org.apache.servicemix.tooling</groupId>
1065 <artifactId>depends-maven-plugin</artifactId>
1066 <version>1.4.0</version>
1069 <id>generate-depends-file</id>
1071 <goal>generate-depends-file</goal>
1078 <groupId>org.gaul</groupId>
1079 <artifactId>modernizer-maven-plugin</artifactId>
1080 <version>2.5.0</version>
1082 <javaVersion>${odlparent.modernizer.target}</javaVersion>
1083 <failOnViolations>${odlparent.modernizer.enforce}</failOnViolations>
1084 <skip>${odlparent.modernizer.skip}</skip>
1087 <!-- We are using Guava as per normal and we have grown a large body of code
1088 around the patterns there. Furthermore the suggested replacements have
1089 different behavior, hence we do NOT want to blindly migrate. Examples
1092 - Iterables, which we are widely use for efficient discovery of when
1093 the Iterable is actually a Collection
1095 <exclusionPattern>com/google/common/collect/Iterables.*</exclusionPattern>
1096 </exclusionPatterns>
1102 <phase>verify</phase>
1104 <goal>modernizer</goal>
1111 <groupId>org.apache.karaf.tooling</groupId>
1112 <artifactId>karaf-services-maven-plugin</artifactId>
1113 <version>${karaf.version}</version>
1116 <id>service-metadata-generate</id>
1117 <phase>process-classes</phase>
1119 <goal>service-metadata-generate</goal>
1126 <groupId>com.github.spotbugs</groupId>
1127 <artifactId>spotbugs-maven-plugin</artifactId>
1128 <version>4.7.3.2</version>
1131 <groupId>com.github.spotbugs</groupId>
1132 <artifactId>spotbugs</artifactId>
1133 <version>4.7.3</version>
1136 <groupId>org.opendaylight.odlparent</groupId>
1137 <artifactId>spotbugs</artifactId>
1138 <version>12.0.4-SNAPSHOT</version>
1141 <!-- The SpotBugs Maven plugin uses SLF4J-2 -->
1143 <groupId>org.slf4j</groupId>
1144 <artifactId>slf4j-api</artifactId>
1145 <version>2.0.0</version>
1148 <groupId>org.slf4j</groupId>
1149 <artifactId>slf4j-simple</artifactId>
1150 <version>2.0.0</version>
1156 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1157 <artifactId>bug-pattern</artifactId>
1158 <version>1.5.0</version>
1162 Enables analysis which takes more memory but finds more bugs.
1163 If you run out of memory, changes the value of the effort element
1166 <effort>Max</effort>
1167 <!-- Reports all bugs (other values are medium and max) -->
1168 <threshold>Low</threshold>
1169 <!-- Build doesn't fail if problems are found -->
1170 <failOnError>${odlparent.spotbugs.enforce}</failOnError>
1171 <skip>${odlparent.spotbugs.skip}</skip>
1172 <!-- References the excluded rules -->
1173 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1174 <!-- Produces XML report -->
1175 <xmlOutput>true</xmlOutput>
1176 <!-- Configures the directory in which the XML report is created -->
1177 <spotbugsXmlOutputDirectory>${project.build.directory}/spotbugs</spotbugsXmlOutputDirectory>
1181 Ensures that SpotBugs inspects source code when project is compiled.
1184 <id>analyze-compile</id>
1185 <phase>compile</phase>
1193 <groupId>org.codehaus.mojo</groupId>
1194 <artifactId>properties-maven-plugin</artifactId>
1195 <version>1.1.0</version>
1198 <groupId>org.eclipse.m2e</groupId>
1199 <artifactId>lifecycle-mapping</artifactId>
1200 <version>1.0.0</version>
1202 <lifecycleMappingMetadata>
1205 <pluginExecutionFilter>
1206 <groupId>org.apache.felix</groupId>
1207 <artifactId>maven-bundle-plugin</artifactId>
1208 <versionRange>[1.0,)</versionRange>
1210 <goal>manifest</goal>
1212 </pluginExecutionFilter>
1218 <pluginExecutionFilter>
1219 <groupId>org.apache.maven.plugins</groupId>
1220 <artifactId>maven-enforcer-plugin</artifactId>
1221 <versionRange>[1.0.0,)</versionRange>
1223 <goal>enforce</goal>
1225 </pluginExecutionFilter>
1231 <pluginExecutionFilter>
1232 <groupId>org.apache.maven.plugins</groupId>
1233 <artifactId>maven-dependency-plugin</artifactId>
1234 <versionRange>[2.10,)</versionRange>
1238 </pluginExecutionFilter>
1243 <!-- The plugin will eventually be removed, remove this too at that point -->
1245 <pluginExecutionFilter>
1246 <groupId>org.apache.maven.plugins</groupId>
1247 <artifactId>maven-antrun-plugin</artifactId>
1248 <versionRange>[1.8,)</versionRange>
1252 </pluginExecutionFilter>
1258 <pluginExecutionFilter>
1259 <groupId>org.apache.servicemix.tooling</groupId>
1260 <artifactId>depends-maven-plugin</artifactId>
1261 <versionRange>[1.2,)</versionRange>
1263 <goal>generate-depends-file</goal>
1265 </pluginExecutionFilter>
1271 <pluginExecutionFilter>
1272 <groupId>org.jacoco</groupId>
1273 <artifactId>jacoco-maven-plugin</artifactId>
1274 <versionRange>[0.7.0,)</versionRange>
1276 <goal>prepare-agent</goal>
1278 </pluginExecutionFilter>
1285 <pluginExecutionFilter>
1286 <groupId>org.ops4j.pax.exam</groupId>
1287 <artifactId>maven-paxexam-plugin</artifactId>
1288 <versionRange>[1.2.4,)</versionRange>
1290 <goal>generate-depends-file</goal>
1292 </pluginExecutionFilter>
1299 <pluginExecutionFilter>
1300 <groupId>org.basepom.maven</groupId>
1302 duplicate-finder-maven-plugin
1304 <versionRange>[1.2.1,)</versionRange>
1308 </pluginExecutionFilter>
1314 </lifecycleMappingMetadata>
1319 <groupId>org.jacoco</groupId>
1320 <artifactId>jacoco-maven-plugin</artifactId>
1322 <!-- Note: This exclusion list should match <sonar.exclusions>
1325 <exclude>**/gen/**</exclude>
1326 <exclude>**/generated-sources/**</exclude>
1327 <exclude>**/generated-test-sources/**</exclude>
1328 <exclude>**/yang-gen/**</exclude>
1329 <exclude>**/yang-gen-config/**</exclude>
1330 <exclude>**/yang-gen-sal/**</exclude>
1331 <exclude>**/yang-gen-code/**</exclude>
1332 <exclude>**/pax/**</exclude>
1338 <groupId>org.ops4j.pax.exam</groupId>
1339 <artifactId>maven-paxexam-plugin</artifactId>
1340 <version>1.2.4</version>
1343 <!-- When updating this version, consider antl4-runtime above -->
1345 <groupId>org.antlr</groupId>
1346 <artifactId>antlr4-maven-plugin</artifactId>
1347 <version>4.12.0</version>
1354 <artifactId>maven-enforcer-plugin</artifactId>
1357 <id>enforce-banned-dependencies</id>
1359 <goal>enforce</goal>
1363 <bannedDependencies>
1364 <message>Please always use mockito-core instead of mockito-all (see https://jira.opendaylight.org/browse/ODLPARENT-59), and spotbugs:annotations instead of findbugs:annotations</message>
1366 <exclude>org.mockito:mockito-all</exclude>
1367 <exclude>com.google.code.findbugs:annotations</exclude>
1369 </bannedDependencies>
1377 <groupId>org.basepom.maven</groupId>
1378 <artifactId>duplicate-finder-maven-plugin</artifactId>
1381 <id>find-duplicate-classpath-entries</id>
1382 <phase>verify</phase>
1389 <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1390 <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1391 <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1392 <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1393 <printEqualFiles>false</printEqualFiles>
1395 <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1396 as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1397 we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1399 <ignoredResourcePatterns>
1400 <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1401 <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1402 <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1403 <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1404 <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1405 <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1406 <ignoredResourcePattern>.api_description</ignoredResourcePattern>
1407 </ignoredResourcePatterns>
1408 <ignoredDependencies>
1410 <groupId>org.slf4j</groupId>
1411 <artifactId>slf4j-simple</artifactId>
1412 </ignoredDependency>
1414 <groupId>org.opendaylight.odlparent</groupId>
1415 <artifactId>opendaylight-karaf-empty</artifactId>
1416 </ignoredDependency>
1417 </ignoredDependencies>
1421 <artifactId>maven-dependency-plugin</artifactId>
1424 <artifactId>maven-checkstyle-plugin</artifactId>
1427 <artifactId>maven-source-plugin</artifactId>
1430 <artifactId>maven-javadoc-plugin</artifactId>
1433 <groupId>org.gaul</groupId>
1434 <artifactId>modernizer-maven-plugin</artifactId>
1437 <groupId>com.github.spotbugs</groupId>
1438 <artifactId>spotbugs-maven-plugin</artifactId>
1441 <!-- Jacoco / Sonar -->
1443 <groupId>org.jacoco</groupId>
1444 <artifactId>jacoco-maven-plugin</artifactId>
1447 <id>pre-unit-test</id>
1449 <goal>prepare-agent</goal>
1462 <groupId>org.opendaylight.odlparent</groupId>
1463 <artifactId>copy-files-plugin</artifactId>
1464 <version>12.0.4-SNAPSHOT</version>
1467 <phase>prepare-package</phase>
1469 <goal>copy-files</goal>
1473 <glob>README*</glob>
1474 <glob>CONTRIBUTING*</glob>
1475 <glob>PROJECT_INFO.yaml</glob>
1487 <artifactId>maven-checkstyle-plugin</artifactId>
1488 <version>3.2.1</version>
1491 <!-- FIXME: activate this
1493 <artifactId>maven-project-info-reports-plugin</artifactId>
1496 <groupId>org.codehaus.mojo</groupId>
1497 <artifactId>jdepend-maven-plugin</artifactId>
1501 <report>generate-no-fork</report>