Bump akka to 2.5.26
[odlparent.git] / odlparent-lite / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=2 tabstop=2: -->
3 <!--
4  Copyright (c) 2015 The Linux Foundation and others.  All rights reserved.
5
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
9 -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12   <modelVersion>4.0.0</modelVersion>
13
14   <!--
15       Note: This parent is not meant to be used by code artifacts. Please use
16             odlparent instead.
17   -->
18
19   <groupId>org.opendaylight.odlparent</groupId>
20   <artifactId>odlparent-lite</artifactId>
21   <version>6.0.2-SNAPSHOT</version>
22   <packaging>pom</packaging>
23   <name>ODL :: odlparent :: ${project.artifactId}</name>
24
25   <!-- Sufficient Metadata for Maven Central Repository deployment
26        These are default, some of which project inheriting from this POM may override (but don't have to, typically)
27        see http://central.sonatype.org/pages/requirements.html
28    -->
29   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
30   <description>OpenDaylight is leading the transformation to Open Software Defined Networking (SDN). For more information, please see https://www.opendaylight.org</description>
31
32   <licenses>
33     <license>
34       <name>Eclipse Public License v1.0</name>
35       <url>https://www.eclipse.org/legal/epl-v10.html</url>
36     </license>
37   </licenses>
38
39   <organization>
40     <name>OpenDaylight</name>
41     <url>https://www.opendaylight.org</url>
42   </organization>
43
44   <issueManagement>
45     <system>JIRA</system>
46     <url>https://jira.opendaylight.org/</url>
47   </issueManagement>
48
49   <ciManagement>
50     <system>Jenkins</system>
51     <url>https://jenkins.opendaylight.org/releng/</url>
52   </ciManagement>
53
54   <scm>
55     <url>https://git.opendaylight.org/gerrit/</url>
56   </scm>
57
58   <developers>
59     <developer>
60       <id>*</id>
61       <name>Please consult the PROJECT_INFO.yaml, README* and/or CONTRIBUTORS which should be included with this JAR</name>
62       <url>https://www.opendaylight.org</url>
63       <email>helpdesk@opendaylight.org</email>
64     </developer>
65   </developers>
66
67   <properties>
68     <nexusproxy>https://nexus.opendaylight.org/content</nexusproxy>
69
70     <!-- Variables required for Maven Site generation -->
71     <nexus.site.url>file:${user.dir}/target/staged-site</nexus.site.url>
72     <odl.site.url>https://nexus.opendaylight.org/content/sites/site/</odl.site.url>
73     <stream>latest</stream><!-- CI should pass in -Dstream={stream} -->
74
75     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
76     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
77
78     <!-- This version property instead of just direct version in pluginManagement is the exception that confirms the rule
79          and is required so that downstream users of the archetype-packaging extension can use this (and get the same version
80          as the maven-archetype-plugin), because there is no "extensionManagement" in Maven -->
81     <maven.archetype.plugin.version>3.1.1</maven.archetype.plugin.version>
82
83     <!-- This property allows deployments to be skipped in child modules -->
84     <maven.deploy.skip>false</maven.deploy.skip>
85
86     <!-- This property allows installations to be skipped in child modules -->
87     <maven.install.skip>false</maven.install.skip>
88
89     <!-- Opt-out from running maven-checkstyle-plugin at all. Defaults to false,
90          set to 'true' in pom.xml of project which desires to completely skip
91          execution. -->
92     <odlparent.checkstyle.skip>false</odlparent.checkstyle.skip>
93
94     <!-- Opt-out from running modernizer-maven-plugin at all. Defaults to false,
95          set to 'true' in pom.xml of project which desires to completely skip
96          execution. -->
97     <odlparent.modernizer.skip>false</odlparent.modernizer.skip>
98
99     <!-- Opt-out from running spotbugs-maven-plugin at all. Defaults to false,
100          set to 'true' in pom.xml of project which desires to completely skip
101          execution. -->
102     <odlparent.spotbugs.skip>false</odlparent.spotbugs.skip>
103
104     <!-- Used in neutron, ovsdb -->
105     <jacoco.version>0.8.5</jacoco.version>
106   </properties>
107
108   <build>
109     <pluginManagement>
110       <plugins>
111         <plugin>
112           <artifactId>maven-antrun-plugin</artifactId>
113           <version>1.8</version>
114         </plugin>
115         <plugin>
116           <artifactId>maven-archetype-plugin</artifactId>
117           <version>${maven.archetype.plugin.version}</version>
118         </plugin>
119         <plugin>
120           <artifactId>maven-clean-plugin</artifactId>
121           <version>3.1.0</version>
122         </plugin>
123         <plugin>
124           <artifactId>maven-dependency-plugin</artifactId>
125           <version>3.1.1</version>
126           <!-- Needed for https://issues.apache.org/jira/browse/MDEP-613, remove with 3.1.2 upgrade -->
127           <dependencies>
128             <dependency>
129               <groupId>org.apache.maven.shared</groupId>
130               <artifactId>maven-dependency-analyzer</artifactId>
131               <version>1.11.1</version>
132             </dependency>
133           </dependencies>
134         </plugin>
135         <plugin>
136           <artifactId>maven-deploy-plugin</artifactId>
137           <version>2.8.2</version>
138           <configuration>
139             <skip>${maven.deploy.skip}</skip>
140           </configuration>
141         </plugin>
142         <plugin>
143           <artifactId>maven-help-plugin</artifactId>
144           <version>3.2.0</version>
145         </plugin>
146         <plugin>
147           <artifactId>maven-install-plugin</artifactId>
148           <version>2.5.2</version>
149           <configuration>
150             <skip>${maven.install.skip}</skip>
151           </configuration>
152         </plugin>
153         <plugin>
154           <artifactId>maven-javadoc-plugin</artifactId>
155           <version>3.1.1</version>
156           <configuration combine.children="append">
157             <!-- Keep things quiet except for warnings/errors -->
158             <quiet>true</quiet>
159             <tags>
160               <!-- support for HelpMojo generated by the maven-plugin-plugin -->
161               <tag>
162                 <name>goal</name>
163                 <placement>t</placement>
164                 <head>Goal:</head>
165               </tag>
166               <tag>
167                 <name>requiresProject</name>
168                 <placement>t</placement>
169                 <head>Requires project:</head>
170               </tag>
171               <tag>
172                 <name>threadSafe</name>
173                 <placement>t</placement>
174                 <head>Threadsafe</head>
175               </tag>
176               <tag>
177                 <name>phase</name>
178                 <placement>t</placement>
179                 <head>Phase:</head>
180               </tag>
181               <!-- end HelpMojo support -->
182             </tags>
183           </configuration>
184           <executions>
185             <execution>
186               <id>attach-javadocs</id>
187               <goals>
188                 <goal>jar</goal>
189               </goals>
190             </execution>
191           </executions>
192         </plugin>
193         <plugin>
194           <artifactId>maven-jar-plugin</artifactId>
195           <version>3.1.2</version>
196         </plugin>
197         <plugin>
198           <artifactId>maven-project-info-reports-plugin</artifactId>
199           <version>3.0.0</version>
200         </plugin>
201         <plugin>
202           <artifactId>maven-release-plugin</artifactId>
203           <version>2.5.3</version>
204         </plugin>
205         <plugin>
206           <artifactId>maven-resources-plugin</artifactId>
207           <version>3.1.0</version>
208         </plugin>
209         <plugin>
210           <artifactId>maven-site-plugin</artifactId>
211           <version>3.7.1</version>
212           <configuration>
213             <asciidoc>
214               <attributes>
215                 <imagesdir>./images</imagesdir>
216                 <imagesoutdir>${project.build.directory}/site/images</imagesoutdir>
217                 <icons>font</icons>
218                 <source-highlighter>coderay</source-highlighter>
219                 <coderay-css>style</coderay-css>
220               </attributes>
221               <requires>
222                 <require>asciidoctor-diagram</require>
223               </requires>
224             </asciidoc>
225           </configuration>
226           <dependencies>
227             <dependency>
228               <groupId>org.asciidoctor</groupId>
229               <artifactId>asciidoctor-maven-plugin</artifactId>
230               <version>1.5.7.1</version>
231             </dependency>
232             <dependency>
233               <groupId>org.asciidoctor</groupId>
234               <artifactId>asciidoctorj-diagram</artifactId>
235               <version>1.5.16</version>
236             </dependency>
237           </dependencies>
238         </plugin>
239         <plugin>
240           <groupId>org.codehaus.mojo</groupId>
241           <artifactId>build-helper-maven-plugin</artifactId>
242           <version>3.0.0</version>
243         </plugin>
244         <plugin>
245           <groupId>org.codehaus.mojo</groupId>
246           <artifactId>exec-maven-plugin</artifactId>
247           <version>1.6.0</version>
248         </plugin>
249         <plugin>
250           <groupId>org.codehaus.mojo</groupId>
251           <artifactId>jdepend-maven-plugin</artifactId>
252           <version>2.0</version>
253           <executions>
254             <execution>
255               <phase>site</phase>
256               <goals>
257                 <goal>generate-no-fork</goal>
258               </goals>
259             </execution>
260           </executions>
261         </plugin>
262         <plugin>
263           <groupId>org.codehaus.mojo</groupId>
264           <artifactId>versions-maven-plugin</artifactId>
265           <version>2.7</version>
266         </plugin>
267         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
268         <plugin>
269           <groupId>org.eclipse.m2e</groupId>
270           <artifactId>lifecycle-mapping</artifactId>
271           <version>1.0.0</version>
272           <configuration>
273             <lifecycleMappingMetadata>
274               <pluginExecutions>
275                 <pluginExecution>
276                   <pluginExecutionFilter>
277                     <groupId>pl.project13.maven</groupId>
278                     <artifactId>git-commit-id-plugin</artifactId>
279                     <versionRange>[1,)</versionRange>
280                     <goals>
281                       <goal>revision</goal>
282                     </goals>
283                   </pluginExecutionFilter>
284                   <action>
285                     <ignore></ignore>
286                   </action>
287                 </pluginExecution>
288                 <pluginExecution>
289                   <pluginExecutionFilter>
290                     <groupId>org.apache.maven.plugins</groupId>
291                     <artifactId>maven-dependency-plugin</artifactId>
292                     <versionRange>[2.10,)</versionRange>
293                     <goals>
294                       <goal>unpack</goal>
295                     </goals>
296                   </pluginExecutionFilter>
297                   <action>
298                     <ignore></ignore>
299                   </action>
300                 </pluginExecution>
301                 <pluginExecution>
302                   <pluginExecutionFilter>
303                     <groupId>org.apache.maven.plugins</groupId>
304                     <artifactId>maven-enforcer-plugin</artifactId>
305                     <versionRange>[1.0.0,)</versionRange>
306                     <goals>
307                       <goal>enforce</goal>
308                     </goals>
309                   </pluginExecutionFilter>
310                   <action>
311                     <ignore />
312                   </action>
313                 </pluginExecution>
314               </pluginExecutions>
315             </lifecycleMappingMetadata>
316           </configuration>
317         </plugin>
318         <plugin>
319           <groupId>org.jacoco</groupId>
320           <artifactId>jacoco-maven-plugin</artifactId>
321           <version>${jacoco.version}</version>
322         </plugin>
323       </plugins>
324     </pluginManagement>
325
326     <plugins>
327       <plugin>
328         <artifactId>maven-enforcer-plugin</artifactId>
329         <version>3.0.0-M2</version>
330         <executions>
331           <execution>
332             <id>enforce-maven</id>
333             <configuration>
334               <rules>
335                 <requireJavaVersion>
336                   <version>11</version>
337                 </requireJavaVersion>
338                 <requireMavenVersion>
339                   <version>[3.5.0,)</version>
340                 </requireMavenVersion>
341               </rules>
342             </configuration>
343             <goals>
344               <goal>enforce</goal>
345             </goals>
346           </execution>
347         </executions>
348       </plugin>
349       <plugin>
350         <groupId>pl.project13.maven</groupId>
351         <artifactId>git-commit-id-plugin</artifactId>
352         <version>3.0.1</version>
353         <executions>
354           <execution>
355             <id>get-git-infos</id>
356             <goals>
357               <goal>revision</goal>
358             </goals>
359           </execution>
360         </executions>
361         <configuration>
362           <failOnNoGitDirectory>false</failOnNoGitDirectory>
363           <generateGitPropertiesFile>true</generateGitPropertiesFile>
364           <generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/git.properties</generateGitPropertiesFilename>
365           <gitDescribe>
366             <skip>false</skip>
367             <always>true</always>
368             <tags>true</tags>
369           </gitDescribe>
370           <!-- trust the working directory -->
371           <offline>true</offline>
372         </configuration>
373       </plugin>
374     </plugins>
375   </build>
376
377   <profiles>
378     <profile>
379       <id>ide</id>
380       <activation>
381         <property>
382           <name>m2e.version</name>
383         </property>
384       </activation>
385       <build>
386         <!-- Put the IDE's build output in a folder other than target, so that IDE builds don't interact with Maven builds -->
387         <directory>target-ide</directory>
388       </build>
389     </profile>
390     <profile>
391         <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
392              q = http://memory-alpha.wikia.com/wiki/Q ;)
393
394              The Quick profile is used during incremental local development, when you want to "just get that JAR built",
395              which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch.  It (intentionally!) skips
396              tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
397              which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
398
399              Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
400              while you typed the code anyway.  Similarly, if you wrote a test, you'll probably already have compiled and run it
401              from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
402           -->
403       <id>q</id>
404       <properties>
405         <skipTests>true</skipTests>
406             <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
407                  and that's usually quick.  Skipping test compilation with -Pq with maven.test.skip would be
408                  particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.)  -->
409         <skipIT>true</skipIT>
410         <skipITs>true</skipITs>
411         <skip.karaf.featureTest>true</skip.karaf.featureTest>
412         <jacoco.skip>true</jacoco.skip>
413         <maven.javadoc.skip>true</maven.javadoc.skip>
414         <maven.source.skip>true</maven.source.skip>
415         <odlparent.checkstyle.skip>true</odlparent.checkstyle.skip>
416         <odlparent.modernizer.skip>true</odlparent.modernizer.skip>
417         <odlparent.spotbugs.skip>true</odlparent.spotbugs.skip>
418         <pmd.skip>true</pmd.skip>
419         <cpd.skip>true</cpd.skip>
420         <maven.site.skip>true</maven.site.skip>
421         <invoker.skip>true</invoker.skip>
422         <enforcer.skip>true</enforcer.skip>
423         <duplicate-finder.skip>true</duplicate-finder.skip>
424         <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
425         <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
426       </properties>
427     </profile>
428     <profile>
429       <!-- http://blog2.vorburger.ch/2016/06/maven-install-into-additional.html
430            mvn [-o -Pq] install -DaddInstallRepositoryPath=.../karaf/system is used in development to directly
431            install artifacts such as bundles and KARs not just into the global shared ~/.m2/repository
432            but also into the isolated Maven repo of a Karaf distribution.
433        -->
434       <activation>
435         <property>
436           <name>addInstallRepositoryPath</name>
437         </property>
438       </activation>
439       <build>
440         <plugins>
441           <plugin>
442             <artifactId>maven-install-plugin</artifactId>
443             <executions>
444               <execution>
445                 <id>additional-install</id>
446                 <phase>install</phase>
447                 <goals>
448                   <goal>install-file</goal>
449                 </goals>
450                 <configuration>
451                   <file>${project.build.directory}/${project.build.finalName}.jar</file>
452                   <localRepositoryPath>${addInstallRepositoryPath}</localRepositoryPath>
453                 </configuration>
454               </execution>
455             </executions>
456           </plugin>
457         </plugins>
458       </build>
459     </profile>
460     <profile>
461       <!--
462           This profile is to ensure we only build javadocs reports
463           when we plan to deploy Maven site for our project.
464
465           It activates by checking for the existance of deploy-site.xml in the
466           user's current working directory. (Intent is that this is run from
467           the Project root directory)
468       -->
469       <id>maven-site</id>
470       <activation>
471         <file>
472           <exists>${user.dir}/deploy-site.xml</exists>
473         </file>
474       </activation>
475
476       <build>
477         <plugins>
478           <plugin>
479             <artifactId>maven-site-plugin</artifactId>
480
481             <executions>
482               <execution>
483                 <id>generate-site</id>
484                 <phase>install</phase>
485                 <goals>
486                   <goal>site</goal>
487                   <goal>attach-descriptor</goal>
488                 </goals>
489               </execution>
490             </executions>
491           </plugin>
492         </plugins>
493       </build>
494
495       <reporting>
496         <plugins>
497           <plugin>
498             <artifactId>maven-project-info-reports-plugin</artifactId>
499             <configuration>
500               <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
501             </configuration>
502             <reportSets>
503               <reportSet>
504                 <reports>
505                   <report>index</report>
506                 </reports>
507               </reportSet>
508             </reportSets>
509           </plugin>
510           <plugin>
511             <artifactId>maven-javadoc-plugin</artifactId>
512             <reportSets>
513               <reportSet>
514                 <reports>
515                   <report>javadoc-no-fork</report>
516                   <report>test-javadoc-no-fork</report>
517                 </reports>
518               </reportSet>
519             </reportSets>
520           </plugin>
521         </plugins>
522       </reporting>
523     </profile>
524     <profile>
525       <!-- Javadocs with links -->
526       <id>javadoc-links</id>
527         <activation>
528           <file>
529             <exists>odl-javadoc-links-optin</exists>
530           </file>
531         </activation>
532       <build>
533         <plugins>
534           <plugin>
535             <artifactId>maven-javadoc-plugin</artifactId>
536             <configuration combine.children="append">
537               <links>
538                 <link>https://junit.org/junit4/javadoc/4.11/</link>
539                 <link>http://hamcrest.org/JavaHamcrest/javadoc/2.1/</link>
540                 <link>http://google.github.io/truth/api/0.43/</link>
541                 <link>http://www.slf4j.org/apidocs/</link>
542                 <link>https://xerces.apache.org/xerces2-j/javadocs/api/</link>
543                 <link>https://google.github.io/guava/releases/27.1-jre/api/docs/</link>
544                 <link>http://doc.akka.io/japi/akka/2.5.26/</link>
545                 <link>http://netty.io/4.1/api/</link>
546                 <link>https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/</link>
547                 <link>https://commons.apache.org/proper/commons-lang/javadocs/api-3.9/</link>
548                 <link>https://commons.apache.org/proper/commons-codec/apidocs/</link>
549               </links>
550             </configuration>
551           </plugin>
552         </plugins>
553       </build>
554     </profile>
555
556     <profile>
557       <!-- On JDK9-and-later specify html4 javadoc, if requested-->
558       <id>jdk9-javadoc</id>
559       <activation>
560         <jdk>[9,)</jdk>
561         <file>
562           <exists>odl-javadoc-html5-optout</exists>
563         </file>
564       </activation>
565       <build>
566         <plugins>
567           <plugin>
568             <artifactId>maven-javadoc-plugin</artifactId>
569             <configuration combine.children="append">
570               <additionalOptions>
571                 <additionalOption>-html4</additionalOption>
572               </additionalOptions>
573             </configuration>
574           </plugin>
575         </plugins>
576       </build>
577     </profile>
578
579     <profile>
580       <!-- Disable plugins which are not useful for sonar -->
581       <id>sonar-only</id>
582       <activation>
583         <property>
584           <name>sonar</name>
585         </property>
586       </activation>
587       <properties>
588         <checkstyle.skip>true</checkstyle.skip>
589         <duplicate-finder.skip>true</duplicate-finder.skip>
590         <skip.karaf.featureTest>true</skip.karaf.featureTest>
591         <maven.javadoc.skip>true</maven.javadoc.skip>
592         <maven.source.skip>true</maven.source.skip>
593       </properties>
594     </profile>
595   </profiles>
596
597   <distributionManagement>
598     <repository>
599       <id>opendaylight-release</id>
600       <url>${nexusproxy}/repositories/opendaylight.release/</url>
601     </repository>
602     <snapshotRepository>
603       <id>opendaylight-snapshot</id>
604       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
605     </snapshotRepository>
606     <site>
607       <id>opendaylight-site</id>
608       <url>${nexus.site.url}/${project.artifactId}/</url>
609     </site>
610   </distributionManagement>
611 </project>