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>1.8.0-SNAPSHOT</version>
18 <relativePath>../../odlparent</relativePath>
21 <groupId>org.opendaylight.odlparent</groupId>
22 <artifactId>karaf4-parent</artifactId>
23 <version>1.8.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>${karaf4.version}</version>
41 <groupId>org.apache.karaf.features</groupId>
42 <artifactId>framework</artifactId>
43 <version>${karaf4.version}</version>
44 <classifier>features</classifier>
48 <groupId>org.apache.karaf.features</groupId>
49 <artifactId>standard</artifactId>
50 <version>${karaf4.version}</version>
51 <classifier>features</classifier>
55 <groupId>org.apache.karaf.features</groupId>
56 <artifactId>spring</artifactId>
57 <version>${karaf4.version}</version>
58 <classifier>features</classifier>
62 </dependencyManagement>
66 <groupId>org.apache.karaf.features</groupId>
67 <artifactId>framework</artifactId>
71 <groupId>org.apache.karaf.features</groupId>
72 <artifactId>framework</artifactId>
73 <classifier>features</classifier>
75 <scope>runtime</scope>
78 <groupId>org.apache.karaf.features</groupId>
79 <artifactId>standard</artifactId>
80 <classifier>features</classifier>
82 <scope>runtime</scope>
85 <groupId>org.apache.karaf.features</groupId>
86 <artifactId>spring</artifactId>
87 <classifier>features</classifier>
89 <scope>runtime</scope>
94 <groupId>org.opendaylight.odlparent</groupId>
95 <artifactId>karaf.branding</artifactId>
97 <!-- ODL configuration -->
99 <groupId>org.opendaylight.odlparent</groupId>
100 <artifactId>opendaylight-karaf4-resources</artifactId>
107 <artifactId>maven-resources-plugin</artifactId>
110 <id>process-resources</id>
112 <goal>resources</goal>
118 <artifactId>maven-remote-resources-plugin</artifactId>
124 <groupId>org.apache.maven.plugins</groupId>
125 <artifactId>maven-dependency-plugin</artifactId>
132 <phase>prepare-package</phase>
136 <groupId>org.opendaylight.odlparent</groupId>
137 <artifactId>karaf.branding</artifactId>
138 <version>1.8.0-SNAPSHOT</version>
139 <outputDirectory>target/assembly/lib</outputDirectory>
140 <destFileName>karaf.branding-1.8.0-SNAPSHOT.jar</destFileName>
146 <id>unpack-karaf-resources</id>
148 <goal>unpack-dependencies</goal>
150 <phase>prepare-package</phase>
152 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
153 <groupId>org.opendaylight.odlparent</groupId>
154 <includeArtifactIds>opendaylight-karaf4-resources</includeArtifactIds>
155 <excludes>META-INF\/**</excludes>
156 <excludeTransitive>true</excludeTransitive>
157 <ignorePermissions>false</ignorePermissions>
161 <id>org.ops4j.pax.url.mvn.cfg</id>
165 <phase>prepare-package</phase>
169 <groupId>org.opendaylight.odlparent</groupId>
170 <artifactId>opendaylight-karaf4-resources</artifactId>
171 <type>properties</type>
172 <classifier>config</classifier>
173 <overWrite>true</overWrite>
174 <outputDirectory>${project.build.directory}/assembly/etc/</outputDirectory>
175 <destFileName>org.ops4j.pax.url.mvn.cfg</destFileName>
178 <overWriteReleases>true</overWriteReleases>
179 <overWriteSnapshots>true</overWriteSnapshots>
185 <!-- This needs to execute before patching, otherwise the feature will be left unpatched -->
187 <groupId>org.opendaylight.odlparent</groupId>
188 <artifactId>karaf4-plugin</artifactId>
189 <version>1.8.0-SNAPSHOT</version>
192 <id>populate-local-repo</id>
194 <goal>populate-local-repo</goal>
197 <localRepo>${project.build.directory}/assembly/system</localRepo>
203 <artifactId>maven-antrun-plugin</artifactId>
206 <id>patch-karaf-scripts</id>
207 <phase>prepare-package</phase>
213 <!-- Patches only work with LF line endings from ant -->
214 <fixcrlf srcdir="${project.build.directory}/assembly/bin"
215 includes="*.bat" eol="lf"/>
216 <patch patchfile="${project.build.directory}/assembly/patches/karaf-instance.patch"
217 originalfile="${project.build.directory}/assembly/bin/instance"
219 <patch patchfile="${project.build.directory}/assembly/patches/karaf-instance.bat.patch"
220 originalfile="${project.build.directory}/assembly/bin/instance.bat"
221 failonerror="true" ignorewhitespace="true"/>
222 <patch patchfile="${project.build.directory}/assembly/patches/karaf-karaf.patch"
223 originalfile="${project.build.directory}/assembly/bin/karaf"
225 <patch patchfile="${project.build.directory}/assembly/patches/karaf-karaf.bat.patch"
226 originalfile="${project.build.directory}/assembly/bin/karaf.bat"
228 <patch patchfile="${project.build.directory}/assembly/patches/karaf-setenv.patch"
229 originalfile="${project.build.directory}/assembly/bin/setenv"
231 <patch patchfile="${project.build.directory}/assembly/patches/karaf-setenv.bat.patch"
232 originalfile="${project.build.directory}/assembly/bin/setenv.bat"
234 <patch patchfile="${project.build.directory}/assembly/patches/karaf-quiesce-4.0.7.patch"
235 originalfile="${project.build.directory}/assembly/system/org/apache/karaf/features/standard/4.0.7/standard-4.0.7-features.xml"
237 <fixcrlf srcdir="${project.build.directory}/assembly/bin"
238 includes="*.bat" eol="crlf"/>
245 <groupId>org.apache.karaf.tooling</groupId>
246 <artifactId>karaf-maven-plugin</artifactId>
247 <version>${karaf4.plugin.version}</version>
250 <id>process-resources</id>
251 <phase>process-resources</phase>
253 <goal>assembly</goal>
265 <feature>wrapper</feature>
268 <feature>standard</feature>
269 <feature>war</feature>
270 <!-- We load wrap as a workaround to handle old features without the wrap prerequisite -->
271 <!-- TODO Remove this once all the downstream features are fixed -->
272 <feature>wrap</feature>
273 <!-- Local feature if any -->
274 <feature>${karaf.localFeature}</feature>