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