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>2.1.0-SNAPSHOT</version>
18 <relativePath>../../odlparent</relativePath>
21 <groupId>org.opendaylight.odlparent</groupId>
22 <artifactId>karaf4-parent</artifactId>
23 <version>2.1.0-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>
32 <dependencyManagement>
35 <groupId>org.apache.karaf.features</groupId>
36 <artifactId>framework</artifactId>
37 <version>${karaf.version}</version>
41 <groupId>org.apache.karaf.features</groupId>
42 <artifactId>framework</artifactId>
43 <version>${karaf.version}</version>
44 <classifier>features</classifier>
48 <groupId>org.apache.karaf.features</groupId>
49 <artifactId>standard</artifactId>
50 <version>${karaf.version}</version>
51 <classifier>features</classifier>
55 </dependencyManagement>
59 <groupId>org.apache.karaf.features</groupId>
60 <artifactId>framework</artifactId>
64 <groupId>org.apache.karaf.features</groupId>
65 <artifactId>framework</artifactId>
66 <classifier>features</classifier>
68 <scope>runtime</scope>
71 <groupId>org.apache.karaf.features</groupId>
72 <artifactId>standard</artifactId>
73 <classifier>features</classifier>
75 <scope>runtime</scope>
78 <groupId>org.apache.aries.quiesce</groupId>
79 <artifactId>org.apache.aries.quiesce.api</artifactId>
82 <groupId>org.osgi</groupId>
83 <!-- for https://bugs.opendaylight.org/show_bug.cgi?id=4290 -->
84 <artifactId>org.osgi.service.event</artifactId>
87 <groupId>org.bouncycastle</groupId>
88 <artifactId>bcprov-jdk15on</artifactId>
93 <groupId>org.opendaylight.odlparent</groupId>
94 <artifactId>karaf.branding</artifactId>
96 <!-- ODL configuration -->
98 <groupId>org.opendaylight.odlparent</groupId>
99 <artifactId>opendaylight-karaf-resources</artifactId>
106 <artifactId>maven-remote-resources-plugin</artifactId>
112 <groupId>org.opendaylight.odlparent</groupId>
113 <artifactId>karaf-plugin</artifactId>
114 <version>2.1.0-SNAPSHOT</version>
117 <id>populate-local-repo</id>
118 <phase>prepare-package</phase>
120 <goal>populate-local-repo</goal>
123 <localRepo>${project.build.directory}/assembly/system</localRepo>
129 <groupId>org.apache.maven.plugins</groupId>
130 <artifactId>maven-dependency-plugin</artifactId>
137 <phase>prepare-package</phase>
141 <groupId>org.opendaylight.odlparent</groupId>
142 <artifactId>karaf.branding</artifactId>
143 <version>2.1.0-SNAPSHOT</version>
144 <outputDirectory>target/assembly/lib</outputDirectory>
145 <destFileName>karaf.branding-2.1.0-SNAPSHOT.jar</destFileName>
151 <id>unpack-karaf-resources</id>
153 <goal>unpack-dependencies</goal>
155 <phase>prepare-package</phase>
157 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
158 <groupId>org.opendaylight.odlparent</groupId>
159 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
160 <excludes>META-INF\/**</excludes>
161 <excludeTransitive>true</excludeTransitive>
162 <ignorePermissions>false</ignorePermissions>
166 <id>org.ops4j.pax.url.mvn.cfg</id>
170 <phase>prepare-package</phase>
174 <groupId>org.opendaylight.odlparent</groupId>
175 <artifactId>opendaylight-karaf-resources</artifactId>
176 <type>properties</type>
177 <classifier>config</classifier>
178 <overWrite>true</overWrite>
179 <outputDirectory>${project.build.directory}/assembly/etc/</outputDirectory>
180 <destFileName>org.ops4j.pax.url.mvn.cfg</destFileName>
183 <overWriteReleases>true</overWriteReleases>
184 <overWriteSnapshots>true</overWriteSnapshots>
190 <artifactId>maven-resources-plugin</artifactId>
193 <id>copy-resources</id>
194 <phase>prepare-package</phase>
196 <goal>copy-resources</goal>
199 <outputDirectory>${basedir}/target/assembly</outputDirectory>
202 <directory>src/main/assembly</directory>
205 <overwrite>true</overwrite>
209 <id>process-resources</id>
211 <goal>resources</goal>
217 <artifactId>maven-antrun-plugin</artifactId>
220 <id>fix-permissions</id>
221 <phase>prepare-package</phase>
228 <fileset dir="${project.build.directory}/assembly/bin">
229 <!-- Ensure that all the shell scripts are executable -->
230 <exclude name="*.bat"/>
231 <exclude name="contrib/*"/>
240 <groupId>org.apache.karaf.tooling</groupId>
241 <artifactId>karaf-maven-plugin</artifactId>
242 <version>${karaf.plugin.version}</version>
245 <id>process-resources</id>
246 <phase>process-resources</phase>
248 <goal>assembly</goal>
260 <feature>wrapper</feature>
263 <feature>standard</feature>
264 <!-- We load wrap as a workaround to handle old features without the wrap prerequisite -->
265 <!-- TODO Remove this once all the downstream features are fixed -->
266 <feature>wrap</feature>
267 <!-- Local feature if any -->
268 <feature>${karaf.localFeature}</feature>