1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=2 tabstop=2: -->
4 Copyright (c) 2015 The Linux Foundation 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"
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>
15 Note: This parent is not meant to be used by code artifacts. Please use
19 <groupId>org.opendaylight.odlparent</groupId>
20 <artifactId>odlparent-lite</artifactId>
21 <version>3.1.5-SNAPSHOT</version>
22 <packaging>pom</packaging>
23 <name>ODL :: odlparent :: ${project.artifactId}</name>
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
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>
34 <name>Eclipse Public License v1.0</name>
35 <url>https://www.eclipse.org/legal/epl-v10.html</url>
40 <name>OpenDaylight</name>
41 <url>https://www.opendaylight.org</url>
46 <url>https://jira.opendaylight.org/</url>
50 <system>Jenkins</system>
51 <url>https://jenkins.opendaylight.org/releng/</url>
55 <url>https://git.opendaylight.org/gerrit/</url>
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>
68 <nexusproxy>https://nexus.opendaylight.org/content</nexusproxy>
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} -->
75 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
76 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
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>
88 <artifactId>maven-archetype-plugin</artifactId>
89 <version>${maven.archetype.plugin.version}</version>
92 <artifactId>maven-clean-plugin</artifactId>
93 <version>3.0.0</version>
96 <artifactId>maven-dependency-plugin</artifactId>
97 <version>3.0.2</version>
100 <artifactId>maven-deploy-plugin</artifactId>
101 <version>2.8.2</version>
104 <artifactId>maven-help-plugin</artifactId>
105 <version>2.2</version>
108 <artifactId>maven-install-plugin</artifactId>
109 <version>2.5.2</version>
112 <artifactId>maven-javadoc-plugin</artifactId>
113 <version>3.0.1</version>
114 <configuration combine.children="append">
115 <!-- Keep things quiet except for warnings/errors -->
118 <!-- support for HelpMojo generated by the maven-plugin-plugin -->
121 <placement>t</placement>
125 <name>requiresProject</name>
126 <placement>t</placement>
127 <head>Requires project:</head>
130 <name>threadSafe</name>
131 <placement>t</placement>
132 <head>Threadsafe</head>
136 <placement>t</placement>
139 <!-- end HelpMojo support -->
141 <detectLinks>false</detectLinks> <!-- TODO: It should work once https://issues.apache.org/jira/browse/MJAVADOC-427 is solved -->
142 <detectOfflineLinks>true</detectOfflineLinks>
146 <id>attach-javadocs</id>
154 <artifactId>maven-project-info-reports-plugin</artifactId>
155 <version>2.9</version>
158 <artifactId>maven-release-plugin</artifactId>
159 <version>2.5.3</version>
162 <artifactId>maven-site-plugin</artifactId>
163 <version>3.6</version>
167 <imagesdir>./images</imagesdir>
168 <imagesoutdir>${project.build.directory}/site/images</imagesoutdir>
170 <source-highlighter>coderay</source-highlighter>
171 <coderay-css>style</coderay-css>
174 <require>asciidoctor-diagram</require>
180 <!-- Downgrade Velocity; the Asciidoctor templates don't work with Velocity 1.7 -->
181 <!-- See https://maven.apache.org/plugins/maven-site-plugin/migrate.html -->
182 <groupId>org.apache.velocity</groupId>
183 <artifactId>velocity</artifactId>
184 <version>1.5</version>
187 <groupId>org.apache.maven.doxia</groupId>
188 <artifactId>doxia-core</artifactId>
189 <version>1.7</version>
192 <groupId>org.asciidoctor</groupId>
193 <artifactId>asciidoctor-maven-plugin</artifactId>
194 <version>1.5.3</version>
197 <groupId>org.asciidoctor</groupId>
198 <artifactId>asciidoctorj-diagram</artifactId>
199 <version>1.3.1</version>
202 <!-- Needed for JDK-9 compatibility -->
204 <groupId>commons-lang</groupId>
205 <artifactId>commons-lang</artifactId>
206 <version>2.6</version>
211 <groupId>org.codehaus.mojo</groupId>
212 <artifactId>exec-maven-plugin</artifactId>
213 <version>1.5.0</version>
216 <groupId>org.codehaus.mojo</groupId>
217 <artifactId>jdepend-maven-plugin</artifactId>
218 <version>2.0</version>
223 <goal>generate-no-fork</goal>
228 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
230 <groupId>org.eclipse.m2e</groupId>
231 <artifactId>lifecycle-mapping</artifactId>
232 <version>1.0.0</version>
234 <lifecycleMappingMetadata>
237 <pluginExecutionFilter>
238 <groupId>pl.project13.maven</groupId>
239 <artifactId>git-commit-id-plugin</artifactId>
240 <versionRange>[1,)</versionRange>
242 <goal>revision</goal>
244 </pluginExecutionFilter>
250 <pluginExecutionFilter>
251 <groupId>org.apache.maven.plugins</groupId>
252 <artifactId>maven-dependency-plugin</artifactId>
253 <versionRange>[2.10,)</versionRange>
257 </pluginExecutionFilter>
263 <pluginExecutionFilter>
264 <groupId>org.apache.maven.plugins</groupId>
265 <artifactId>maven-enforcer-plugin</artifactId>
266 <versionRange>[1.0.0,)</versionRange>
270 </pluginExecutionFilter>
276 </lifecycleMappingMetadata>
284 <artifactId>maven-enforcer-plugin</artifactId>
285 <version>3.0.0-M1</version>
288 <id>enforce-maven</id>
292 <version>1.8.0</version>
293 </requireJavaVersion>
294 <requireMavenVersion>
295 <version>[3.3.9,)</version>
296 </requireMavenVersion>
306 <groupId>pl.project13.maven</groupId>
307 <artifactId>git-commit-id-plugin</artifactId>
308 <version>2.2.4</version>
311 <id>get-git-infos</id>
313 <goal>revision</goal>
318 <failOnNoGitDirectory>false</failOnNoGitDirectory>
319 <generateGitPropertiesFile>true</generateGitPropertiesFile>
320 <generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/git.properties</generateGitPropertiesFilename>
323 <always>true</always>
336 <name>m2e.version</name>
340 <!-- Put the IDE's build output in a folder other than target, so that IDE builds don't interact with Maven builds -->
341 <directory>target-ide</directory>
345 <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
346 q = http://memory-alpha.wikia.com/wiki/Q ;)
348 The Quick profile is used during incremental local development, when you want to "just get that JAR built",
349 which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch. It (intentionally!) skips
350 tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
351 which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
353 Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
354 while you typed the code anyway. Similarly, if you wrote a test, you'll probably already have compiled and run it
355 from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
359 <skipTests>true</skipTests>
360 <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
361 and that's usually quick. Skipping test compilation with -Pq with maven.test.skip would be
362 particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.) -->
363 <skipIT>true</skipIT>
364 <skipITs>true</skipITs>
365 <skip.karaf.featureTest>true</skip.karaf.featureTest>
366 <jacoco.skip>true</jacoco.skip>
367 <maven.javadoc.skip>true</maven.javadoc.skip>
368 <maven.source.skip>true</maven.source.skip>
369 <checkstyle.skip>true</checkstyle.skip>
370 <findbugs.skip>true</findbugs.skip>
371 <spotbugs.skip>true</spotbugs.skip>
372 <pmd.skip>true</pmd.skip>
373 <cpd.skip>true</cpd.skip>
374 <maven.site.skip>true</maven.site.skip>
375 <invoker.skip>true</invoker.skip>
376 <enforcer.skip>true</enforcer.skip>
377 <duplicate-finder.skip>true</duplicate-finder.skip>
378 <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
379 <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
380 <modernizer.skip>true</modernizer.skip>
384 <!-- http://blog2.vorburger.ch/2016/06/maven-install-into-additional.html
385 mvn [-o -Pq] install -DaddInstallRepositoryPath=.../karaf/system is used in development to directly
386 install artifacts such as bundles and KARs not just into the global shared ~/.m2/repository
387 but also into the isolated Maven repo of a Karaf distribution.
391 <name>addInstallRepositoryPath</name>
397 <artifactId>maven-install-plugin</artifactId>
400 <id>additional-install</id>
401 <phase>install</phase>
403 <goal>install-file</goal>
406 <file>${project.build.directory}/${project.build.finalName}.jar</file>
407 <localRepositoryPath>${addInstallRepositoryPath}</localRepositoryPath>
417 This profile is to ensure we only build javadocs reports
418 when we plan to deploy Maven site for our project.
420 It activates by checking for the existance of deploy-site.xml in the
421 user's current working directory. (Intent is that this is run from
422 the Project root directory)
427 <exists>${user.dir}/deploy-site.xml</exists>
434 <artifactId>maven-site-plugin</artifactId>
438 <id>generate-site</id>
439 <phase>install</phase>
442 <goal>attach-descriptor</goal>
453 <artifactId>maven-project-info-reports-plugin</artifactId>
455 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
460 <report>index</report>
466 <artifactId>maven-javadoc-plugin</artifactId>
470 <report>javadoc-no-fork</report>
471 <report>test-javadoc-no-fork</report>
480 <!-- Javadocs with links -->
481 <id>javadoc-links</id>
485 <artifactId>maven-javadoc-plugin</artifactId>
486 <configuration combine.children="append">
488 <link>http://www.atetric.com/atetric/javadoc/junit/junit/4.11/</link>
489 <link>http://hamcrest.org/JavaHamcrest/javadoc/1.3/</link>
490 <link>http://google.github.io/truth/api/0.28/</link>
491 <link>https://www.slf4j.org/apidocs/</link>
492 <link>https://xerces.apache.org/xerces2-j/javadocs/api/</link>
493 <link>https://google.github.io/guava/releases/23.6-jre/api/docs/</link>
494 <link>http://doc.akka.io/japi/akka/2.5.11/</link>
495 <link>http://netty.io/4.1/api/</link>
496 <link>https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/</link>
497 <link>https://commons.apache.org/proper/commons-lang/javadocs/api-3.6/</link>
498 <link>https://commons.apache.org/proper/commons-codec/apidocs/</link>
507 <!-- On JDK9-and-later specify html4 javadoc -->
508 <id>jdk9-javadoc</id>
515 <artifactId>maven-javadoc-plugin</artifactId>
516 <configuration combine.children="append">
518 <additionalOption>-html4</additionalOption>
527 <distributionManagement>
529 <id>opendaylight-release</id>
530 <url>${nexusproxy}/repositories/opendaylight.release/</url>
533 <id>opendaylight-snapshot</id>
534 <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
535 </snapshotRepository>
537 <id>opendaylight-site</id>
538 <url>${nexus.site.url}/${project.artifactId}/</url>
540 </distributionManagement>