Bump Apache Commons Lang to 3.8
[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>4.0.0-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.0.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   </properties>
89
90   <build>
91     <pluginManagement>
92       <plugins>
93         <plugin>
94           <artifactId>maven-archetype-plugin</artifactId>
95           <version>${maven.archetype.plugin.version}</version>
96         </plugin>
97         <plugin>
98           <artifactId>maven-clean-plugin</artifactId>
99           <version>3.0.0</version>
100         </plugin>
101         <plugin>
102           <artifactId>maven-dependency-plugin</artifactId>
103           <version>3.0.2</version>
104         </plugin>
105         <plugin>
106           <artifactId>maven-deploy-plugin</artifactId>
107           <version>2.8.2</version>
108           <configuration>
109             <skip>${maven.deploy.skip}</skip>
110           </configuration>
111         </plugin>
112         <plugin>
113           <artifactId>maven-help-plugin</artifactId>
114           <version>2.2</version>
115         </plugin>
116         <plugin>
117           <artifactId>maven-install-plugin</artifactId>
118           <version>2.5.2</version>
119           <configuration>
120             <skip>${maven.install.skip}</skip>
121           </configuration>
122         </plugin>
123         <plugin>
124           <artifactId>maven-javadoc-plugin</artifactId>
125           <version>3.0.1</version>
126           <configuration combine.children="append">
127             <!-- Keep things quiet except for warnings/errors -->
128             <quiet>true</quiet>
129             <tags>
130               <!-- support for HelpMojo generated by the maven-plugin-plugin -->
131               <tag>
132                 <name>goal</name>
133                 <placement>t</placement>
134                 <head>Goal:</head>
135               </tag>
136               <tag>
137                 <name>requiresProject</name>
138                 <placement>t</placement>
139                 <head>Requires project:</head>
140               </tag>
141               <tag>
142                 <name>threadSafe</name>
143                 <placement>t</placement>
144                 <head>Threadsafe</head>
145               </tag>
146               <tag>
147                 <name>phase</name>
148                 <placement>t</placement>
149                 <head>Phase:</head>
150               </tag>
151               <!-- end HelpMojo support -->
152             </tags>
153             <detectLinks>false</detectLinks> <!-- TODO: It should work once https://issues.apache.org/jira/browse/MJAVADOC-427 is solved -->
154             <detectOfflineLinks>true</detectOfflineLinks>
155           </configuration>
156           <executions>
157             <execution>
158               <id>attach-javadocs</id>
159               <goals>
160                 <goal>jar</goal>
161               </goals>
162             </execution>
163           </executions>
164         </plugin>
165         <plugin>
166           <artifactId>maven-project-info-reports-plugin</artifactId>
167           <version>2.9</version>
168         </plugin>
169         <plugin>
170           <artifactId>maven-release-plugin</artifactId>
171           <version>2.5.3</version>
172         </plugin>
173         <plugin>
174           <artifactId>maven-site-plugin</artifactId>
175           <version>3.7</version>
176           <configuration>
177             <asciidoc>
178               <attributes>
179                 <imagesdir>./images</imagesdir>
180                 <imagesoutdir>${project.build.directory}/site/images</imagesoutdir>
181                 <icons>font</icons>
182                 <source-highlighter>coderay</source-highlighter>
183                 <coderay-css>style</coderay-css>
184               </attributes>
185               <requires>
186                 <require>asciidoctor-diagram</require>
187               </requires>
188             </asciidoc>
189           </configuration>
190           <dependencies>
191             <dependency>
192               <groupId>org.asciidoctor</groupId>
193               <artifactId>asciidoctor-maven-plugin</artifactId>
194               <version>1.5.6</version>
195             </dependency>
196             <dependency>
197               <groupId>org.asciidoctor</groupId>
198               <artifactId>asciidoctorj-diagram</artifactId>
199               <version>1.5.4.1</version>
200             </dependency>
201           </dependencies>
202         </plugin>
203         <plugin>
204           <groupId>org.codehaus.mojo</groupId>
205           <artifactId>exec-maven-plugin</artifactId>
206           <version>1.6.0</version>
207         </plugin>
208         <plugin>
209           <groupId>org.codehaus.mojo</groupId>
210           <artifactId>jdepend-maven-plugin</artifactId>
211           <version>2.0</version>
212           <executions>
213             <execution>
214               <phase>site</phase>
215               <goals>
216                 <goal>generate-no-fork</goal>
217               </goals>
218             </execution>
219           </executions>
220         </plugin>
221         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
222         <plugin>
223           <groupId>org.eclipse.m2e</groupId>
224           <artifactId>lifecycle-mapping</artifactId>
225           <version>1.0.0</version>
226           <configuration>
227             <lifecycleMappingMetadata>
228               <pluginExecutions>
229                 <pluginExecution>
230                   <pluginExecutionFilter>
231                     <groupId>pl.project13.maven</groupId>
232                     <artifactId>git-commit-id-plugin</artifactId>
233                     <versionRange>[1,)</versionRange>
234                     <goals>
235                       <goal>revision</goal>
236                     </goals>
237                   </pluginExecutionFilter>
238                   <action>
239                     <ignore></ignore>
240                   </action>
241                 </pluginExecution>
242                 <pluginExecution>
243                   <pluginExecutionFilter>
244                     <groupId>org.apache.maven.plugins</groupId>
245                     <artifactId>maven-dependency-plugin</artifactId>
246                     <versionRange>[2.10,)</versionRange>
247                     <goals>
248                       <goal>unpack</goal>
249                     </goals>
250                   </pluginExecutionFilter>
251                   <action>
252                     <ignore></ignore>
253                   </action>
254                 </pluginExecution>
255                 <pluginExecution>
256                   <pluginExecutionFilter>
257                     <groupId>org.apache.maven.plugins</groupId>
258                     <artifactId>maven-enforcer-plugin</artifactId>
259                     <versionRange>[1.0.0,)</versionRange>
260                     <goals>
261                       <goal>enforce</goal>
262                     </goals>
263                   </pluginExecutionFilter>
264                   <action>
265                     <ignore />
266                   </action>
267                 </pluginExecution>
268               </pluginExecutions>
269             </lifecycleMappingMetadata>
270           </configuration>
271         </plugin>
272       </plugins>
273     </pluginManagement>
274
275     <plugins>
276       <plugin>
277         <artifactId>maven-enforcer-plugin</artifactId>
278         <version>3.0.0-M1</version>
279         <executions>
280           <execution>
281             <id>enforce-maven</id>
282             <configuration>
283               <rules>
284                 <requireJavaVersion>
285                   <version>1.8.0</version>
286                 </requireJavaVersion>
287                 <requireMavenVersion>
288                   <version>[3.5.0,)</version>
289                 </requireMavenVersion>
290               </rules>
291             </configuration>
292             <goals>
293               <goal>enforce</goal>
294             </goals>
295           </execution>
296         </executions>
297       </plugin>
298       <plugin>
299         <groupId>pl.project13.maven</groupId>
300         <artifactId>git-commit-id-plugin</artifactId>
301         <version>2.2.4</version>
302         <executions>
303           <execution>
304             <id>get-git-infos</id>
305             <goals>
306               <goal>revision</goal>
307             </goals>
308           </execution>
309         </executions>
310         <configuration>
311           <failOnNoGitDirectory>false</failOnNoGitDirectory>
312           <generateGitPropertiesFile>true</generateGitPropertiesFile>
313           <generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/git.properties</generateGitPropertiesFilename>
314           <gitDescribe>
315             <skip>false</skip>
316             <always>true</always>
317             <tags>true</tags>
318           </gitDescribe>
319         </configuration>
320       </plugin>
321     </plugins>
322   </build>
323
324   <profiles>
325     <profile>
326       <id>ide</id>
327       <activation>
328         <property>
329           <name>m2e.version</name>
330         </property>
331       </activation>
332       <build>
333         <!-- Put the IDE's build output in a folder other than target, so that IDE builds don't interact with Maven builds -->
334         <directory>target-ide</directory>
335       </build>
336     </profile>
337     <profile>
338         <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
339              q = http://memory-alpha.wikia.com/wiki/Q ;)
340
341              The Quick profile is used during incremental local development, when you want to "just get that JAR built",
342              which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch.  It (intentionally!) skips
343              tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
344              which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
345
346              Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
347              while you typed the code anyway.  Similarly, if you wrote a test, you'll probably already have compiled and run it
348              from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
349           -->
350       <id>q</id>
351       <properties>
352         <skipTests>true</skipTests>
353             <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
354                  and that's usually quick.  Skipping test compilation with -Pq with maven.test.skip would be
355                  particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.)  -->
356         <skipIT>true</skipIT>
357         <skipITs>true</skipITs>
358         <skip.karaf.featureTest>true</skip.karaf.featureTest>
359         <jacoco.skip>true</jacoco.skip>
360         <maven.javadoc.skip>true</maven.javadoc.skip>
361         <maven.source.skip>true</maven.source.skip>
362         <checkstyle.skip>true</checkstyle.skip>
363         <findbugs.skip>true</findbugs.skip>
364         <pmd.skip>true</pmd.skip>
365         <cpd.skip>true</cpd.skip>
366         <maven.site.skip>true</maven.site.skip>
367         <invoker.skip>true</invoker.skip>
368         <enforcer.skip>true</enforcer.skip>
369         <duplicate-finder.skip>true</duplicate-finder.skip>
370         <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
371         <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
372         <modernizer.skip>true</modernizer.skip>
373       </properties>
374     </profile>
375     <profile>
376       <!-- http://blog2.vorburger.ch/2016/06/maven-install-into-additional.html
377            mvn [-o -Pq] install -DaddInstallRepositoryPath=.../karaf/system is used in development to directly
378            install artifacts such as bundles and KARs not just into the global shared ~/.m2/repository
379            but also into the isolated Maven repo of a Karaf distribution.
380        -->
381       <activation>
382         <property>
383           <name>addInstallRepositoryPath</name>
384         </property>
385       </activation>
386       <build>
387         <plugins>
388           <plugin>
389             <artifactId>maven-install-plugin</artifactId>
390             <executions>
391               <execution>
392                 <id>additional-install</id>
393                 <phase>install</phase>
394                 <goals>
395                   <goal>install-file</goal>
396                 </goals>
397                 <configuration>
398                   <file>${project.build.directory}/${project.build.finalName}.jar</file>
399                   <localRepositoryPath>${addInstallRepositoryPath}</localRepositoryPath>
400                 </configuration>
401               </execution>
402             </executions>
403           </plugin>
404         </plugins>
405       </build>
406     </profile>
407     <profile>
408       <!--
409           This profile is to ensure we only build javadocs reports
410           when we plan to deploy Maven site for our project.
411
412           It activates by checking for the existance of deploy-site.xml in the
413           user's current working directory. (Intent is that this is run from
414           the Project root directory)
415       -->
416       <id>maven-site</id>
417       <activation>
418         <file>
419           <exists>${user.dir}/deploy-site.xml</exists>
420         </file>
421       </activation>
422
423       <build>
424         <plugins>
425           <plugin>
426             <artifactId>maven-site-plugin</artifactId>
427
428             <executions>
429               <execution>
430                 <id>generate-site</id>
431                 <phase>install</phase>
432                 <goals>
433                   <goal>site</goal>
434                   <goal>attach-descriptor</goal>
435                 </goals>
436               </execution>
437             </executions>
438           </plugin>
439         </plugins>
440       </build>
441
442       <reporting>
443         <plugins>
444           <plugin>
445             <artifactId>maven-project-info-reports-plugin</artifactId>
446             <configuration>
447               <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
448             </configuration>
449             <reportSets>
450               <reportSet>
451                 <reports>
452                   <report>index</report>
453                 </reports>
454               </reportSet>
455             </reportSets>
456           </plugin>
457           <plugin>
458             <artifactId>maven-javadoc-plugin</artifactId>
459             <reportSets>
460               <reportSet>
461                 <reports>
462                   <report>javadoc-no-fork</report>
463                   <report>test-javadoc-no-fork</report>
464                 </reports>
465               </reportSet>
466             </reportSets>
467           </plugin>
468         </plugins>
469       </reporting>
470     </profile>
471     <profile>
472       <!-- Javadocs with links -->
473       <id>javadoc-links</id>
474       <build>
475         <plugins>
476           <plugin>
477             <artifactId>maven-javadoc-plugin</artifactId>
478             <configuration combine.children="append">
479               <links>
480                 <link>http://www.atetric.com/atetric/javadoc/junit/junit/4.11/</link>
481                 <link>http://hamcrest.org/JavaHamcrest/javadoc/1.3/</link>
482                 <link>http://google.github.io/truth/api/0.42/</link>
483                 <link>https://www.slf4j.org/apidocs/</link>
484                 <link>https://xerces.apache.org/xerces2-j/javadocs/api/</link>
485                 <link>https://google.github.io/guava/releases/25.1-jre/api/docs/</link>
486                 <link>http://doc.akka.io/japi/akka/2.5.14/</link>
487                 <link>http://netty.io/4.1/api/</link>
488                 <link>https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/</link>
489                 <link>https://commons.apache.org/proper/commons-lang/javadocs/api-3.8/</link>
490                 <link>https://commons.apache.org/proper/commons-codec/apidocs/</link>
491               </links>
492             </configuration>
493           </plugin>
494         </plugins>
495       </build>
496     </profile>
497
498     <profile>
499       <!-- On JDK9-and-later specify html4 javadoc -->
500       <id>jdk9-javadoc</id>
501       <activation>
502         <jdk>[9,)</jdk>
503       </activation>
504       <build>
505         <plugins>
506           <plugin>
507             <artifactId>maven-javadoc-plugin</artifactId>
508             <configuration combine.children="append">
509               <additionalOptions>
510                 <additionalOption>-html4</additionalOption>
511               </additionalOptions>
512             </configuration>
513           </plugin>
514         </plugins>
515       </build>
516     </profile>
517   </profiles>
518
519   <distributionManagement>
520     <repository>
521       <id>opendaylight-release</id>
522       <url>${nexusproxy}/repositories/opendaylight.release/</url>
523     </repository>
524     <snapshotRepository>
525       <id>opendaylight-snapshot</id>
526       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
527     </snapshotRepository>
528     <site>
529       <id>opendaylight-site</id>
530       <url>${nexus.site.url}/${project.artifactId}/</url>
531     </site>
532   </distributionManagement>
533 </project>