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>13.1.0-SNAPSHOT</version>
17 <relativePath>../odlparent-lite</relativePath>
20 <artifactId>odlparent</artifactId>
21 <packaging>pom</packaging>
22 <name>ODL :: odlparent :: ${project.artifactId}</name>
25 <connection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</connection>
26 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</developerConnection>
28 <url>https://wiki.opendaylight.org/display/ODL/ODL+Root+Parent</url>
31 <!-- Variables should only be used where genuinely useful (to avoid
32 repetition); in general versions should be specified in the
33 corresponding dependencyManagement or pluginManagement element, not as
34 a variable. Duplication within odlparent doesn't count if it can be
35 managed using maven-versions-plugin. -->
37 <nexus.repository.release>opendaylight.release</nexus.repository.release>
38 <nexus.repository.snapshot>opendaylight.snapshot</nexus.repository.snapshot>
40 <!-- Used in controller, genius, infrautils, netconf, netvirt, ovsdb, serviceutils -->
41 <karaf.version>4.4.5</karaf.version>
43 <!-- Supporting Libraries -->
44 <!-- Only used internally -->
45 <bouncycastle.version>1.77</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>
85 <!-- Do not for a new JVM for spotbugs execution -->
86 <spotbugs.fork>false</spotbugs.fork>
88 <!-- Opt-in into maven-dependency-plugin dependency declaration consistency
89 enforcement. Defaults to false. Set to 'true' in pom.xml of a project which
90 desires to have the consistency of its dependencies checked and enforced. -->
91 <odlparent.dependency.enforce>false</odlparent.dependency.enforce>
93 <!-- Opt-out from maven-dependency-plugin dependency declaration consistency
94 checking. Defaults to false. Set to 'true' in pom.xml of a project which
95 desires to not check the consistency of its dependencies. -->
96 <odlparent.dependency.skip>false</odlparent.dependency.skip>
99 <dependencyManagement>
103 <groupId>org.opendaylight.odlparent</groupId>
104 <artifactId>odlparent-artifacts</artifactId>
105 <version>13.1.0-SNAPSHOT</version>
106 <scope>import</scope>
110 <!-- We import the Karaf BOM to ensure we converge by default on the versions used there -->
112 <groupId>org.apache.karaf</groupId>
113 <artifactId>karaf-bom</artifactId>
114 <version>${karaf.version}</version>
115 <scope>import</scope>
119 <!-- Build tool dependencies (normally not here in <dependencies>,
120 but in a <dependency> in <pluginManagement> but for Checkstyle this
121 is required so that we can share the same version of Checkstyle
122 for both the Maven plugin below as well as for custom Checkstyle
123 check rule projects, such as yangtools' checkstyle-logging) -->
125 <groupId>com.puppycrawl.tools</groupId>
126 <artifactId>checkstyle</artifactId>
127 <!-- This should match the plugin management on maven-checkstyle-plugin below -->
128 <version>10.14.1</version>
131 <!-- Testing Dependencies -->
132 <!-- JUnit, Hamcrest and Mockito need to be kept in sync -->
134 <groupId>org.junit</groupId>
135 <artifactId>junit-bom</artifactId>
136 <version>5.10.2</version>
138 <scope>import</scope>
141 <groupId>org.mockito</groupId>
142 <artifactId>mockito-bom</artifactId>
143 <version>5.11.0</version>
145 <scope>import</scope>
148 <groupId>junit</groupId>
149 <artifactId>junit</artifactId>
150 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
151 <version>4.13.2</version>
155 <groupId>org.hamcrest</groupId>
156 <artifactId>hamcrest</artifactId>
157 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
158 <version>2.2</version>
162 <groupId>org.hamcrest</groupId>
163 <artifactId>hamcrest-core</artifactId>
164 <version>2.2</version>
168 <groupId>org.hamcrest</groupId>
169 <artifactId>hamcrest-library</artifactId>
170 <version>2.2</version>
174 <groupId>org.awaitility</groupId>
175 <artifactId>awaitility</artifactId>
176 <version>4.1.1</version>
181 Annotation Processors
184 <!-- Generates immutable implementations, builders, the works -->
185 <groupId>org.immutables</groupId>
186 <artifactId>value</artifactId>
187 <classifier>annotations</classifier>
188 <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
189 <version>2.10.1</version>
190 <optional>true</optional>
194 <!-- Generates META-INF/services entries for ServiceLoader -->
195 <groupId>org.kohsuke.metainf-services</groupId>
196 <artifactId>metainf-services</artifactId>
197 <!-- Keep this version in sync with annotationProcessorPaths declaration below -->
198 <version>1.11</version>
199 <optional>true</optional>
200 <scope>provided</scope>
207 <groupId>ch.qos.logback</groupId>
208 <artifactId>logback-core</artifactId>
209 <version>1.2.13</version>
212 <groupId>ch.qos.logback</groupId>
213 <artifactId>logback-classic</artifactId>
214 <version>1.2.13</version>
219 <groupId>org.apache.logging.log4j</groupId>
220 <artifactId>log4j-bom</artifactId>
221 <version>2.17.2</version>
222 <scope>import</scope>
227 <groupId>com.google.guava</groupId>
228 <artifactId>guava</artifactId>
229 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
230 <version>32.1.3-jre</version>
233 <!-- Do not leak JSR305 onto the classpath by default -->
234 <groupId>com.google.code.findbugs</groupId>
235 <artifactId>jsr305</artifactId>
240 <groupId>com.google.guava</groupId>
241 <artifactId>guava-testlib</artifactId>
242 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite and docs -->
243 <version>32.1.3-jre</version>
247 <!-- Do not leak JSR305 onto the classpath by default -->
248 <groupId>com.google.code.findbugs</groupId>
249 <artifactId>jsr305</artifactId>
254 <groupId>org.checkerframework</groupId>
255 <artifactId>checker-qual</artifactId>
256 <version>3.42.0</version>
259 <groupId>com.google.errorprone</groupId>
260 <artifactId>error_prone_annotations</artifactId>
261 <version>2.25.0</version>
265 <groupId>commons-beanutils</groupId>
266 <artifactId>commons-beanutils</artifactId>
267 <version>1.9.4</version>
270 <groupId>org.apache.commons</groupId>
271 <artifactId>commons-lang3</artifactId>
272 <version>3.14.0</version>
275 <groupId>org.apache.commons</groupId>
276 <artifactId>commons-text</artifactId>
277 <version>1.11.0</version>
280 <!-- Jersey for JAXRS -->
282 <groupId>jakarta.ws.rs</groupId>
283 <artifactId>jakarta.ws.rs-api</artifactId>
284 <version>2.1.6</version>
287 <groupId>org.glassfish.jersey</groupId>
288 <artifactId>jersey-bom</artifactId>
289 <version>2.41</version>
291 <scope>import</scope>
295 <groupId>xml-apis</groupId>
296 <artifactId>xml-apis</artifactId>
297 <version>1.4.01</version>
300 <!-- Plugin integration -->
302 <groupId>net.java.dev.stax-utils</groupId>
303 <artifactId>stax-utils</artifactId>
304 <version>20070216</version>
307 <!-- JSR173 ships with JRE by default -->
308 <groupId>com.bea.xml</groupId>
309 <artifactId>jsr173-ri</artifactId>
314 <groupId>org.sonatype.plexus</groupId>
315 <artifactId>plexus-build-api</artifactId>
316 <version>0.0.7</version>
319 <groupId>org.codehaus.plexus</groupId>
320 <artifactId>plexus-slf4j-logging</artifactId>
321 <version>1.1</version>
324 <!-- These three need to be consistent:
325 jackson-2.15.4 needs woodstox-6.4.0+
326 woodstox-5.3+ needs stax2-api-4.2.x
329 <groupId>org.codehaus.woodstox</groupId>
330 <artifactId>stax2-api</artifactId>
331 <version>4.2.2</version>
334 <groupId>com.fasterxml.woodstox</groupId>
335 <artifactId>woodstox-core</artifactId>
336 <version>6.6.1</version>
339 <groupId>com.fasterxml.jackson</groupId>
340 <artifactId>jackson-bom</artifactId>
341 <version>2.15.4</version>
342 <scope>import</scope>
347 <groupId>com.github.spotbugs</groupId>
348 <artifactId>spotbugs-annotations</artifactId>
349 <version>4.8.3</version>
350 <!-- Contains retention=RUNTIME annotations, which are not really needed -->
351 <optional>true</optional>
354 <groupId>com.google.code.findbugs</groupId>
355 <artifactId>jsr305</artifactId>
361 <groupId>org.eclipse.jdt</groupId>
362 <artifactId>org.eclipse.jdt.annotation</artifactId>
363 <version>2.2.800</version>
366 <groupId>com.google.code.gson</groupId>
367 <artifactId>gson</artifactId>
368 <version>2.10.1</version>
371 <groupId>commons-io</groupId>
372 <artifactId>commons-io</artifactId>
373 <version>2.15.1</version>
378 <groupId>io.netty</groupId>
379 <artifactId>netty-bom</artifactId>
380 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
381 <version>4.1.107.Final</version>
383 <scope>import</scope>
387 <groupId>org.bouncycastle</groupId>
388 <artifactId>bcpkix-jdk18on</artifactId>
389 <version>${bouncycastle.version}</version>
392 <groupId>org.bouncycastle</groupId>
393 <artifactId>bcprov-jdk18on</artifactId>
394 <version>${bouncycastle.version}</version>
397 <groupId>org.bouncycastle</groupId>
398 <artifactId>bcprov-ext-jdk18on</artifactId>
399 <version>${bouncycastle.version}</version>
402 <groupId>org.bouncycastle</groupId>
403 <artifactId>bcutil-jdk18on</artifactId>
404 <version>${bouncycastle.version}</version>
408 <groupId>org.javassist</groupId>
409 <artifactId>javassist</artifactId>
410 <version>3.30.2-GA</version>
413 <groupId>org.jboss.spec.javax.transaction</groupId>
414 <artifactId>jboss-transaction-api_1.1_spec</artifactId>
415 <version>1.0.1.Final</version>
418 <groupId>org.jolokia</groupId>
419 <artifactId>jolokia-osgi</artifactId>
420 <version>1.7.2</version>
423 <!-- OSGi Release 8 artifacts we support, augmenting Karaf's BOM -->
425 <groupId>org.osgi</groupId>
426 <artifactId>org.osgi.annotation.bundle</artifactId>
427 <version>1.1.0</version>
428 <scope>provided</scope>
431 <groupId>org.osgi</groupId>
432 <artifactId>org.osgi.annotation.versioning</artifactId>
433 <version>1.1.2</version>
434 <scope>provided</scope>
437 <groupId>org.osgi</groupId>
438 <artifactId>org.osgi.framework</artifactId>
439 <version>1.10.0</version>
440 <scope>provided</scope>
443 <groupId>org.osgi</groupId>
444 <artifactId>org.osgi.service.component.annotations</artifactId>
445 <version>1.5.1</version>
446 <scope>provided</scope>
448 <!-- Causes class path duplicates -->
450 <groupId>org.osgi</groupId>
451 <artifactId>osgi.annotation</artifactId>
456 <groupId>org.osgi</groupId>
457 <artifactId>org.osgi.service.http.whiteboard</artifactId>
458 <version>1.1.1</version>
459 <scope>provided</scope>
461 <!-- Causes class path duplicates -->
463 <groupId>org.osgi</groupId>
464 <artifactId>osgi.annotation</artifactId>
469 <groupId>org.osgi</groupId>
470 <artifactId>org.osgi.service.jdbc</artifactId>
471 <version>1.1.0</version>
472 <scope>provided</scope>
474 <!-- Causes class path duplicates -->
476 <groupId>org.osgi</groupId>
477 <artifactId>osgi.annotation</artifactId>
482 <groupId>org.osgi</groupId>
483 <artifactId>org.osgi.service.metatype.annotations</artifactId>
484 <version>1.4.1</version>
485 <scope>provided</scope>
487 <!-- Causes class path duplicates -->
489 <groupId>org.osgi</groupId>
490 <artifactId>osgi.annotation</artifactId>
495 <groupId>org.osgi</groupId>
496 <artifactId>org.osgi.service.resolver</artifactId>
497 <version>1.1.1</version>
498 <scope>provided</scope>
501 <groupId>org.osgi</groupId>
502 <artifactId>org.osgi.service.url</artifactId>
503 <version>1.0.1</version>
504 <scope>provided</scope>
507 <groupId>org.osgi</groupId>
508 <artifactId>org.osgi.util.tracker</artifactId>
509 <version>1.5.4</version>
510 <scope>provided</scope>
513 <!-- for https://jira.opendaylight.org/browse/ODLPARENT-24 -->
515 <groupId>org.apache.aries.quiesce</groupId>
516 <artifactId>org.apache.aries.quiesce.api</artifactId>
517 <version>1.0.0</version>
520 <!-- LMAX Disruptor -->
522 <groupId>com.lmax</groupId>
523 <artifactId>disruptor</artifactId>
524 <version>3.4.4</version>
527 <!-- Add Pax Exam -->
529 <groupId>org.ops4j.pax.exam</groupId>
530 <artifactId>pax-exam</artifactId>
531 <version>4.13.5</version>
535 <groupId>org.ops4j.pax.exam</groupId>
536 <artifactId>pax-exam-container-forked</artifactId>
537 <version>4.13.5</version>
541 <groupId>org.ops4j.pax.exam</groupId>
542 <artifactId>pax-exam-container-karaf</artifactId>
543 <version>4.13.5</version>
547 <groupId>org.ops4j.pax.exam</groupId>
548 <artifactId>pax-exam-container-native</artifactId>
549 <version>4.13.5</version>
553 <groupId>org.ops4j.pax.exam</groupId>
554 <artifactId>pax-exam-extender-service</artifactId>
555 <version>4.13.5</version>
559 <groupId>org.ops4j.pax.exam</groupId>
560 <artifactId>pax-exam-inject</artifactId>
561 <version>4.13.5</version>
565 <groupId>org.ops4j.pax.exam</groupId>
566 <artifactId>pax-exam-invoker-junit</artifactId>
567 <version>4.13.5</version>
571 <groupId>org.ops4j.pax.exam</groupId>
572 <artifactId>pax-exam-features</artifactId>
573 <version>4.13.5</version>
578 <groupId>org.ops4j.pax.exam</groupId>
579 <artifactId>pax-exam-junit4</artifactId>
580 <version>4.13.5</version>
584 <groupId>org.ops4j.pax.exam</groupId>
585 <artifactId>pax-exam-link-mvn</artifactId>
586 <version>4.13.5</version>
590 <groupId>org.ops4j.pax.exam</groupId>
591 <artifactId>pax-exam-link-assembly</artifactId>
592 <version>4.13.5</version>
597 <groupId>org.ops4j.pax.url</groupId>
598 <artifactId>pax-url-link</artifactId>
599 <version>2.6.14</version>
603 <groupId>org.ops4j.pax.url</groupId>
604 <artifactId>pax-url-aether</artifactId>
605 <version>2.6.14</version>
609 <groupId>org.ops4j.pax.url</groupId>
610 <artifactId>pax-url-wrap</artifactId>
611 <version>2.6.14</version>
615 <groupId>org.xmlunit</groupId>
616 <artifactId>xmlunit-core</artifactId>
617 <version>2.9.1</version>
621 <groupId>org.xmlunit</groupId>
622 <artifactId>xmlunit-assertj</artifactId>
623 <version>2.9.1</version>
627 <groupId>org.xmlunit</groupId>
628 <artifactId>xmlunit-assertj3</artifactId>
629 <version>2.9.1</version>
633 <groupId>org.xmlunit</groupId>
634 <artifactId>xmlunit-matchers</artifactId>
635 <version>2.9.1</version>
638 <!-- FIXME: remove this once we have migrated over -->
640 <groupId>org.xmlunit</groupId>
641 <artifactId>xmlunit-legacy</artifactId>
642 <version>2.9.1</version>
647 <groupId>org.assertj</groupId>
648 <artifactId>assertj-core</artifactId>
649 <version>3.25.3</version>
653 <groupId>net.bytebuddy</groupId>
654 <artifactId>byte-buddy</artifactId>
659 <groupId>org.assertj</groupId>
660 <artifactId>assertj-guava</artifactId>
661 <version>3.25.3</version>
665 <!-- Annotations for modernizer-maven-plugin -->
667 <groupId>org.gaul</groupId>
668 <artifactId>modernizer-maven-annotations</artifactId>
669 <!-- This should match the plugin version below -->
670 <version>2.7.0</version>
671 <scope>provided</scope>
675 <groupId>org.eclipse.jetty</groupId>
676 <artifactId>jetty-bom</artifactId>
677 <version>9.4.53.v20231009</version>
678 <scope>import</scope>
683 <!-- A better alternative for javax.inject, from https://guicedee.com/ -->
685 <groupId>com.guicedee.services</groupId>
686 <artifactId>javax.inject</artifactId>
687 <version>1.0.20.2</version>
688 <scope>provided</scope>
689 <optional>true</optional>
692 <!-- Argparse4j, for parsing command-line arguments in standalone executables -->
694 <groupId>net.sourceforge.argparse4j</groupId>
695 <artifactId>argparse4j</artifactId>
696 <version>0.9.0</version>
699 <!-- ThreeTen-Extra, date/time complements -->
701 <groupId>org.threeten</groupId>
702 <artifactId>threeten-extra</artifactId>
703 <version>1.7.2</version>
706 <!-- When updating this version, consider antl4-maven-plugin below -->
708 <groupId>org.antlr</groupId>
709 <artifactId>antlr4-runtime</artifactId>
710 <version>4.13.1</version>
713 <!-- TrieMap library -->
715 <groupId>tech.pantheon.triemap</groupId>
716 <artifactId>bom</artifactId>
717 <version>1.3.1</version>
718 <scope>import</scope>
722 <!-- Dropwizard metrics -->
724 <groupId>io.dropwizard.metrics</groupId>
725 <artifactId>metrics-bom</artifactId>
726 <version>4.2.25</version>
727 <scope>import</scope>
731 <!-- Sonar/JaCoCo integration -->
733 <groupId>org.sonarsource.java</groupId>
734 <artifactId>sonar-jacoco-listeners</artifactId>
735 <version>${sonar-jacoco-listeners.version}</version>
739 </dependencyManagement>
743 We expect slf4j-api to be provided by the platform.
744 Karaf provides it, other containers need to provide it themselves.
747 <groupId>org.slf4j</groupId>
748 <artifactId>slf4j-api</artifactId>
749 <scope>provided</scope>
753 Testing output should be routed through slf4j-simple.
756 <groupId>org.slf4j</groupId>
757 <artifactId>slf4j-simple</artifactId>
762 Unit tests can use JUnit + Mockito + Hamcrest/AssertJ by default.
765 <groupId>org.assertj</groupId>
766 <artifactId>assertj-core</artifactId>
770 <!-- Hamcrest, for now -->
772 <groupId>org.hamcrest</groupId>
773 <artifactId>hamcrest</artifactId>
777 <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
778 <groupId>org.hamcrest</groupId>
779 <artifactId>hamcrest-library</artifactId>
783 <!-- JUnit 5 integration -->
785 <groupId>org.junit.jupiter</groupId>
786 <artifactId>junit-jupiter-api</artifactId>
790 <groupId>org.junit.jupiter</groupId>
791 <artifactId>junit-jupiter-params</artifactId>
795 <groupId>org.junit.jupiter</groupId>
796 <artifactId>junit-jupiter-engine</artifactId>
800 <groupId>org.mockito</groupId>
801 <artifactId>mockito-junit-jupiter</artifactId>
805 <!-- JUnit 4 integration -->
807 <groupId>junit</groupId>
808 <artifactId>junit</artifactId>
812 <groupId>org.junit.jupiter</groupId>
813 <artifactId>junit-jupiter-migrationsupport</artifactId>
817 <groupId>org.junit.vintage</groupId>
818 <artifactId>junit-vintage-engine</artifactId>
822 <groupId>org.mockito</groupId>
823 <artifactId>mockito-core</artifactId>
831 <!-- Official maven plugins, alpha-sorted by artifactId.
832 We do not need to specify the groupId. -->
834 <artifactId>maven-checkstyle-plugin</artifactId>
835 <version>3.3.1</version>
838 <groupId>com.puppycrawl.tools</groupId>
839 <artifactId>checkstyle</artifactId>
840 <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
841 <version>10.14.1</version>
844 <groupId>org.opendaylight.odlparent</groupId>
845 <artifactId>checkstyle</artifactId>
846 <version>13.1.0-SNAPSHOT</version>
849 <groupId>com.github.sevntu-checkstyle</groupId>
850 <artifactId>sevntu-checks</artifactId>
851 <version>1.44.1</version>
855 <configLocation>odl_checks.xml</configLocation>
856 <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
857 <!-- <sourceDirectories> are needed so that checkstyle ignores the
858 generated sources directory -->
860 <directory>${project.build.sourceDirectory}</directory>
862 <includeResources>true</includeResources>
863 <includeTestSourceDirectory>true</includeTestSourceDirectory>
864 <includeTestResources>true</includeTestResources>
865 <includes>**\/*.java</includes>
867 org/opendaylight/yang/gen/**,
868 **/protobuff/messages/**,
869 **/thrift/gen/*.java,
872 <failsOnError>false</failsOnError>
873 <consoleOutput>true</consoleOutput>
877 <id>check-license</id>
881 <phase>process-sources</phase>
883 <configLocation>check-license.xml</configLocation>
884 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
885 <includeResources>false</includeResources>
886 <includeTestSourceDirectory>true</includeTestSourceDirectory>
887 <includeTestResources>false</includeTestResources>
889 <directory>${project.build.sourceDirectory}</directory>
892 org/opendaylight/yang/gen/**,
893 **/protobuff/messages/**,
896 <failsOnError>false</failsOnError>
897 <consoleOutput>true</consoleOutput>
904 <phase>process-sources</phase>
906 <failOnViolation>${odlparent.checkstyle.enforce}</failOnViolation>
907 <skip>${odlparent.checkstyle.skip}</skip>
908 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
914 <artifactId>maven-compiler-plugin</artifactId>
917 <arg>-parameters</arg>
918 <arg>-Xlint:all</arg>
919 <!-- Disable 'No processor claimed any of these annotations' -->
920 <arg>-Xlint:-processing</arg>
921 <!-- Disable 'declares no explicit constructors, thereby exposing a default constructor'
922 because it causes a lot of warnings in downstreams. -->
923 <arg>-Xlint:-missing-explicit-ctor</arg>
925 <annotationProcessorPaths>
927 <groupId>org.immutables</groupId>
928 <artifactId>value</artifactId>
929 <!-- Keep this version in sync with dependency declaration above -->
930 <version>2.10.1</version>
933 <groupId>org.kohsuke.metainf-services</groupId>
934 <artifactId>metainf-services</artifactId>
935 <!-- Keep this version in sync with dependency declaration above -->
936 <version>1.11</version>
938 </annotationProcessorPaths>
942 <artifactId>maven-failsafe-plugin</artifactId>
943 <version>3.2.5</version>
946 <artifactId>maven-invoker-plugin</artifactId>
947 <version>3.6.0</version>
950 <artifactId>maven-dependency-plugin</artifactId>
953 <id>unpack-license</id>
954 <phase>generate-resources</phase>
961 <groupId>org.opendaylight.odlparent</groupId>
962 <artifactId>odl-license</artifactId>
963 <version>13.1.0-SNAPSHOT</version>
965 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
966 <destFileName>LICENSE</destFileName>
967 <overWrite>false</overWrite>
970 <silent>true</silent>
974 <id>analyze-declarations</id>
976 <goal>analyze-only</goal>
979 <failOnWarning>${odlparent.dependency.enforce}</failOnWarning>
980 <ignoreNonCompile>true</ignoreNonCompile>
981 <skip>${odlparent.dependency.skip}</skip>
988 <artifactId>maven-plugin-plugin</artifactId>
989 <version>3.10.2</version>
993 <artifactId>maven-remote-resources-plugin</artifactId>
994 <version>3.2.0</version>
997 <artifactId>maven-shade-plugin</artifactId>
998 <version>3.5.2</version>
1001 <artifactId>maven-source-plugin</artifactId>
1002 <version>3.3.0</version>
1005 <id>attach-sources</id>
1006 <phase>verify</phase>
1008 <goal>jar-no-fork</goal>
1014 <artifactId>maven-surefire-plugin</artifactId>
1015 <version>3.2.5</version>
1017 <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1018 <trimStackTrace>false</trimStackTrace>
1022 <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1024 <groupId>org.basepom.maven</groupId>
1025 <artifactId>duplicate-finder-maven-plugin</artifactId>
1026 <version>2.0.1</version>
1030 <groupId>com.github.ekryd.echo-maven-plugin</groupId>
1031 <artifactId>echo-maven-plugin</artifactId>
1032 <version>2.1.0</version>
1036 <groupId>org.apache.felix</groupId>
1037 <artifactId>maven-bundle-plugin</artifactId>
1038 <version>5.1.9</version>
1039 <extensions>true</extensions>
1042 <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1043 so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1044 and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present. -->
1045 <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>
1047 <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1048 to generate Import-Service and Export-Service headers. -->
1049 <_removeheaders>Import-Service,Export-Service</_removeheaders>
1055 <groupId>org.apache.karaf.tooling</groupId>
1056 <artifactId>karaf-maven-plugin</artifactId>
1057 <version>${karaf.version}</version>
1058 <extensions>true</extensions>
1062 <groupId>org.apache.servicemix.tooling</groupId>
1063 <artifactId>depends-maven-plugin</artifactId>
1064 <version>1.5.0</version>
1067 <id>generate-depends-file</id>
1069 <goal>generate-depends-file</goal>
1076 <groupId>org.gaul</groupId>
1077 <artifactId>modernizer-maven-plugin</artifactId>
1078 <version>2.7.0</version>
1080 <javaVersion>${odlparent.modernizer.target}</javaVersion>
1081 <failOnViolations>${odlparent.modernizer.enforce}</failOnViolations>
1082 <skip>${odlparent.modernizer.skip}</skip>
1085 <!-- We are using Guava as per normal and we have grown a large body of code
1086 around the patterns there. Furthermore the suggested replacements have
1087 different behavior, hence we do NOT want to blindly migrate. Examples
1090 - Iterables, which we are widely use for efficient discovery of when
1091 the Iterable is actually a Collection
1093 <exclusionPattern>com/google/common/collect/Iterables.*</exclusionPattern>
1094 </exclusionPatterns>
1100 <phase>verify</phase>
1102 <goal>modernizer</goal>
1109 <groupId>org.apache.karaf.tooling</groupId>
1110 <artifactId>karaf-services-maven-plugin</artifactId>
1111 <version>${karaf.version}</version>
1114 <id>service-metadata-generate</id>
1115 <phase>process-classes</phase>
1117 <goal>service-metadata-generate</goal>
1124 <groupId>com.github.spotbugs</groupId>
1125 <artifactId>spotbugs-maven-plugin</artifactId>
1126 <version>4.8.3.1</version>
1129 <groupId>com.github.spotbugs</groupId>
1130 <artifactId>spotbugs</artifactId>
1131 <version>4.8.3</version>
1134 <groupId>org.opendaylight.odlparent</groupId>
1135 <artifactId>spotbugs</artifactId>
1136 <version>13.1.0-SNAPSHOT</version>
1139 <!-- The SpotBugs Maven plugin uses SLF4J-2 -->
1141 <groupId>org.slf4j</groupId>
1142 <artifactId>slf4j-api</artifactId>
1143 <version>2.0.9</version>
1146 <groupId>org.slf4j</groupId>
1147 <artifactId>slf4j-simple</artifactId>
1148 <version>2.0.9</version>
1154 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1155 <artifactId>bug-pattern</artifactId>
1156 <version>1.5.0</version>
1160 Enables analysis which takes more memory but finds more bugs.
1161 If you run out of memory, changes the value of the effort element
1164 <effort>Max</effort>
1165 <!-- Reports all bugs (other values are medium and max) -->
1166 <threshold>Low</threshold>
1167 <!-- Build doesn't fail if problems are found -->
1168 <failOnError>${odlparent.spotbugs.enforce}</failOnError>
1169 <skip>${odlparent.spotbugs.skip}</skip>
1170 <!-- References the excluded rules -->
1171 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1172 <!-- Produces XML report -->
1173 <xmlOutput>true</xmlOutput>
1174 <!-- Configures the directory in which the XML report is created -->
1175 <spotbugsXmlOutputDirectory>${project.build.directory}/spotbugs</spotbugsXmlOutputDirectory>
1179 Ensures that SpotBugs inspects source code when project is compiled.
1182 <id>analyze-compile</id>
1183 <phase>compile</phase>
1191 <groupId>org.codehaus.mojo</groupId>
1192 <artifactId>properties-maven-plugin</artifactId>
1193 <version>1.2.1</version>
1196 <groupId>org.eclipse.m2e</groupId>
1197 <artifactId>lifecycle-mapping</artifactId>
1198 <version>1.0.0</version>
1200 <lifecycleMappingMetadata>
1203 <pluginExecutionFilter>
1204 <groupId>org.apache.felix</groupId>
1205 <artifactId>maven-bundle-plugin</artifactId>
1206 <versionRange>[1.0,)</versionRange>
1208 <goal>manifest</goal>
1210 </pluginExecutionFilter>
1216 <pluginExecutionFilter>
1217 <groupId>org.apache.maven.plugins</groupId>
1218 <artifactId>maven-enforcer-plugin</artifactId>
1219 <versionRange>[1.0.0,)</versionRange>
1221 <goal>enforce</goal>
1223 </pluginExecutionFilter>
1229 <pluginExecutionFilter>
1230 <groupId>org.apache.maven.plugins</groupId>
1231 <artifactId>maven-dependency-plugin</artifactId>
1232 <versionRange>[2.10,)</versionRange>
1236 </pluginExecutionFilter>
1241 <!-- The plugin will eventually be removed, remove this too at that point -->
1243 <pluginExecutionFilter>
1244 <groupId>org.apache.maven.plugins</groupId>
1245 <artifactId>maven-antrun-plugin</artifactId>
1246 <versionRange>[1.8,)</versionRange>
1250 </pluginExecutionFilter>
1256 <pluginExecutionFilter>
1257 <groupId>org.apache.servicemix.tooling</groupId>
1258 <artifactId>depends-maven-plugin</artifactId>
1259 <versionRange>[1.2,)</versionRange>
1261 <goal>generate-depends-file</goal>
1263 </pluginExecutionFilter>
1269 <pluginExecutionFilter>
1270 <groupId>org.jacoco</groupId>
1271 <artifactId>jacoco-maven-plugin</artifactId>
1272 <versionRange>[0.7.0,)</versionRange>
1274 <goal>prepare-agent</goal>
1276 </pluginExecutionFilter>
1283 <pluginExecutionFilter>
1284 <groupId>org.ops4j.pax.exam</groupId>
1285 <artifactId>maven-paxexam-plugin</artifactId>
1286 <versionRange>[1.2.4,)</versionRange>
1288 <goal>generate-depends-file</goal>
1290 </pluginExecutionFilter>
1297 <pluginExecutionFilter>
1298 <groupId>org.basepom.maven</groupId>
1300 duplicate-finder-maven-plugin
1302 <versionRange>[1.2.1,)</versionRange>
1306 </pluginExecutionFilter>
1312 </lifecycleMappingMetadata>
1317 <groupId>org.jacoco</groupId>
1318 <artifactId>jacoco-maven-plugin</artifactId>
1320 <!-- Note: This exclusion list should match <sonar.exclusions>
1323 <exclude>**/gen/**</exclude>
1324 <exclude>**/generated-sources/**</exclude>
1325 <exclude>**/generated-test-sources/**</exclude>
1326 <exclude>**/yang-gen/**</exclude>
1327 <exclude>**/yang-gen-config/**</exclude>
1328 <exclude>**/yang-gen-sal/**</exclude>
1329 <exclude>**/yang-gen-code/**</exclude>
1330 <exclude>**/pax/**</exclude>
1336 <groupId>org.ops4j.pax.exam</groupId>
1337 <artifactId>maven-paxexam-plugin</artifactId>
1338 <version>1.2.4</version>
1341 <!-- When updating this version, consider antl4-runtime above -->
1343 <groupId>org.antlr</groupId>
1344 <artifactId>antlr4-maven-plugin</artifactId>
1345 <version>4.13.1</version>
1352 <artifactId>maven-enforcer-plugin</artifactId>
1355 <id>enforce-banned-dependencies</id>
1357 <goal>enforce</goal>
1361 <bannedDependencies>
1362 <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>
1364 <exclude>org.mockito:mockito-all</exclude>
1365 <exclude>com.google.code.findbugs:annotations</exclude>
1367 </bannedDependencies>
1375 <groupId>org.basepom.maven</groupId>
1376 <artifactId>duplicate-finder-maven-plugin</artifactId>
1379 <id>find-duplicate-classpath-entries</id>
1380 <phase>verify</phase>
1387 <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1388 <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1389 <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1390 <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1391 <printEqualFiles>false</printEqualFiles>
1392 <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1393 as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1394 we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1396 <ignoredResourcePatterns>
1397 <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1398 <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1399 <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1400 <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1401 <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1402 <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1403 <ignoredResourcePattern>.api_description</ignoredResourcePattern>
1404 </ignoredResourcePatterns>
1405 <ignoredDependencies>
1407 <groupId>org.slf4j</groupId>
1408 <artifactId>slf4j-simple</artifactId>
1409 </ignoredDependency>
1411 <groupId>org.opendaylight.odlparent</groupId>
1412 <artifactId>opendaylight-karaf-empty</artifactId>
1413 </ignoredDependency>
1414 </ignoredDependencies>
1418 <artifactId>maven-dependency-plugin</artifactId>
1421 <artifactId>maven-checkstyle-plugin</artifactId>
1424 <artifactId>maven-source-plugin</artifactId>
1427 <artifactId>maven-javadoc-plugin</artifactId>
1430 <groupId>org.gaul</groupId>
1431 <artifactId>modernizer-maven-plugin</artifactId>
1434 <groupId>com.github.spotbugs</groupId>
1435 <artifactId>spotbugs-maven-plugin</artifactId>
1438 <!-- Jacoco / Sonar -->
1440 <groupId>org.jacoco</groupId>
1441 <artifactId>jacoco-maven-plugin</artifactId>
1444 <id>pre-unit-test</id>
1446 <goal>prepare-agent</goal>
1459 <groupId>org.opendaylight.odlparent</groupId>
1460 <artifactId>copy-files-plugin</artifactId>
1461 <version>13.1.0-SNAPSHOT</version>
1464 <phase>prepare-package</phase>
1466 <goal>copy-files</goal>
1470 <glob>README*</glob>
1471 <glob>CONTRIBUTING*</glob>
1472 <glob>PROJECT_INFO.yaml</glob>
1484 <artifactId>maven-checkstyle-plugin</artifactId>
1485 <version>3.3.0</version>
1488 <!-- FIXME: activate this
1490 <artifactId>maven-project-info-reports-plugin</artifactId>
1493 <groupId>org.codehaus.mojo</groupId>
1494 <artifactId>jdepend-maven-plugin</artifactId>
1498 <report>generate-no-fork</report>