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>7.0.0-SNAPSHOT</version>
17 <relativePath>../odlparent-lite</relativePath>
20 <artifactId>odlparent</artifactId>
21 <packaging>pom</packaging>
22 <name>ODL :: odlparent :: ${project.artifactId}</name>
25 <connection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</connection>
26 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/odlparent.git</developerConnection>
28 <url>https://wiki.opendaylight.org/view/ODL_Root_Parent:Main</url>
31 <!-- Variables should only be used where genuinely useful (to avoid
32 repetition); in general versions should be specified in the
33 corresponding dependencyManagement or pluginManagement element, not as
34 a variable. Duplication within odlparent doesn't count if it can be
35 managed using maven-versions-plugin. -->
37 <nexus.repository.release>opendaylight.release</nexus.repository.release>
38 <nexus.repository.snapshot>opendaylight.snapshot</nexus.repository.snapshot>
40 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
43 <!-- Java Versions -->
44 <maven.compiler.release>11</maven.compiler.release>
46 <!-- Used in openflowplugin -->
47 <enforcer.version>3.0.0-M2</enforcer.version>
48 <!-- Used in controller, genius, infrautils, netconf, netvirt, ovsdb, serviceutils -->
49 <karaf.version>4.2.6</karaf.version>
50 <!-- Used in bgpcep, lispflowmapping -->
51 <projectinfo>2.8.1</projectinfo>
53 <!-- Supporting Libraries -->
54 <!-- Only used internally -->
55 <bouncycastle.version>1.64</bouncycastle.version>
57 <!-- JaCoCo configuration, by default tied to Sonar configuration, but can be overridden separately
58 to allow projects to report Sonar values from the entire project. -->
59 <jacoco.destFile>${project.build.directory}/code-coverage/jacoco.exec</jacoco.destFile>
61 <!-- Default Sonar configuration -->
62 <sonar-jacoco-listeners.version>3.8</sonar-jacoco-listeners.version>
63 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
64 <sonar.jacoco.reportPath>${jacoco.destFile}</sonar.jacoco.reportPath>
65 <sonar.jacoco.itReportPath>${project.build.directory}/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
67 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
68 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/generated-test-sources/**,**/yang-gen/**,**/yang-gen-config/**,**/yang-gen-sal/**,**/yang-gen-code/**,**/pax/**</sonar.exclusions>
70 <!-- Opt-in code quality checks -->
71 <pmd.cpd.fail>false</pmd.cpd.fail> <!-- Copy/paste detection -->
72 <duplicate-finder.skip>true</duplicate-finder.skip> <!-- Classpath duplicates -->
74 <!-- Redirect test output to files (overridable) -->
75 <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
77 <!-- Opt-out from maven-checkstyle-plugin failing the build on violations. Defaults
78 to true. Set to 'false' in pom.xml of project which desires to not enforce
79 no reported violations. -->
80 <odlparent.checkstyle.enforce>true</odlparent.checkstyle.enforce>
82 <!-- Opt-in into modernizer-maven-plugin failing the build on violations. Defaults
83 to false. Set to 'true' in pom.xml of project which desires to enforce
84 no reported violations. -->
85 <odlparent.modernizer.enforce>false</odlparent.modernizer.enforce>
87 <!-- Target release for modernizer-maven-plugin. It defaults to '1.8',
88 meaning Java 8, but can be set to any version in pom.xml of project
89 which desires to override it (such as '1.11' for Java 11). -->
90 <odlparent.modernizer.target>1.8</odlparent.modernizer.target>
92 <!-- Opt-out from spotbugs-maven-plugin failing the build on violations. Defaults
93 to true. Set to 'false' in pom.xml of project which desires to not enforce
94 no reported violations. -->
95 <odlparent.spotbugs.enforce>true</odlparent.spotbugs.enforce>
98 <dependencyManagement>
102 <groupId>org.opendaylight.odlparent</groupId>
103 <artifactId>odlparent-artifacts</artifactId>
104 <version>7.0.0-SNAPSHOT</version>
105 <scope>import</scope>
109 <!-- We import Karaf dependencies to ensure we converge by default on the versions used there -->
111 <groupId>org.apache.karaf.features</groupId>
112 <artifactId>framework</artifactId>
113 <version>${karaf.version}</version>
114 <scope>import</scope>
118 <!-- Build tool dependencies (normally not here in <dependencies>,
119 but in a <dependency> in <pluginManagement> but for Checkstyle this
120 is required so that we can share the same version of Checkstyle
121 for both the Maven plugin below as well as for custom Checkstyle
122 check rule projects, such as yangtools' checkstyle-logging) -->
124 <groupId>com.puppycrawl.tools</groupId>
125 <artifactId>checkstyle</artifactId>
126 <!-- This should match the plugin management on maven-checkstyle-plugin below -->
127 <version>8.26</version>
130 <!-- Testing Dependencies -->
131 <!-- JUnit, Hamcrest, Mockito and PowerMock need to be kept in sync -->
133 <groupId>junit</groupId>
134 <artifactId>junit</artifactId>
135 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
136 <version>4.13</version>
140 <groupId>org.skyscreamer</groupId>
141 <artifactId>jsonassert</artifactId>
142 <version>1.5.0</version>
146 <groupId>org.mockito</groupId>
147 <artifactId>mockito-core</artifactId>
148 <version>2.28.2</version>
152 <groupId>org.mockito</groupId>
153 <artifactId>mockito-inline</artifactId>
154 <version>2.28.2</version>
158 <groupId>org.hamcrest</groupId>
159 <artifactId>hamcrest</artifactId>
160 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
161 <version>2.2</version>
165 <groupId>org.hamcrest</groupId>
166 <artifactId>hamcrest-core</artifactId>
167 <version>2.2</version>
171 <groupId>org.hamcrest</groupId>
172 <artifactId>hamcrest-library</artifactId>
173 <version>2.2</version>
177 <groupId>com.google.truth</groupId>
178 <artifactId>truth</artifactId>
179 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
180 <version>1.0.1</version>
184 <groupId>com.google.truth.extensions</groupId>
185 <artifactId>truth-java8-extension</artifactId>
186 <version>1.0.1</version>
190 <groupId>org.awaitility</groupId>
191 <artifactId>awaitility</artifactId>
192 <version>3.0.0</version>
196 <groupId>org.awaitility</groupId>
197 <artifactId>awaitility-proxy</artifactId>
198 <version>3.0.0</version>
202 <groupId>org.powermock</groupId>
203 <artifactId>powermock-api-mockito2</artifactId>
204 <version>2.0.4</version>
208 <groupId>org.powermock</groupId>
209 <artifactId>powermock-api-support</artifactId>
210 <version>2.0.4</version>
214 <groupId>org.powermock</groupId>
215 <artifactId>powermock-core</artifactId>
216 <version>2.0.4</version>
220 <groupId>org.powermock</groupId>
221 <artifactId>powermock-module-junit4</artifactId>
222 <version>2.0.4</version>
226 <groupId>org.powermock</groupId>
227 <artifactId>powermock-reflect</artifactId>
228 <version>2.0.4</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.7.5</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>org.slf4j</groupId>
261 <artifactId>jcl-over-slf4j</artifactId>
262 <version>1.7.28</version>
265 <groupId>org.slf4j</groupId>
266 <artifactId>slf4j-api</artifactId>
267 <version>1.7.28</version>
270 <groupId>org.slf4j</groupId>
271 <artifactId>slf4j-log4j12</artifactId>
272 <version>1.7.28</version>
275 <groupId>org.slf4j</groupId>
276 <artifactId>log4j-over-slf4j</artifactId>
277 <version>1.7.28</version>
280 <groupId>org.slf4j</groupId>
281 <artifactId>slf4j-simple</artifactId>
282 <version>1.7.28</version>
286 <groupId>ch.qos.logback</groupId>
287 <artifactId>logback-core</artifactId>
288 <version>1.2.3</version>
291 <groupId>ch.qos.logback</groupId>
292 <artifactId>logback-classic</artifactId>
293 <version>1.2.3</version>
298 <groupId>org.apache.logging.log4j</groupId>
299 <artifactId>log4j-bom</artifactId>
300 <version>2.13.0</version>
301 <scope>import</scope>
306 <groupId>com.google.guava</groupId>
307 <artifactId>guava</artifactId>
308 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
309 <version>27.1-jre</version>
312 <!-- Do not leak JSR305 onto the classpath by default -->
313 <groupId>com.google.code.findbugs</groupId>
314 <artifactId>jsr305</artifactId>
319 <groupId>com.google.guava</groupId>
320 <artifactId>guava-testlib</artifactId>
321 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
322 <version>27.1-jre</version>
326 <!-- Do not leak JSR305 onto the classpath by default -->
327 <groupId>com.google.code.findbugs</groupId>
328 <artifactId>jsr305</artifactId>
333 <!-- Caffeine plus bridges to Guava and JCache -->
335 <groupId>com.github.ben-manes.caffeine</groupId>
336 <artifactId>caffeine</artifactId>
337 <version>2.7.0</version>
340 <groupId>com.github.ben-manes.caffeine</groupId>
341 <artifactId>guava</artifactId>
342 <version>2.7.0</version>
346 <groupId>commons-beanutils</groupId>
347 <artifactId>commons-beanutils</artifactId>
348 <version>1.9.4</version>
351 <groupId>org.apache.commons</groupId>
352 <artifactId>commons-lang3</artifactId>
353 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
354 <version>3.9</version>
357 <groupId>org.apache.commons</groupId>
358 <artifactId>commons-text</artifactId>
359 <version>1.8</version>
362 <groupId>commons-lang</groupId>
363 <artifactId>commons-lang</artifactId>
364 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
365 <version>2.6</version>
368 <groupId>commons-codec</groupId>
369 <artifactId>commons-codec</artifactId>
370 <version>1.14</version>
372 <!-- Jersey for JAXRS -->
374 <groupId>javax.ws.rs</groupId>
375 <artifactId>javax.ws.rs-api</artifactId>
376 <version>2.0.1</version>
379 <groupId>org.glassfish.jersey</groupId>
380 <artifactId>jersey-bom</artifactId>
381 <version>2.25.1</version>
383 <scope>import</scope>
386 <groupId>org.glassfish</groupId>
387 <artifactId>javax.json</artifactId>
388 <version>1.1.2</version>
392 <groupId>org.checkerframework</groupId>
393 <artifactId>checker-qual</artifactId>
394 <version>2.5.8</version>
397 <groupId>com.google.errorprone</groupId>
398 <artifactId>error_prone_annotations</artifactId>
399 <version>2.3.3</version>
403 <groupId>javax.activation</groupId>
404 <artifactId>activation</artifactId>
405 <version>1.1.1</version>
408 <groupId>javax.annotation</groupId>
409 <artifactId>javax.annotation-api</artifactId>
410 <version>1.3</version>
411 <optional>true</optional>
414 <groupId>xml-apis</groupId>
415 <artifactId>xml-apis</artifactId>
416 <version>1.4.01</version>
420 <groupId>org.apache.shiro</groupId>
421 <artifactId>shiro-core</artifactId>
422 <version>1.3.2</version>
425 <groupId>org.apache.shiro</groupId>
426 <artifactId>shiro-web</artifactId>
427 <version>1.3.2</version>
430 <!-- Plugin integration -->
432 <groupId>net.java.dev.stax-utils</groupId>
433 <artifactId>stax-utils</artifactId>
434 <version>20070216</version>
437 <groupId>org.sonatype.plexus</groupId>
438 <artifactId>plexus-build-api</artifactId>
439 <version>0.0.7</version>
442 <groupId>org.codehaus.plexus</groupId>
443 <artifactId>plexus-slf4j-logging</artifactId>
444 <version>1.1</version>
447 <!-- These three need to be consistent:
448 jackson-2.9.10 needs woodstox-5.3.x
449 woodstox-5.3 needs stax2-api-4.2.x
452 <groupId>org.codehaus.woodstox</groupId>
453 <artifactId>stax2-api</artifactId>
454 <version>4.2</version>
457 <groupId>com.fasterxml.woodstox</groupId>
458 <artifactId>woodstox-core</artifactId>
459 <version>5.3.0</version>
462 <groupId>com.fasterxml.jackson</groupId>
463 <artifactId>jackson-bom</artifactId>
464 <version>2.9.10.20200103</version>
465 <scope>import</scope>
470 <groupId>com.github.spotbugs</groupId>
471 <artifactId>spotbugs-annotations</artifactId>
472 <version>3.1.12</version>
473 <scope>provided</scope>
474 <!-- Contains retention=RUNTIME annotations, which are not really needed -->
475 <optional>true</optional>
478 <groupId>com.google.code.findbugs</groupId>
479 <artifactId>jsr305</artifactId>
485 <groupId>org.eclipse.jdt</groupId>
486 <artifactId>org.eclipse.jdt.annotation</artifactId>
487 <version>2.2.100</version>
488 <scope>provided</scope>
491 <groupId>com.google.code.gson</groupId>
492 <artifactId>gson</artifactId>
493 <version>2.8.5</version>
496 <groupId>commons-fileupload</groupId>
497 <artifactId>commons-fileupload</artifactId>
498 <version>1.4</version>
501 <groupId>commons-io</groupId>
502 <artifactId>commons-io</artifactId>
503 <version>2.6</version>
506 <groupId>commons-net</groupId>
507 <artifactId>commons-net</artifactId>
508 <version>3.6</version>
513 <groupId>io.netty</groupId>
514 <artifactId>netty-all</artifactId>
515 <!-- If these are updated, the version in features.xml needs to be changed too -->
516 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
517 <version>4.1.45.Final</version>
520 <groupId>io.netty</groupId>
521 <artifactId>netty-buffer</artifactId>
522 <version>4.1.45.Final</version>
525 <groupId>io.netty</groupId>
526 <artifactId>netty-codec</artifactId>
527 <version>4.1.45.Final</version>
530 <groupId>io.netty</groupId>
531 <artifactId>netty-codec-http</artifactId>
532 <version>4.1.45.Final</version>
535 <groupId>io.netty</groupId>
536 <artifactId>netty-common</artifactId>
537 <version>4.1.45.Final</version>
540 <groupId>io.netty</groupId>
541 <artifactId>netty-handler</artifactId>
542 <version>4.1.45.Final</version>
545 <groupId>io.netty</groupId>
546 <artifactId>netty-transport</artifactId>
547 <version>4.1.45.Final</version>
549 <!-- Here we need to define all available native epoll implementations; we can't limit ourselves to the build
550 platform and we can't require the build platform to have an implementation (e.g. OS X) -->
552 <groupId>io.netty</groupId>
553 <artifactId>netty-transport-native-epoll</artifactId>
554 <classifier>linux-x86_64</classifier>
555 <version>4.1.45.Final</version>
558 <groupId>javax.ws.rs</groupId>
559 <artifactId>jsr311-api</artifactId>
560 <version>1.1.1</version>
563 <groupId>javax.servlet</groupId>
564 <artifactId>javax.servlet-api</artifactId>
565 <version>3.1.0</version>
568 <groupId>org.apache.felix</groupId>
569 <artifactId>org.apache.felix.dependencymanager</artifactId>
570 <version>4.4.1</version>
573 <groupId>org.apache.felix</groupId>
574 <artifactId>org.apache.felix.dependencymanager.shell</artifactId>
575 <version>4.0.6</version>
578 <groupId>org.apache.felix</groupId>
579 <artifactId>org.apache.felix.metatype</artifactId>
580 <version>1.2.2</version>
583 <groupId>org.bouncycastle</groupId>
584 <artifactId>bcpkix-jdk15on</artifactId>
585 <version>${bouncycastle.version}</version>
588 <groupId>org.bouncycastle</groupId>
589 <artifactId>bcprov-jdk15on</artifactId>
590 <version>${bouncycastle.version}</version>
593 <groupId>org.bouncycastle</groupId>
594 <artifactId>bcprov-ext-jdk15on</artifactId>
595 <version>${bouncycastle.version}</version>
599 <groupId>com.webcohesion.enunciate</groupId>
600 <artifactId>enunciate-core-annotations</artifactId>
601 <!-- This must be aligned with the version of enunciate-maven-plugin specified below -->
602 <version>2.11.1</version>
606 <groupId>org.codehaus.jettison</groupId>
607 <artifactId>jettison</artifactId>
608 <version>1.4.0</version>
610 <!-- To upgrade org.eclipse.persistence dependencies to 2.6.0+, we need to ensure all downstreams consumers
611 pull in javax.validation first:
612 http://stackoverflow.com/questions/28568154/how-to-get-eclipselink-2-6-0-m3-working-with-jersey-1-18-3 -->
614 <groupId>org.eclipse.persistence</groupId>
615 <artifactId>org.eclipse.persistence.antlr</artifactId>
616 <version>2.7.3</version>
619 <groupId>org.eclipse.persistence</groupId>
620 <artifactId>org.eclipse.persistence.core</artifactId>
621 <version>2.7.3</version>
624 <groupId>org.eclipse.persistence</groupId>
625 <artifactId>org.eclipse.persistence.moxy</artifactId>
626 <version>2.7.3</version>
629 <groupId>javax.validation</groupId>
630 <artifactId>validation-api</artifactId>
631 <version>1.1.0.Final</version>
634 <groupId>org.javassist</groupId>
635 <artifactId>javassist</artifactId>
636 <version>3.26.0-GA</version>
639 <groupId>org.jboss.spec.javax.transaction</groupId>
640 <artifactId>jboss-transaction-api_1.1_spec</artifactId>
641 <version>1.0.1.Final</version>
644 <groupId>org.jolokia</groupId>
645 <artifactId>jolokia-osgi</artifactId>
646 <version>1.6.2</version>
649 <groupId>org.osgi</groupId>
650 <artifactId>osgi.cmpn</artifactId>
651 <version>6.0.0</version>
652 <scope>provided</scope>
655 <groupId>org.osgi</groupId>
656 <artifactId>org.osgi.core</artifactId>
657 <version>6.0.0</version>
658 <scope>provided</scope>
661 <groupId>org.osgi</groupId>
662 <!-- for https://bugs.opendaylight.org/show_bug.cgi?id=4290 -->
663 <artifactId>org.osgi.service.event</artifactId>
664 <version>1.3.1</version>
667 <groupId>org.apache.aries.quiesce</groupId>
668 <artifactId>org.apache.aries.quiesce.api</artifactId>
669 <version>1.0.0</version>
672 <groupId>org.ow2.asm</groupId>
673 <artifactId>asm</artifactId>
674 <version>7.0</version>
677 <!-- Configuration library -->
678 <!-- This needs to be kept in sync with the version used by akka -->
680 <groupId>com.typesafe</groupId>
681 <artifactId>config</artifactId>
682 <version>1.3.3</version>
685 <!-- Reactive Streams, used by Akka -->
687 <groupId>org.reactivestreams</groupId>
688 <artifactId>reactive-streams</artifactId>
689 <version>1.0.3</version>
694 <groupId>com.typesafe</groupId>
695 <artifactId>ssl-config-core_2.12</artifactId>
696 <version>0.3.8</version>
699 <groupId>com.typesafe.akka</groupId>
700 <artifactId>akka-actor_2.12</artifactId>
701 <!-- When bumping this version, remember to also change the JavaDoc link in odlparent-lite -->
702 <version>2.5.29</version>
705 <groupId>com.typesafe.akka</groupId>
706 <artifactId>akka-cluster_2.12</artifactId>
707 <version>2.5.29</version>
710 <groupId>com.typesafe.akka</groupId>
711 <artifactId>akka-osgi_2.12</artifactId>
712 <version>2.5.29</version>
715 <groupId>com.typesafe.akka</groupId>
716 <artifactId>akka-persistence_2.12</artifactId>
717 <version>2.5.29</version>
720 <groupId>com.typesafe.akka</groupId>
721 <artifactId>akka-persistence-tck_2.12</artifactId>
722 <version>2.5.29</version>
726 <groupId>com.typesafe.akka</groupId>
727 <artifactId>akka-protobuf_2.12</artifactId>
728 <version>2.5.29</version>
731 <groupId>com.typesafe.akka</groupId>
732 <artifactId>akka-remote_2.12</artifactId>
733 <version>2.5.29</version>
736 <groupId>com.typesafe.akka</groupId>
737 <artifactId>akka-slf4j_2.12</artifactId>
738 <version>2.5.29</version>
741 <groupId>com.typesafe.akka</groupId>
742 <artifactId>akka-stream_2.12</artifactId>
743 <version>2.5.29</version>
746 <groupId>com.typesafe.akka</groupId>
747 <artifactId>akka-testkit_2.12</artifactId>
748 <version>2.5.29</version>
752 <groupId>org.scala-lang.modules</groupId>
753 <artifactId>scala-java8-compat_2.12</artifactId>
754 <version>0.8.0</version>
757 <groupId>org.scala-lang.modules</groupId>
758 <artifactId>scala-parser-combinators_2.12</artifactId>
759 <version>1.1.2</version>
762 <groupId>org.uncommons.maths</groupId>
763 <artifactId>uncommons-maths</artifactId>
764 <version>1.2.2a</version>
767 <!-- Aeron, required by Akka -->
769 <groupId>org.agrona</groupId>
770 <artifactId>agrona</artifactId>
771 <version>0.9.33</version>
774 <groupId>io.aeron</groupId>
775 <artifactId>aeron-client</artifactId>
776 <version>1.15.3</version>
779 <groupId>io.aeron</groupId>
780 <artifactId>aeron-driver</artifactId>
781 <version>1.15.3</version>
786 <groupId>org.scala-lang</groupId>
787 <artifactId>scala-library</artifactId>
788 <version>2.12.10</version>
791 <groupId>org.scala-lang</groupId>
792 <artifactId>scala-reflect</artifactId>
793 <version>2.12.10</version>
796 <!-- LMAX Disruptor -->
798 <groupId>com.lmax</groupId>
799 <artifactId>disruptor</artifactId>
800 <version>3.4.2</version>
803 <!-- Add Pax Exam -->
805 <groupId>org.ops4j.pax.exam</groupId>
806 <artifactId>pax-exam</artifactId>
807 <version>4.13.1</version>
811 <groupId>org.ops4j.pax.exam</groupId>
812 <artifactId>pax-exam-container-forked</artifactId>
813 <version>4.13.1</version>
817 <groupId>org.ops4j.pax.exam</groupId>
818 <artifactId>pax-exam-container-karaf</artifactId>
819 <version>4.13.1</version>
823 <groupId>org.ops4j.pax.exam</groupId>
824 <artifactId>pax-exam-container-native</artifactId>
825 <version>4.13.1</version>
829 <groupId>org.ops4j.pax.exam</groupId>
830 <artifactId>pax-exam-extender-service</artifactId>
831 <version>4.13.1</version>
835 <groupId>org.ops4j.pax.exam</groupId>
836 <artifactId>pax-exam-inject</artifactId>
837 <version>4.13.1</version>
841 <groupId>org.ops4j.pax.exam</groupId>
842 <artifactId>pax-exam-invoker-junit</artifactId>
843 <version>4.13.1</version>
847 <groupId>org.ops4j.pax.exam</groupId>
848 <artifactId>pax-exam-features</artifactId>
849 <version>4.13.1</version>
854 <groupId>org.ops4j.pax.exam</groupId>
855 <artifactId>pax-exam-junit4</artifactId>
856 <version>4.13.1</version>
860 <groupId>org.ops4j.pax.exam</groupId>
861 <artifactId>pax-exam-link-mvn</artifactId>
862 <version>4.13.1</version>
866 <groupId>org.ops4j.pax.exam</groupId>
867 <artifactId>pax-exam-link-assembly</artifactId>
868 <version>4.13.1</version>
873 <groupId>org.ops4j.pax.url</groupId>
874 <artifactId>pax-url-link</artifactId>
875 <version>2.5.4</version>
879 <groupId>org.ops4j.pax.url</groupId>
880 <artifactId>pax-url-aether</artifactId>
881 <version>2.5.4</version>
885 <groupId>org.ops4j.pax.url</groupId>
886 <artifactId>pax-url-wrap</artifactId>
887 <version>2.5.4</version>
891 <groupId>org.ops4j.pax.web</groupId>
892 <artifactId>pax-web-api</artifactId>
893 <!-- Note: keep this version synchronized with karaf -->
894 <version>7.2.10</version>
898 <groupId>org.springframework.osgi</groupId>
899 <artifactId>spring-osgi-mock</artifactId>
900 <version>1.2.1</version>
905 <groupId>org.xmlunit</groupId>
906 <artifactId>xmlunit-core</artifactId>
907 <version>2.6.3</version>
911 <groupId>org.xmlunit</groupId>
912 <artifactId>xmlunit-assertj</artifactId>
913 <version>2.6.3</version>
917 <groupId>org.xmlunit</groupId>
918 <artifactId>xmlunit-matchers</artifactId>
919 <version>2.6.3</version>
922 <!-- FIXME: remove this once we have migrated over -->
924 <groupId>org.xmlunit</groupId>
925 <artifactId>xmlunit-legacy</artifactId>
926 <version>2.6.3</version>
930 <!-- Annotations for modernizer-maven-plugin -->
932 <groupId>org.gaul</groupId>
933 <artifactId>modernizer-maven-annotations</artifactId>
934 <!-- This should match the plugin version below -->
935 <version>2.0.0</version>
936 <scope>provided</scope>
940 <groupId>org.eclipse.jetty</groupId>
941 <artifactId>jetty-bom</artifactId>
942 <version>9.4.18.v20190429</version>
943 <scope>import</scope>
948 <groupId>com.h2database</groupId>
949 <artifactId>h2</artifactId>
950 <version>1.4.200</version>
953 <!-- Xtend http://xtend-lang.org
954 NOTE: When you increase the version here,
955 then remember to also increase it for the
956 xtend-maven-plugin below! (We don't want to
957 use a Maven property, in order not to "leak" that.)
960 <groupId>org.eclipse.xtend</groupId>
961 <artifactId>org.eclipse.xtend.lib</artifactId>
962 <version>2.19.0</version>
965 <groupId>org.eclipse.xtend</groupId>
966 <artifactId>org.eclipse.xtend.lib.macro</artifactId>
967 <version>2.19.0</version>
970 <groupId>org.eclipse.xtext</groupId>
971 <artifactId>org.eclipse.xtext.xbase.lib</artifactId>
972 <version>2.19.0</version>
977 <groupId>javax.inject</groupId>
978 <artifactId>javax.inject</artifactId>
980 <optional>true</optional>
983 <!-- jung, a graph library -->
985 <groupId>net.sf.jung</groupId>
986 <artifactId>jung-api</artifactId>
987 <version>2.1.1</version>
990 <groupId>net.sf.jung</groupId>
991 <artifactId>jung-algorithms</artifactId>
992 <version>2.1.1</version>
995 <groupId>net.sf.jung</groupId>
996 <artifactId>jung-graph-impl</artifactId>
997 <version>2.1.1</version>
1000 <!-- Karaf console support -->
1002 <groupId>org.apache.karaf.shell</groupId>
1003 <artifactId>org.apache.karaf.shell.core</artifactId>
1004 <version>${karaf.version}</version>
1005 <scope>provided</scope>
1008 <groupId>org.apache.karaf.shell</groupId>
1009 <artifactId>org.apache.karaf.shell.console</artifactId>
1010 <version>${karaf.version}</version>
1011 <scope>provided</scope>
1014 <!-- ThreeTen-Extra, date/time complements -->
1016 <groupId>org.threeten</groupId>
1017 <artifactId>threeten-extra</artifactId>
1018 <version>1.5.0</version>
1021 <!-- When updating this version, consider antl4-maven-plugin below -->
1023 <groupId>org.antlr</groupId>
1024 <artifactId>antlr4-runtime</artifactId>
1025 <version>4.7.2</version>
1027 <!-- Aries' Blueprint version should be kept in sync to the version actually
1028 used by our ${karaf[4].version} ... please bump this when increasing that.
1029 TODO Find a smarter way to inherit this from a (TBD..) Karaf artifacts BOM! -->
1031 <groupId>org.apache.aries.blueprint</groupId>
1032 <artifactId>org.apache.aries.blueprint.core</artifactId>
1033 <version>1.10.2</version>
1036 <groupId>org.apache.aries.blueprint</groupId>
1037 <artifactId>blueprint-maven-plugin-annotation</artifactId>
1038 <version>1.3.0</version>
1039 <optional>true</optional>
1042 <!-- Apache SSHD with netty -->
1044 <groupId>org.apache.sshd</groupId>
1045 <artifactId>sshd-netty</artifactId>
1046 <version>2.3.0</version>
1049 <!-- We provide sshd-osgi instead -->
1050 <groupId>org.apache.sshd</groupId>
1051 <artifactId>sshd-core</artifactId>
1056 <groupId>org.apache.sshd</groupId>
1057 <artifactId>sshd-osgi</artifactId>
1058 <version>2.3.0</version>
1061 <groupId>net.i2p.crypto</groupId>
1062 <artifactId>eddsa</artifactId>
1063 <version>0.3.0</version>
1066 <!-- TrieMap library -->
1068 <groupId>tech.pantheon.triemap</groupId>
1069 <artifactId>bom</artifactId>
1070 <version>1.1.0</version>
1071 <scope>import</scope>
1075 <!-- Dropwizard metrics -->
1077 <groupId>io.dropwizard.metrics</groupId>
1078 <artifactId>metrics-bom</artifactId>
1079 <version>4.0.5</version>
1080 <scope>import</scope>
1084 <!-- JAXB for Java 11+, match this with Karaf -->
1086 <groupId>javax.xml.bind</groupId>
1087 <artifactId>jaxb-api</artifactId>
1088 <version>2.3.0</version>
1091 <groupId>org.glassfish.jaxb</groupId>
1092 <artifactId>jaxb-runtime</artifactId>
1093 <version>2.3.1</version>
1096 </dependencyManagement>
1100 We expect slf4j-api to be provided by the platform.
1101 Karaf provides it, other containers need to provide it themselves.
1104 <groupId>org.slf4j</groupId>
1105 <artifactId>slf4j-api</artifactId>
1106 <scope>provided</scope>
1110 Enable useful code quality annotations everywhere. Since these annotations
1111 are not required at runtime.
1114 <groupId>org.eclipse.jdt</groupId>
1115 <artifactId>org.eclipse.jdt.annotation</artifactId>
1116 <scope>provided</scope>
1119 <groupId>com.github.spotbugs</groupId>
1120 <artifactId>spotbugs-annotations</artifactId>
1121 <scope>provided</scope>
1122 <optional>true</optional>
1125 <groupId>org.gaul</groupId>
1126 <artifactId>modernizer-maven-annotations</artifactId>
1127 <scope>provided</scope>
1131 Testing output should be routed through slf4j-simple.
1134 <groupId>org.slf4j</groupId>
1135 <artifactId>slf4j-simple</artifactId>
1140 Unit tests can use JUnit + Mockito + Hamcrest by default.
1143 <groupId>org.hamcrest</groupId>
1144 <artifactId>hamcrest</artifactId>
1148 <!-- This dependency needs to come before junit until we upgrade to JUnit 5. -->
1149 <groupId>org.hamcrest</groupId>
1150 <artifactId>hamcrest-library</artifactId>
1154 <groupId>junit</groupId>
1155 <artifactId>junit</artifactId>
1159 <groupId>org.mockito</groupId>
1160 <artifactId>mockito-core</artifactId>
1168 <!-- Official maven plugins, alpha-sorted by artifactId.
1169 We do not need to specify the groupId. -->
1171 <artifactId>maven-checkstyle-plugin</artifactId>
1172 <version>3.1.0</version>
1175 <groupId>com.puppycrawl.tools</groupId>
1176 <artifactId>checkstyle</artifactId>
1177 <!-- This should match the dependency management on com.puppycrawl.tools:checkstyle above -->
1178 <version>8.26</version>
1181 <groupId>org.opendaylight.odlparent</groupId>
1182 <artifactId>checkstyle</artifactId>
1183 <version>7.0.0-SNAPSHOT</version>
1186 <groupId>com.github.sevntu-checkstyle</groupId>
1187 <artifactId>sevntu-checks</artifactId>
1188 <version>1.36.0</version>
1192 <configLocation>odl_checks.xml</configLocation>
1193 <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
1194 <!-- <sourceDirectories> are needed so that checkstyle ignores the
1195 generated sources directory -->
1197 <directory>${project.build.sourceDirectory}</directory>
1198 </sourceDirectories>
1199 <includeResources>true</includeResources>
1200 <includeTestSourceDirectory>true</includeTestSourceDirectory>
1201 <includeTestResources>true</includeTestResources>
1202 <includes>**\/*.java, **\/*.xtend</includes>
1204 org/opendaylight/yang/gen/**,
1205 **/protobuff/messages/**,
1206 **/thrift/gen/*.java,
1209 <failsOnError>false</failsOnError>
1210 <consoleOutput>true</consoleOutput>
1214 <id>check-license</id>
1218 <phase>process-sources</phase>
1220 <configLocation>check-license.xml</configLocation>
1221 <headerLocation>EPL-LICENSE.regexp.txt</headerLocation>
1222 <includeResources>false</includeResources>
1223 <includeTestSourceDirectory>true</includeTestSourceDirectory>
1224 <includeTestResources>false</includeTestResources>
1226 <directory>${project.build.sourceDirectory}</directory>
1227 </sourceDirectories>
1229 org/opendaylight/yang/gen/**,
1230 **/protobuff/messages/**,
1231 **/thrift/gen/*.java
1233 <failsOnError>false</failsOnError>
1234 <consoleOutput>true</consoleOutput>
1241 <phase>process-sources</phase>
1243 <failOnViolation>${odlparent.checkstyle.enforce}</failOnViolation>
1244 <skip>${odlparent.checkstyle.skip}</skip>
1245 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
1251 <groupId>org.apache.maven.plugins</groupId>
1252 <artifactId>maven-pmd-plugin</artifactId>
1253 <version>3.12.0</version>
1257 <phase>process-sources</phase>
1259 <goal>cpd-check</goal>
1262 <failOnViolation>${pmd.cpd.fail}</failOnViolation>
1263 <!-- 100 "tokens" here correspond to approx. 5-10 lines of code -->
1264 <minimumTokens>101</minimumTokens>
1265 <printFailingErrors>true</printFailingErrors>
1267 <!-- FIXME: this should be a wildcard, but PMD is brain-damaged and does
1268 not understand path prefixes nor wildcards. Details are available
1269 at http://stackoverflow.com/questions/15647771/pmd-exclude-not-working
1270 Hence people introducing new generated sources have to include
1273 <excludeRoot>${project.build.directory}/generated-sources</excludeRoot>
1274 <excludeRoot>${project.build.directory}/generated-test-sources</excludeRoot>
1276 <linkXRef>false</linkXRef>
1282 <artifactId>maven-compiler-plugin</artifactId>
1283 <version>3.8.1</version>
1285 <showWarnings>true</showWarnings>
1287 <arg>-parameters</arg>
1288 <arg>-Xlint:deprecation</arg>
1289 <arg>-Xlint:unchecked</arg>
1291 <annotationProcessorPaths>
1293 <groupId>org.immutables</groupId>
1294 <artifactId>value</artifactId>
1295 <!-- Keep this version in sync with dependency declaration above -->
1296 <version>2.7.5</version>
1299 <groupId>org.kohsuke.metainf-services</groupId>
1300 <artifactId>metainf-services</artifactId>
1301 <!-- Keep this version in sync with dependency declaration above -->
1302 <version>1.8</version>
1304 </annotationProcessorPaths>
1308 <artifactId>maven-enforcer-plugin</artifactId>
1309 <version>${enforcer.version}</version>
1312 <artifactId>maven-failsafe-plugin</artifactId>
1313 <version>2.22.2</version>
1316 <artifactId>maven-invoker-plugin</artifactId>
1317 <version>3.2.0</version>
1320 <artifactId>maven-dependency-plugin</artifactId>
1323 <id>unpack-license</id>
1324 <phase>generate-resources</phase>
1331 <groupId>org.opendaylight.odlparent</groupId>
1332 <artifactId>odl-license</artifactId>
1333 <version>7.0.0-SNAPSHOT</version>
1334 <type>license</type>
1335 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
1336 <destFileName>LICENSE</destFileName>
1337 <overWrite>false</overWrite>
1340 <silent>true</silent>
1347 <artifactId>maven-plugin-plugin</artifactId>
1348 <version>3.6.0</version>
1352 <artifactId>maven-remote-resources-plugin</artifactId>
1353 <version>1.6.0</version>
1356 <artifactId>maven-resources-plugin</artifactId>
1357 <version>3.1.0</version>
1360 <artifactId>maven-shade-plugin</artifactId>
1361 <version>3.2.1</version>
1364 <artifactId>maven-source-plugin</artifactId>
1365 <version>3.2.1</version>
1368 <id>attach-sources</id>
1369 <phase>verify</phase>
1371 <goal>jar-no-fork</goal>
1377 <artifactId>maven-surefire-plugin</artifactId>
1378 <version>2.22.2</version>
1380 <redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
1381 <trimStackTrace>false</trimStackTrace>
1385 <!-- Third-party plugins, grouped by groupId, alpha-sorted by artifactId -->
1387 <!-- Support Blueprint XML construction using annotations -->
1388 <groupId>org.apache.aries.blueprint</groupId>
1389 <artifactId>blueprint-maven-plugin</artifactId>
1390 <version>1.10.0</version>
1391 <!-- TODO remove dependencies when we bump from 1.10.0 to 1.11.0 (or 1.10.1);
1392 see https://jira.opendaylight.org/browse/ODLPARENT-167 & https://jira.apache.org/jira/browse/ARIES-1826 -->
1395 <groupId>org.apache.xbean</groupId>
1396 <artifactId>xbean-finder-shaded</artifactId>
1397 <version>4.14</version>
1402 <scanPath>${project.groupId}</scanPath>
1408 <goal>blueprint-generate</goal>
1415 <groupId>org.apache.felix</groupId>
1416 <artifactId>maven-bundle-plugin</artifactId>
1417 <version>4.2.1</version>
1418 <extensions>true</extensions>
1421 <!-- Note the '-' for git.properties.. this is required because git-commit-id-plugin has <failOnNoGitDirectory>false,
1422 so that the build doesn't fail if there is no .../.git/ - so git.properties is effectively optional;
1423 and so the '-' there is needed to make the maven-bundle-plugin if that resource is not present. -->
1424 <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>
1426 <!-- Based on https://dev.eclipse.org/mhonarc/lists/equinox-dev/msg01088.html we do want
1427 to generate Import-Service and Export-Service headers. -->
1428 <_removeheaders>Import-Service,Export-Service</_removeheaders>
1434 <groupId>org.apache.karaf.tooling</groupId>
1435 <artifactId>karaf-maven-plugin</artifactId>
1436 <version>${karaf.version}</version>
1440 <groupId>org.apache.servicemix.tooling</groupId>
1441 <artifactId>depends-maven-plugin</artifactId>
1442 <version>1.4.0</version>
1445 <id>generate-depends-file</id>
1447 <goal>generate-depends-file</goal>
1454 <groupId>com.webcohesion.enunciate</groupId>
1455 <artifactId>enunciate-maven-plugin</artifactId>
1456 <!-- This must be aligned with the version of enunciate-core-annotations specified above -->
1457 <version>2.11.1</version>
1461 <groupId>org.gaul</groupId>
1462 <artifactId>modernizer-maven-plugin</artifactId>
1463 <version>2.0.0</version>
1465 <javaVersion>${odlparent.modernizer.target}</javaVersion>
1466 <failOnViolations>${odlparent.modernizer.enforce}</failOnViolations>
1467 <skip>${odlparent.modernizer.skip}</skip>
1473 <phase>verify</phase>
1475 <goal>modernizer</goal>
1482 <groupId>com.github.spotbugs</groupId>
1483 <artifactId>spotbugs-maven-plugin</artifactId>
1484 <version>3.1.12.2</version>
1487 <groupId>com.github.spotbugs</groupId>
1488 <artifactId>spotbugs</artifactId>
1489 <version>3.1.12</version>
1492 <groupId>org.opendaylight.odlparent</groupId>
1493 <artifactId>spotbugs</artifactId>
1494 <version>7.0.0-SNAPSHOT</version>
1497 <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 -->
1498 <groupId>org.slf4j</groupId>
1499 <artifactId>slf4j-simple</artifactId>
1500 <version>1.8.0-beta2</version>
1506 <groupId>jp.skypencil.findbugs.slf4j</groupId>
1507 <artifactId>bug-pattern</artifactId>
1508 <!-- NOTE: This version MUST be kept in sync with the same version in the old findbugs-maven-plugin above, if possible -->
1509 <version>1.4.2</version>
1513 Enables analysis which takes more memory but finds more bugs.
1514 If you run out of memory, changes the value of the effort element
1517 <effort>Max</effort>
1518 <!-- Reports all bugs (other values are medium and max) -->
1519 <threshold>Low</threshold>
1520 <!-- Build doesn't fail if problems are found -->
1521 <failOnError>${odlparent.spotbugs.enforce}</failOnError>
1522 <skip>${odlparent.spotbugs.skip}</skip>
1523 <!-- References the excluded rules -->
1524 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
1525 <!-- Produces XML report -->
1526 <xmlOutput>true</xmlOutput>
1527 <!-- Configures the directory in which the XML report is created -->
1528 <findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1532 Ensures that SpotBugs inspects source code when project is compiled.
1535 <id>analyze-compile</id>
1536 <phase>compile</phase>
1544 <groupId>org.codehaus.mojo</groupId>
1545 <artifactId>properties-maven-plugin</artifactId>
1546 <version>1.0.0</version>
1549 <groupId>org.eclipse.xtend</groupId>
1550 <artifactId>xtend-maven-plugin</artifactId>
1551 <!-- NOTE: This version MUST be kept in sync with the Xtend version in <dependencyManagement> -->
1552 <version>2.19.0</version>
1556 <goal>compile</goal>
1557 <goal>testCompile</goal>
1560 <outputDirectory>${project.build.directory}/generated-sources/xtend</outputDirectory>
1561 <testOutputDirectory>${project.build.directory}/generated-test-sources/xtend</testOutputDirectory>
1567 <groupId>org.eclipse.m2e</groupId>
1568 <artifactId>lifecycle-mapping</artifactId>
1569 <version>1.0.0</version>
1571 <lifecycleMappingMetadata>
1574 <pluginExecutionFilter>
1575 <groupId>org.apache.felix</groupId>
1576 <artifactId>maven-bundle-plugin</artifactId>
1577 <versionRange>[1.0,)</versionRange>
1579 <goal>manifest</goal>
1581 </pluginExecutionFilter>
1587 <pluginExecutionFilter>
1588 <groupId>org.apache.maven.plugins</groupId>
1589 <artifactId>maven-enforcer-plugin</artifactId>
1590 <versionRange>[1.0.0,)</versionRange>
1592 <goal>enforce</goal>
1594 </pluginExecutionFilter>
1600 <pluginExecutionFilter>
1601 <groupId>org.apache.maven.plugins</groupId>
1602 <artifactId>maven-dependency-plugin</artifactId>
1603 <versionRange>[2.10,)</versionRange>
1607 </pluginExecutionFilter>
1613 <pluginExecutionFilter>
1614 <groupId>org.apache.maven.plugins</groupId>
1615 <artifactId>maven-pmd-plugin</artifactId>
1616 <versionRange>[3.6,)</versionRange>
1618 <goal>cpd-check</goal>
1620 </pluginExecutionFilter>
1625 <!-- The plugin will eventually be removed, remove this too at that point -->
1627 <pluginExecutionFilter>
1628 <groupId>org.apache.maven.plugins</groupId>
1629 <artifactId>maven-antrun-plugin</artifactId>
1630 <versionRange>[1.8,)</versionRange>
1634 </pluginExecutionFilter>
1640 <pluginExecutionFilter>
1641 <groupId>org.apache.servicemix.tooling</groupId>
1642 <artifactId>depends-maven-plugin</artifactId>
1643 <versionRange>[1.2,)</versionRange>
1645 <goal>generate-depends-file</goal>
1647 </pluginExecutionFilter>
1653 <pluginExecutionFilter>
1654 <groupId>org.jacoco</groupId>
1655 <artifactId>jacoco-maven-plugin</artifactId>
1656 <versionRange>[0.7.0,)</versionRange>
1658 <goal>prepare-agent</goal>
1660 </pluginExecutionFilter>
1667 <pluginExecutionFilter>
1668 <groupId>org.ops4j.pax.exam</groupId>
1669 <artifactId>maven-paxexam-plugin</artifactId>
1670 <versionRange>[1.2.4,)</versionRange>
1672 <goal>generate-depends-file</goal>
1674 </pluginExecutionFilter>
1681 <pluginExecutionFilter>
1682 <groupId>org.basepom.maven</groupId>
1684 duplicate-finder-maven-plugin
1686 <versionRange>[1.2.1,)</versionRange>
1690 </pluginExecutionFilter>
1696 </lifecycleMappingMetadata>
1701 <groupId>org.jacoco</groupId>
1702 <artifactId>jacoco-maven-plugin</artifactId>
1704 <!-- Note: This exclusion list should match <sonar.exclusions>
1707 <exclude>**/gen/**</exclude>
1708 <exclude>**/generated-sources/**</exclude>
1709 <exclude>**/generated-test-sources/**</exclude>
1710 <exclude>**/yang-gen/**</exclude>
1711 <exclude>**/yang-gen-config/**</exclude>
1712 <exclude>**/yang-gen-sal/**</exclude>
1713 <exclude>**/yang-gen-code/**</exclude>
1714 <exclude>**/pax/**</exclude>
1720 <groupId>org.ops4j.pax.exam</groupId>
1721 <artifactId>maven-paxexam-plugin</artifactId>
1722 <version>1.2.4</version>
1725 <!-- When updating this version, consider antl4-runtime above -->
1727 <groupId>org.antlr</groupId>
1728 <artifactId>antlr4-maven-plugin</artifactId>
1729 <version>4.7.2</version>
1736 <artifactId>maven-enforcer-plugin</artifactId>
1739 <id>enforce-banned-dependencies</id>
1741 <goal>enforce</goal>
1745 <bannedDependencies>
1746 <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>
1748 <exclude>org.mockito:mockito-all</exclude>
1749 <exclude>com.google.code.findbugs:annotations</exclude>
1751 </bannedDependencies>
1759 <groupId>org.basepom.maven</groupId>
1760 <artifactId>duplicate-finder-maven-plugin</artifactId>
1761 <version>1.3.0</version>
1764 <id>find-duplicate-classpath-entries</id>
1765 <phase>verify</phase>
1772 <!-- https://github.com/basepom/duplicate-finder-maven-plugin/wiki -->
1773 <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
1774 <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
1775 <failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
1776 <printEqualFiles>false</printEqualFiles>
1778 <!-- In addition to https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Default%20ignored%20elements,
1779 as explained on https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Ignoring%20Dependencies%20and%20Resources,
1780 we use resources not dependencies (see https://github.com/basepom/duplicate-finder-maven-plugin/wiki/Classpath%20Exceptions)
1782 <ignoredResourcePatterns>
1783 <ignoredResourcePattern>org/opendaylight/blueprint/.*\.xml$</ignoredResourcePattern>
1784 <ignoredResourcePattern>OSGI-OPT/bnd.bnd$</ignoredResourcePattern>
1785 <ignoredResourcePattern>WEB-INF/web.xml</ignoredResourcePattern>
1786 <ignoredResourcePattern>README.*$</ignoredResourcePattern>
1787 <ignoredResourcePattern>.*\.html$</ignoredResourcePattern>
1788 <ignoredResourcePattern>reference.conf</ignoredResourcePattern>
1789 </ignoredResourcePatterns>
1790 <ignoredClassPatterns>
1791 <ignoredClassPattern>META-INF.versions.*$</ignoredClassPattern>
1792 </ignoredClassPatterns>
1793 <ignoredDependencies>
1795 <groupId>org.slf4j</groupId>
1796 <artifactId>slf4j-simple</artifactId>
1797 </ignoredDependency>
1799 <groupId>org.opendaylight.odlparent</groupId>
1800 <artifactId>opendaylight-karaf-empty</artifactId>
1801 </ignoredDependency>
1802 </ignoredDependencies>
1806 <artifactId>maven-dependency-plugin</artifactId>
1809 <artifactId>maven-checkstyle-plugin</artifactId>
1812 <artifactId>maven-pmd-plugin</artifactId>
1815 <artifactId>maven-source-plugin</artifactId>
1818 <artifactId>maven-javadoc-plugin</artifactId>
1821 <groupId>org.gaul</groupId>
1822 <artifactId>modernizer-maven-plugin</artifactId>
1825 <groupId>com.github.spotbugs</groupId>
1826 <artifactId>spotbugs-maven-plugin</artifactId>
1829 <!-- Jacoco / Sonar -->
1831 <groupId>org.jacoco</groupId>
1832 <artifactId>jacoco-maven-plugin</artifactId>
1835 <id>pre-unit-test</id>
1837 <goal>prepare-agent</goal>
1840 <destFile>${jacoco.destFile}</destFile>
1847 <groupId>com.alexecollins.maven.plugin</groupId>
1848 <artifactId>script-maven-plugin</artifactId>
1849 <version>1.0.0</version>
1852 <phase>prepare-package</phase>
1854 <goal>execute</goal>
1858 // BeanShell is 2005-ish and thus doesn't support generics, varargs, try-with-resources or lambdas, so:
1859 // (If we do this kind of inline code in pom.xml more often, we shold have a new simple module in
1860 // odl-parent, which has *.java that we compile, and then just depend on it here and call one-line
1861 // static class methods only - it will be MUCH easier to write!)
1862 void copy(File root, String glob, File target) {
1863 java.nio.file.DirectoryStream dirStream = java.nio.file.Files.newDirectoryStream(root.toPath(), glob);
1864 Iterator dirStreamIterator = dirStream.iterator();
1865 while (dirStreamIterator.hasNext()) {
1866 java.nio.file.Path path = dirStreamIterator.next();
1867 java.nio.file.Files.copy(path, new File(target, path.toFile().getName()).toPath(),
1868 new java.nio.file.CopyOption[] {
1869 java.nio.file.StandardCopyOption.REPLACE_EXISTING,
1870 java.nio.file.StandardCopyOption.COPY_ATTRIBUTES
1877 File gitRepoRootDir = project.basedir;
1878 while (!new File(gitRepoRootDir, ".git").exists() && gitRepoRootDir.getParentFile() != null) {
1879 gitRepoRootDir = gitRepoRootDir.getParentFile();
1882 File target = new File(project.build.outputDirectory);
1884 copy(gitRepoRootDir, "README*", target);
1885 copy(gitRepoRootDir, "CONTRIBUTING*", target);
1886 copy(gitRepoRootDir, "PROJECT_INFO.yaml", target);
1893 <groupId>org.apache-extras.beanshell</groupId>
1894 <artifactId>bsh</artifactId>
1895 <version>2.0b6</version>
1905 <artifactId>maven-checkstyle-plugin</artifactId>
1906 <version>3.1.0</version>
1909 <!-- FIXME: activate this
1911 <artifactId>maven-project-info-reports-plugin</artifactId>
1912 <version>${projectinfo}</version>
1915 <groupId>org.codehaus.mojo</groupId>
1916 <artifactId>jdepend-maven-plugin</artifactId>
1920 <report>generate-no-fork</report>