1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright © 2016 Red Hat, Inc. and others. All rights reserved.
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
9 <project xmlns="http://maven.apache.org/POM/4.0.0"
10 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 <groupId>org.opendaylight.odlparent</groupId>
16 <artifactId>odlparent</artifactId>
17 <version>6.0.4-SNAPSHOT</version>
18 <relativePath>../../odlparent</relativePath>
21 <groupId>org.opendaylight.odlparent</groupId>
22 <artifactId>karaf4-parent</artifactId>
23 <version>6.0.4-SNAPSHOT</version>
24 <packaging>pom</packaging>
25 <name>ODL :: odlparent :: ${project.artifactId}</name>
28 <!-- Projects can override this to add their own boot feature -->
29 <karaf.localFeature>standard</karaf.localFeature>
30 <karaf.archiveZip>true</karaf.archiveZip>
31 <karaf.archiveTarGz>true</karaf.archiveTarGz>
34 <dependencyManagement>
37 <groupId>org.apache.karaf.features</groupId>
38 <artifactId>framework</artifactId>
39 <version>${karaf.version}</version>
43 <groupId>org.apache.karaf.features</groupId>
44 <artifactId>framework</artifactId>
45 <version>${karaf.version}</version>
46 <classifier>features</classifier>
50 <groupId>org.apache.karaf.features</groupId>
51 <artifactId>standard</artifactId>
52 <version>${karaf.version}</version>
53 <classifier>features</classifier>
57 </dependencyManagement>
61 <groupId>org.apache.karaf.features</groupId>
62 <artifactId>framework</artifactId>
66 <groupId>org.apache.karaf.features</groupId>
67 <artifactId>framework</artifactId>
68 <classifier>features</classifier>
70 <scope>runtime</scope>
73 <groupId>org.apache.karaf.features</groupId>
74 <artifactId>standard</artifactId>
75 <classifier>features</classifier>
77 <scope>runtime</scope>
80 <groupId>org.apache.aries.quiesce</groupId>
81 <artifactId>org.apache.aries.quiesce.api</artifactId>
84 <groupId>org.osgi</groupId>
85 <!-- for https://bugs.opendaylight.org/show_bug.cgi?id=4290 -->
86 <artifactId>org.osgi.service.event</artifactId>
89 <!-- Optional dependency of karaf.config.core -->
91 <groupId>org.apache.felix</groupId>
92 <artifactId>org.apache.felix.metatype</artifactId>
97 <groupId>org.opendaylight.odlparent</groupId>
98 <artifactId>karaf.branding</artifactId>
100 <!-- ODL configuration -->
102 <groupId>org.opendaylight.odlparent</groupId>
103 <artifactId>opendaylight-karaf-resources</artifactId>
106 <!-- BouncyCastle Framework Extension Bundles -->
108 <groupId>org.opendaylight.odlparent</groupId>
109 <artifactId>bcpkix-framework-ext</artifactId>
110 <scope>runtime</scope>
113 <groupId>org.opendaylight.odlparent</groupId>
114 <artifactId>bcprov-framework-ext</artifactId>
115 <scope>runtime</scope>
123 <groupId>org.opendaylight.odlparent</groupId>
124 <artifactId>karaf-plugin</artifactId>
125 <version>6.0.4-SNAPSHOT</version>
132 <artifactId>maven-remote-resources-plugin</artifactId>
138 <groupId>org.apache.maven.plugins</groupId>
139 <artifactId>maven-dependency-plugin</artifactId>
142 <id>apply-branding</id>
146 <phase>prepare-package</phase>
150 <groupId>org.opendaylight.odlparent</groupId>
151 <artifactId>karaf.branding</artifactId>
152 <version>6.0.4-SNAPSHOT</version>
153 <outputDirectory>target/assembly/lib</outputDirectory>
154 <destFileName>karaf.branding-3.0.4-SNAPSHOT.jar</destFileName>
157 <silent>true</silent>
161 <id>unpack-karaf-resources</id>
163 <goal>unpack-dependencies</goal>
165 <phase>prepare-package</phase>
167 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
168 <groupId>org.opendaylight.odlparent</groupId>
169 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
170 <excludes>META-INF\/**</excludes>
171 <excludeTransitive>true</excludeTransitive>
172 <ignorePermissions>false</ignorePermissions>
173 <silent>true</silent>
177 <id>org.ops4j.pax.url.mvn.cfg</id>
181 <phase>prepare-package</phase>
185 <groupId>org.opendaylight.odlparent</groupId>
186 <artifactId>opendaylight-karaf-resources</artifactId>
187 <type>properties</type>
188 <classifier>config</classifier>
189 <overWrite>true</overWrite>
190 <outputDirectory>${project.build.directory}/assembly/etc/</outputDirectory>
191 <destFileName>org.ops4j.pax.url.mvn.cfg</destFileName>
194 <overWriteReleases>true</overWriteReleases>
195 <overWriteSnapshots>true</overWriteSnapshots>
199 <!-- Override karaf-4.2.6+ use of pax-logging-1.10.2+ -->
200 <id>add-pax-logging-1.10.1</id>
204 <phase>prepare-package</phase>
208 <groupId>org.ops4j.pax.logging</groupId>
209 <artifactId>pax-logging-api</artifactId>
210 <version>1.10.1</version>
211 <outputDirectory>${project.build.directory}/assembly/system/org/ops4j/pax/logging/pax-logging-api/1.10.1</outputDirectory>
214 <groupId>org.ops4j.pax.logging</groupId>
215 <artifactId>pax-logging-logback</artifactId>
216 <version>1.10.1</version>
217 <outputDirectory>${project.build.directory}/assembly/system/org/ops4j/pax/logging/pax-logging-logback/1.10.1</outputDirectory>
220 <groupId>org.ops4j.pax.logging</groupId>
221 <artifactId>pax-logging-log4j2</artifactId>
222 <version>1.10.1</version>
223 <outputDirectory>${project.build.directory}/assembly/system/org/ops4j/pax/logging/pax-logging-log4j2/1.10.1</outputDirectory>
226 <overWriteReleases>true</overWriteReleases>
227 <overWriteSnapshots>true</overWriteSnapshots>
233 <artifactId>maven-resources-plugin</artifactId>
236 <id>copy-resources</id>
237 <phase>prepare-package</phase>
239 <goal>copy-resources</goal>
242 <outputDirectory>${basedir}/target/assembly</outputDirectory>
245 <directory>src/main/assembly</directory>
248 <overwrite>true</overwrite>
252 <id>process-resources</id>
254 <goal>resources</goal>
260 <groupId>org.opendaylight.odlparent</groupId>
261 <artifactId>karaf-plugin</artifactId>
264 <id>populate-local-repo</id>
265 <phase>prepare-package</phase>
267 <goal>populate-local-repo</goal>
270 <localRepo>${project.build.directory}/assembly/system</localRepo>
276 <artifactId>maven-antrun-plugin</artifactId>
279 <id>fix-permissions</id>
280 <phase>prepare-package</phase>
287 <fileset dir="${project.build.directory}/assembly/bin">
288 <!-- Ensure that all the shell scripts are executable -->
289 <exclude name="*.bat"/>
290 <exclude name="contrib/*"/>
297 <id>remove-pax-logging-1.10.2</id>
298 <phase>prepare-package</phase>
304 <delete dir="${project.build.directory}/assembly/system/org/ops4j/pax/logging/pax-logging-api/1.10.2"
305 includeemptydirs="true"/>
306 <delete dir="${project.build.directory}/assembly/system/org/ops4j/pax/logging/pax-logging-logback/1.10.2"
307 includeemptydirs="true"/>
308 <delete dir="${project.build.directory}/assembly/system/org/ops4j/pax/logging/pax-logging-log4j2/1.10.2"
309 includeemptydirs="true"/>
316 <groupId>org.apache.karaf.tooling</groupId>
317 <artifactId>karaf-maven-plugin</artifactId>
318 <version>${karaf.version}</version>
321 <id>process-resources</id>
322 <phase>process-resources</phase>
324 <goal>assembly</goal>
336 <feature>wrapper</feature>
339 <feature>standard</feature>
340 <!-- Features always assumed to be present. Keep in sync with feature parent exclusions. -->
341 <feature>ssh</feature>
342 <!-- Local feature if any -->
343 <feature>${karaf.localFeature}</feature>
346 <archiveTarGz>${karaf.archiveTarGz}</archiveTarGz>
347 <archiveZip>${karaf.archiveZip}</archiveZip>