Bump versions to 2.0.5-SNAPSHOT
[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" 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>
12
13   <!--
14       Note: This parent is not meant to be used by code artifacts. Please use
15             odlparent instead.
16   -->
17
18   <groupId>org.opendaylight.odlparent</groupId>
19   <artifactId>odlparent-lite</artifactId>
20   <version>2.0.5-SNAPSHOT</version>
21   <packaging>pom</packaging>
22   <name>ODL :: odlparent :: ${project.artifactId}</name>
23
24   <!-- Sufficient Metadata for Maven Central Repository deployment
25        These are default, some of which project inheriting from this POM may override (but don't have to, typically)
26        see http://central.sonatype.org/pages/requirements.html
27    -->
28   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
29   <description>OpenDaylight is leading the transformation to Open Software Defined Networking (SDN). For more information, please see https://www.opendaylight.org</description>
30
31   <licenses>
32     <license>
33       <name>Eclipse Public License v1.0</name>
34       <url>https://www.eclipse.org/legal/epl-v10.html</url>
35     </license>
36   </licenses>
37
38   <organization>
39     <name>OpenDaylight</name>
40     <url>https://www.opendaylight.org</url>
41   </organization>
42
43   <issueManagement>
44     <system>Bugzilla</system>
45     <url>https://bugs.opendaylight.org/</url>
46   </issueManagement>
47
48   <ciManagement>
49     <system>Jenkins</system>
50     <url>https://jenkins.opendaylight.org/releng/</url>
51   </ciManagement>
52
53   <scm>
54     <url>https://git.opendaylight.org/gerrit/</url>
55   </scm>
56
57   <developers>
58     <developer>
59       <id>*</id>
60       <name>Please consult the PROJECT_INFO.yaml, README* and/or CONTRIBUTORS which should be included with this JAR</name>
61       <url>https://www.opendaylight.org</url>
62       <email>helpdesk@opendaylight.org</email>
63     </developer>
64   </developers>
65
66   <properties>
67     <nexusproxy>https://nexus.opendaylight.org/content</nexusproxy>
68
69     <!-- Variables required for Maven Site generation -->
70     <nexus.site.url>file:${user.dir}/target/staged-site</nexus.site.url>
71     <odl.site.url>https://nexus.opendaylight.org/content/sites/site/</odl.site.url>
72     <stream>latest</stream><!-- CI should pass in -Dstream={stream} -->
73
74     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
75     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
76
77     <!-- This property is used in the pluginManagement and the q profile as well as -D set e.g. in releng/builder by c/53426
78          to emulate a future "maven.gitcommitid.skip", which only a future not-yet-available-on-Maven-central maven-git-commit-id-plugin release has.
79          (If we ever upgrade the version of the maven-git-commit-id-plugin we use, then this and re. pluginManagement config could be removed; BUT then
80           the q profile and all -D in releng/builder etc. else would have to be changed from this "gitid.skip" to "maven.gitcommitid.skip.)
81       -->
82     <gitid.skip>false</gitid.skip>
83   </properties>
84
85   <build>
86     <pluginManagement>
87       <plugins>
88         <plugin>
89           <artifactId>maven-clean-plugin</artifactId>
90           <version>3.0.0</version>
91         </plugin>
92         <plugin>
93           <artifactId>maven-dependency-plugin</artifactId>
94           <version>3.0.1</version>
95         </plugin>
96         <plugin>
97           <artifactId>maven-deploy-plugin</artifactId>
98           <version>2.8.2</version>
99         </plugin>
100         <plugin>
101           <artifactId>maven-help-plugin</artifactId>
102           <version>2.2</version>
103         </plugin>
104         <plugin>
105           <artifactId>maven-install-plugin</artifactId>
106           <version>2.5.2</version>
107         </plugin>
108         <plugin>
109           <artifactId>maven-javadoc-plugin</artifactId>
110           <version>2.10.4</version>
111           <configuration>
112             <!-- Keep things quiet except for warnings/errors -->
113             <quiet>true</quiet>
114             <tags>
115               <!-- support for HelpMojo generated by the maven-plugin-plugin -->
116               <tag>
117                 <name>goal</name>
118                 <placement>t</placement>
119                 <head>Goal:</head>
120               </tag>
121               <tag>
122                 <name>requiresProject</name>
123                 <placement>t</placement>
124                 <head>Requires project:</head>
125               </tag>
126               <tag>
127                 <name>threadSafe</name>
128                 <placement>t</placement>
129                 <head>Threadsafe</head>
130               </tag>
131               <tag>
132                 <name>phase</name>
133                 <placement>t</placement>
134                 <head>Phase:</head>
135               </tag>
136               <!-- end HelpMojo support -->
137             </tags>
138           </configuration>
139           <executions>
140             <execution>
141               <id>attach-javadocs</id>
142               <goals>
143                 <goal>jar</goal>
144               </goals>
145             </execution>
146           </executions>
147         </plugin>
148         <plugin>
149           <artifactId>maven-project-info-reports-plugin</artifactId>
150           <version>2.9</version>
151         </plugin>
152         <plugin>
153           <artifactId>maven-release-plugin</artifactId>
154           <version>2.5.3</version>
155         </plugin>
156         <plugin>
157           <artifactId>maven-site-plugin</artifactId>
158           <version>3.6</version>
159           <configuration>
160             <asciidoc>
161               <attributes>
162                 <imagesdir>./images</imagesdir>
163                 <imagesoutdir>${project.build.directory}/site/images</imagesoutdir>
164                 <icons>font</icons>
165                 <source-highlighter>coderay</source-highlighter>
166                 <coderay-css>style</coderay-css>
167               </attributes>
168               <requires>
169                 <require>asciidoctor-diagram</require>
170               </requires>
171             </asciidoc>
172           </configuration>
173           <dependencies>
174             <dependency>
175               <!-- Downgrade Velocity; the Asciidoctor templates don't work with Velocity 1.7 -->
176               <!-- See https://maven.apache.org/plugins/maven-site-plugin/migrate.html -->
177               <groupId>org.apache.velocity</groupId>
178               <artifactId>velocity</artifactId>
179               <version>1.5</version>
180             </dependency>
181             <dependency>
182               <groupId>org.apache.maven.doxia</groupId>
183               <artifactId>doxia-core</artifactId>
184               <version>1.7</version>
185             </dependency>
186             <dependency>
187               <groupId>org.asciidoctor</groupId>
188               <artifactId>asciidoctor-maven-plugin</artifactId>
189               <version>1.5.3</version>
190             </dependency>
191             <dependency>
192               <groupId>org.asciidoctor</groupId>
193               <artifactId>asciidoctorj-diagram</artifactId>
194               <version>1.3.1</version>
195             </dependency>
196
197             <!-- Needed for JDK-9 compatibility -->
198             <dependency>
199               <groupId>commons-lang</groupId>
200               <artifactId>commons-lang</artifactId>
201               <version>2.6</version>
202             </dependency>
203           </dependencies>
204         </plugin>
205         <plugin>
206           <groupId>org.codehaus.mojo</groupId>
207           <artifactId>exec-maven-plugin</artifactId>
208           <version>1.5.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         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
224         <plugin>
225           <groupId>org.eclipse.m2e</groupId>
226           <artifactId>lifecycle-mapping</artifactId>
227           <version>1.0.0</version>
228           <configuration>
229             <lifecycleMappingMetadata>
230               <pluginExecutions>
231                 <pluginExecution>
232                   <pluginExecutionFilter>
233                     <groupId>pl.project13.maven</groupId>
234                     <artifactId>git-commit-id-plugin</artifactId>
235                     <versionRange>[1,)</versionRange>
236                     <goals>
237                       <goal>revision</goal>
238                     </goals>
239                   </pluginExecutionFilter>
240                   <action>
241                     <ignore></ignore>
242                   </action>
243                 </pluginExecution>
244                 <pluginExecution>
245                   <pluginExecutionFilter>
246                     <groupId>org.apache.maven.plugins</groupId>
247                     <artifactId>maven-dependency-plugin</artifactId>
248                     <versionRange>[2.10,)</versionRange>
249                     <goals>
250                       <goal>unpack</goal>
251                     </goals>
252                   </pluginExecutionFilter>
253                   <action>
254                     <ignore></ignore>
255                   </action>
256                 </pluginExecution>
257                 <pluginExecution>
258                   <pluginExecutionFilter>
259                     <groupId>org.apache.maven.plugins</groupId>
260                     <artifactId>maven-enforcer-plugin</artifactId>
261                     <versionRange>[1.0.0,)</versionRange>
262                     <goals>
263                       <goal>enforce</goal>
264                     </goals>
265                   </pluginExecutionFilter>
266                   <action>
267                     <ignore/>
268                   </action>
269                 </pluginExecution>
270               </pluginExecutions>
271             </lifecycleMappingMetadata>
272           </configuration>
273         </plugin>
274       </plugins>
275     </pluginManagement>
276
277     <plugins>
278       <plugin>
279         <artifactId>maven-enforcer-plugin</artifactId>
280         <version>1.4.1</version>
281         <executions>
282           <execution>
283             <id>enforce-maven</id>
284             <configuration>
285               <rules>
286                 <requireJavaVersion>
287                   <version>1.8.0</version>
288                 </requireJavaVersion>
289                 <requireMavenVersion>
290                   <version>[3.3.9,)</version>
291                 </requireMavenVersion>
292               </rules>
293             </configuration>
294             <goals>
295               <goal>enforce</goal>
296             </goals>
297           </execution>
298         </executions>
299       </plugin>
300       <plugin>
301         <groupId>pl.project13.maven</groupId>
302         <artifactId>git-commit-id-plugin</artifactId>
303         <version>2.2.2</version>
304         <executions>
305           <execution>
306             <id>get-git-infos</id>
307             <goals>
308               <goal>revision</goal>
309             </goals>
310           </execution>
311         </executions>
312         <configuration>
313           <skip>${gitid.skip}</skip>
314           <failOnNoGitDirectory>false</failOnNoGitDirectory>
315           <generateGitPropertiesFile>true</generateGitPropertiesFile>
316           <generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/git.properties</generateGitPropertiesFilename>
317           <gitDescribe>
318             <skip>false</skip>
319             <always>true</always>
320             <tags>true</tags>
321           </gitDescribe>
322         </configuration>
323       </plugin>
324     </plugins>
325   </build>
326
327   <profiles>
328     <profile>
329       <id>ide</id>
330       <activation>
331         <property>
332           <name>m2e.version</name>
333         </property>
334       </activation>
335       <build>
336         <!-- Put the IDE's build output in a folder other than target, so that IDE builds don't interact with Maven builds -->
337         <directory>target-ide</directory>
338       </build>
339     </profile>
340     <profile>
341         <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
342              q = http://memory-alpha.wikia.com/wiki/Q ;)
343
344              The Quick profile is used during incremental local development, when you want to "just get that JAR built",
345              which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch.  It (intentionally!) skips
346              tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
347              which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
348
349              Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
350              while you typed the code anyway.  Similarly, if you wrote a test, you'll probably already have compiled and run it
351              from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
352           -->
353         <id>q</id>
354         <properties>
355             <skipTests>true</skipTests>
356             <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
357                  and that's usually quick.  Skipping test compilation with -Pq with maven.test.skip would be
358                  particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.)  -->
359             <skipIT>true</skipIT>
360             <skipITs>true</skipITs>
361             <skip.karaf.featureTest>true</skip.karaf.featureTest>
362             <jacoco.skip>true</jacoco.skip>
363             <maven.javadoc.skip>true</maven.javadoc.skip>
364             <maven.source.skip>true</maven.source.skip>
365             <checkstyle.skip>true</checkstyle.skip>
366             <findbugs.skip>true</findbugs.skip>
367             <pmd.skip>true</pmd.skip>
368             <cpd.skip>true</cpd.skip>
369             <maven.site.skip>true</maven.site.skip>
370             <invoker.skip>true</invoker.skip>
371             <enforcer.skip>true</enforcer.skip>
372             <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
373             <gitid.skip>true</gitid.skip>
374         </properties>
375     </profile>
376     <profile>
377       <!-- http://blog2.vorburger.ch/2016/06/maven-install-into-additional.html
378            mvn [-o -Pq] install -DaddInstallRepositoryPath=.../karaf/system is used in development to directly
379            install artifacts such as bundles and KARs not just into the global shared ~/.m2/repository
380            but also into the isolated Maven repo of a Karaf distribution.
381        -->
382       <activation>
383         <property>
384           <name>addInstallRepositoryPath</name>
385         </property>
386       </activation>
387       <build>
388         <plugins>
389           <plugin>
390             <artifactId>maven-install-plugin</artifactId>
391             <executions>
392               <execution>
393                 <id>additional-install</id>
394                 <phase>install</phase>
395                 <goals>
396                   <goal>install-file</goal>
397                 </goals>
398                 <configuration>
399                   <file>${project.build.directory}/${project.build.finalName}.jar</file>
400                   <localRepositoryPath>${addInstallRepositoryPath}</localRepositoryPath>
401                 </configuration>
402               </execution>
403             </executions>
404           </plugin>
405         </plugins>
406       </build>
407     </profile>
408     <profile>
409       <!--
410           This profile is to ensure we only build javadocs reports
411           when we plan to deploy Maven site for our project.
412
413           It activates by checking for the existance of deploy-site.xml in the
414           user's current working directory. (Intent is that this is run from
415           the Project root directory)
416       -->
417       <id>maven-site</id>
418       <activation>
419         <file>
420           <exists>${user.dir}/deploy-site.xml</exists>
421         </file>
422       </activation>
423
424       <build>
425         <plugins>
426           <plugin>
427             <artifactId>maven-site-plugin</artifactId>
428
429             <executions>
430               <execution>
431                 <id>generate-site</id>
432                 <phase>install</phase>
433                 <goals>
434                   <goal>site</goal>
435                   <goal>attach-descriptor</goal>
436                 </goals>
437               </execution>
438             </executions>
439           </plugin>
440         </plugins>
441       </build>
442
443       <reporting>
444         <plugins>
445           <plugin>
446             <artifactId>maven-project-info-reports-plugin</artifactId>
447             <configuration>
448               <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
449             </configuration>
450             <reportSets>
451               <reportSet>
452                 <reports>
453                   <report>index</report>
454                 </reports>
455               </reportSet>
456             </reportSets>
457           </plugin>
458           <plugin>
459             <artifactId>maven-javadoc-plugin</artifactId>
460             <reportSets>
461               <reportSet>
462                 <reports>
463                   <report>javadoc-no-fork</report>
464                   <report>test-javadoc-no-fork</report>
465                 </reports>
466               </reportSet>
467             </reportSets>
468           </plugin>
469         </plugins>
470       </reporting>
471     </profile>
472   </profiles>
473
474   <distributionManagement>
475     <repository>
476       <id>opendaylight-release</id>
477       <url>${nexusproxy}/repositories/opendaylight.release/</url>
478     </repository>
479     <snapshotRepository>
480       <id>opendaylight-snapshot</id>
481       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
482     </snapshotRepository>
483     <site>
484       <id>opendaylight-site</id>
485       <url>${nexus.site.url}/${project.artifactId}/</url>
486     </site>
487   </distributionManagement>
488 </project>