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>
89 <groupId>org.opendaylight.odlparent</groupId>
90 <artifactId>karaf.branding</artifactId>
92 <!-- ODL configuration -->
94 <groupId>org.opendaylight.odlparent</groupId>
95 <artifactId>opendaylight-karaf-resources</artifactId>
102 <artifactId>maven-remote-resources-plugin</artifactId>
108 <groupId>org.apache.maven.plugins</groupId>
109 <artifactId>maven-dependency-plugin</artifactId>
116 <phase>prepare-package</phase>
120 <groupId>org.opendaylight.odlparent</groupId>
121 <artifactId>karaf.branding</artifactId>
122 <version>2.1.0-SNAPSHOT</version>
123 <outputDirectory>target/assembly/lib</outputDirectory>
124 <destFileName>karaf.branding-2.1.0-SNAPSHOT.jar</destFileName>
130 <id>unpack-karaf-resources</id>
132 <goal>unpack-dependencies</goal>
134 <phase>prepare-package</phase>
136 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
137 <groupId>org.opendaylight.odlparent</groupId>
138 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
139 <excludes>META-INF\/**</excludes>
140 <excludeTransitive>true</excludeTransitive>
141 <ignorePermissions>false</ignorePermissions>
145 <id>org.ops4j.pax.url.mvn.cfg</id>
149 <phase>prepare-package</phase>
153 <groupId>org.opendaylight.odlparent</groupId>
154 <artifactId>opendaylight-karaf-resources</artifactId>
155 <type>properties</type>
156 <classifier>config</classifier>
157 <overWrite>true</overWrite>
158 <outputDirectory>${project.build.directory}/assembly/etc/</outputDirectory>
159 <destFileName>org.ops4j.pax.url.mvn.cfg</destFileName>
162 <overWriteReleases>true</overWriteReleases>
163 <overWriteSnapshots>true</overWriteSnapshots>
169 <groupId>org.opendaylight.odlparent</groupId>
170 <artifactId>karaf-plugin</artifactId>
171 <version>2.1.0-SNAPSHOT</version>
174 <id>populate-local-repo</id>
175 <phase>prepare-package</phase>
177 <goal>populate-local-repo</goal>
180 <localRepo>${project.build.directory}/assembly/system</localRepo>
186 <artifactId>maven-resources-plugin</artifactId>
189 <id>copy-resources</id>
190 <phase>prepare-package</phase>
192 <goal>copy-resources</goal>
195 <outputDirectory>${basedir}/target/assembly</outputDirectory>
198 <directory>src/main/assembly</directory>
201 <overwrite>true</overwrite>
205 <id>process-resources</id>
207 <goal>resources</goal>
213 <artifactId>maven-antrun-plugin</artifactId>
216 <id>fix-permissions</id>
217 <phase>prepare-package</phase>
224 <fileset dir="${project.build.directory}/assembly/bin">
225 <!-- Ensure that all the shell scripts are executable -->
226 <exclude name="*.bat"/>
227 <exclude name="contrib/*"/>
236 <groupId>org.apache.karaf.tooling</groupId>
237 <artifactId>karaf-maven-plugin</artifactId>
238 <version>${karaf.plugin.version}</version>
241 <id>process-resources</id>
242 <phase>process-resources</phase>
244 <goal>assembly</goal>
256 <feature>wrapper</feature>
259 <feature>standard</feature>
260 <!-- We load wrap as a workaround to handle old features without the wrap prerequisite -->
261 <!-- TODO Remove this once all the downstream features are fixed -->
262 <feature>wrap</feature>
263 <!-- Local feature if any -->
264 <feature>${karaf.localFeature}</feature>