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" 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>
14 Note: This parent is not meant to be used by code artifacts. Please use
18 <groupId>org.opendaylight.odlparent</groupId>
19 <artifactId>odlparent-lite</artifactId>
20 <version>1.7.0-SNAPSHOT</version>
21 <packaging>pom</packaging>
22 <name>ODL :: odlparent :: ${project.artifactId}</name>
26 <name>Eclipse Public License v1.0</name>
27 <url>https://www.eclipse.org/legal/epl-v10.html</url>
32 <name>OpenDaylight</name>
33 <url>https://www.opendaylight.org</url>
37 <system>Bugzilla</system>
38 <url>https://bugs.opendaylight.org/</url>
42 <system>Jenkins</system>
43 <url>https://jenkins.opendaylight.org/releng/</url>
47 <!-- This is only used to prevent building with Maven < 3 and to appease
48 maven-dependency-plugin; our real Maven requirement is enforced by
49 the enforcer plugin. -->
54 <nexusproxy>https://nexus.opendaylight.org/content</nexusproxy>
56 <!-- Variables required for Maven Site generation -->
57 <nexus.site.url>file:${user.dir}/target/staged-site</nexus.site.url>
58 <odl.site.url>https://nexus.opendaylight.org/content/sites/site/</odl.site.url>
59 <stream>latest</stream><!-- CI should pass in -Dstream={stream} -->
61 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
62 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
69 <artifactId>maven-clean-plugin</artifactId>
70 <version>3.0.0</version>
73 <artifactId>maven-deploy-plugin</artifactId>
74 <version>2.8.2</version>
77 <artifactId>maven-install-plugin</artifactId>
78 <version>2.5.2</version>
81 <artifactId>maven-javadoc-plugin</artifactId>
82 <version>2.10.3</version>
84 <!-- Keep things quiet except for warnings/errors -->
87 <!-- support for HelpMojo generated by the maven-plugin-plugin -->
90 <placement>t</placement>
94 <name>requiresProject</name>
95 <placement>t</placement>
96 <head>Requires project:</head>
99 <name>threadSafe</name>
100 <placement>t</placement>
101 <head>Threadsafe</head>
105 <placement>t</placement>
108 <!-- end HelpMojo support -->
113 <id>attach-javadocs</id>
121 <artifactId>maven-project-info-reports-plugin</artifactId>
122 <version>2.9</version>
125 <artifactId>maven-release-plugin</artifactId>
126 <version>2.5.3</version>
129 <artifactId>maven-site-plugin</artifactId>
130 <version>3.5.1</version>
134 <imagesdir>./images</imagesdir>
135 <imagesoutdir>${project.build.directory}/site/images</imagesoutdir>
137 <source-highlighter>coderay</source-highlighter>
138 <coderay-css>style</coderay-css>
141 <require>asciidoctor-diagram</require>
147 <!-- Downgrade Velocity; the Asciidoctor templates don't work with Velocity 1.7 -->
148 <!-- See https://maven.apache.org/plugins/maven-site-plugin/migrate.html -->
149 <groupId>org.apache.velocity</groupId>
150 <artifactId>velocity</artifactId>
151 <version>1.5</version>
154 <groupId>org.apache.maven.doxia</groupId>
155 <artifactId>doxia-core</artifactId>
156 <version>1.7</version>
159 <groupId>org.asciidoctor</groupId>
160 <artifactId>asciidoctor-maven-plugin</artifactId>
161 <version>1.5.3</version>
164 <groupId>org.asciidoctor</groupId>
165 <artifactId>asciidoctorj-diagram</artifactId>
166 <version>1.3.1</version>
171 <groupId>org.codehaus.mojo</groupId>
172 <artifactId>jdepend-maven-plugin</artifactId>
173 <version>2.0</version>
178 <goal>generate-no-fork</goal>
183 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
185 <groupId>org.eclipse.m2e</groupId>
186 <artifactId>lifecycle-mapping</artifactId>
187 <version>1.0.0</version>
189 <lifecycleMappingMetadata>
192 <pluginExecutionFilter>
193 <groupId>org.apache.maven.plugins</groupId>
194 <artifactId>maven-dependency-plugin</artifactId>
195 <versionRange>[2.10,)</versionRange>
199 </pluginExecutionFilter>
205 </lifecycleMappingMetadata>
214 <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
215 q = http://memory-alpha.wikia.com/wiki/Q ;)
217 The Quick profile is used during incremental local development, when you want to "just get that JAR built",
218 which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch. It (intentionally!) skips
219 tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
220 which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
222 Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
223 while you typed the code anyway. Similarly, if you wrote a test, you'll probably already have compiled and run it
224 from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
228 <skipTests>true</skipTests>
229 <skipIT>true</skipIT>
230 <skipITs>true</skipITs>
231 <maven.test.skip>true</maven.test.skip>
232 <skip.karaf.featureTest>true</skip.karaf.featureTest>
233 <jacoco.skip>true</jacoco.skip>
234 <maven.javadoc.skip>true</maven.javadoc.skip>
235 <maven.source.skip>true</maven.source.skip>
236 <checkstyle.skip>true</checkstyle.skip>
237 <findbugs.skip>true</findbugs.skip>
238 <maven.site.skip>true</maven.site.skip>
239 <invoker.skip>true</invoker.skip>
240 <enforcer.skip>true</enforcer.skip>
244 <!-- http://blog2.vorburger.ch/2016/06/maven-install-into-additional.html
245 mvn [-o -Pq] install -DaddInstallRepositoryPath=.../karaf/system is used in development to directly
246 install artifacts such as bundles and KARs not just into the global shared ~/.m2/repository
247 but also into the isolated Maven repo of a Karaf distribution.
251 <name>addInstallRepositoryPath</name>
257 <artifactId>maven-install-plugin</artifactId>
260 <id>additional-install</id>
261 <phase>install</phase>
263 <goal>install-file</goal>
266 <file>${project.build.directory}/${project.build.finalName}.jar</file>
267 <localRepositoryPath>${addInstallRepositoryPath}</localRepositoryPath>
277 This profile is to ensure we only build javadocs reports
278 when we plan to deploy Maven site for our project.
280 It activates by checking for the existance of deploy-site.xml in the
281 user's current working directory. (Intent is that this is run from
282 the Project root directory)
287 <exists>${user.dir}/deploy-site.xml</exists>
294 <artifactId>maven-site-plugin</artifactId>
298 <id>generate-site</id>
299 <phase>install</phase>
302 <goal>attach-descriptor</goal>
313 <artifactId>maven-project-info-reports-plugin</artifactId>
315 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
320 <report>index</report>
326 <artifactId>maven-javadoc-plugin</artifactId>
330 <report>javadoc-no-fork</report>
331 <report>test-javadoc-no-fork</report>
342 <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
344 <distributionManagement>
346 <id>opendaylight-release</id>
347 <url>${nexusproxy}/repositories/opendaylight.release/</url>
350 <id>opendaylight-snapshot</id>
351 <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
352 </snapshotRepository>
354 <id>opendaylight-site</id>
355 <url>${nexus.site.url}/${project.artifactId}/</url>
357 </distributionManagement>