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.3-SNAPSHOT</version>
18 <relativePath>../../odlparent</relativePath>
21 <groupId>org.opendaylight.odlparent</groupId>
22 <artifactId>karaf4-parent</artifactId>
23 <version>1.8.3-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 </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>
80 <groupId>org.opendaylight.odlparent</groupId>
81 <artifactId>karaf.branding</artifactId>
83 <!-- ODL configuration -->
85 <groupId>org.opendaylight.odlparent</groupId>
86 <artifactId>opendaylight-karaf4-resources</artifactId>
93 <artifactId>maven-resources-plugin</artifactId>
96 <id>process-resources</id>
98 <goal>resources</goal>
104 <artifactId>maven-remote-resources-plugin</artifactId>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-dependency-plugin</artifactId>
118 <phase>prepare-package</phase>
122 <groupId>org.opendaylight.odlparent</groupId>
123 <artifactId>karaf.branding</artifactId>
124 <version>1.8.3-SNAPSHOT</version>
125 <outputDirectory>target/assembly/lib</outputDirectory>
126 <destFileName>karaf.branding-1.8.3-SNAPSHOT.jar</destFileName>
132 <id>unpack-karaf-resources</id>
134 <goal>unpack-dependencies</goal>
136 <phase>prepare-package</phase>
138 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
139 <groupId>org.opendaylight.odlparent</groupId>
140 <includeArtifactIds>opendaylight-karaf4-resources</includeArtifactIds>
141 <excludes>META-INF\/**</excludes>
142 <excludeTransitive>true</excludeTransitive>
143 <ignorePermissions>false</ignorePermissions>
147 <id>org.ops4j.pax.url.mvn.cfg</id>
151 <phase>prepare-package</phase>
155 <groupId>org.opendaylight.odlparent</groupId>
156 <artifactId>opendaylight-karaf4-resources</artifactId>
157 <type>properties</type>
158 <classifier>config</classifier>
159 <overWrite>true</overWrite>
160 <outputDirectory>${project.build.directory}/assembly/etc/</outputDirectory>
161 <destFileName>org.ops4j.pax.url.mvn.cfg</destFileName>
164 <overWriteReleases>true</overWriteReleases>
165 <overWriteSnapshots>true</overWriteSnapshots>
171 <!-- This needs to execute before patching, otherwise the feature will be left unpatched -->
173 <groupId>org.opendaylight.odlparent</groupId>
174 <artifactId>karaf4-plugin</artifactId>
175 <version>1.8.3-SNAPSHOT</version>
178 <id>populate-local-repo</id>
180 <goal>populate-local-repo</goal>
183 <localRepo>${project.build.directory}/assembly/system</localRepo>
189 <artifactId>maven-antrun-plugin</artifactId>
192 <id>patch-karaf-scripts</id>
193 <phase>prepare-package</phase>
199 <!-- Patches only work with LF line endings from ant -->
200 <fixcrlf srcdir="${project.build.directory}/assembly/bin"
201 includes="*.bat" eol="lf"/>
202 <patch patchfile="${project.build.directory}/assembly/patches/karaf-instance.patch"
203 originalfile="${project.build.directory}/assembly/bin/instance"
205 <patch patchfile="${project.build.directory}/assembly/patches/karaf-instance.bat.patch"
206 originalfile="${project.build.directory}/assembly/bin/instance.bat"
207 failonerror="true" ignorewhitespace="true"/>
208 <patch patchfile="${project.build.directory}/assembly/patches/karaf-karaf-${karaf4.version}.patch"
209 originalfile="${project.build.directory}/assembly/bin/karaf"
211 <patch patchfile="${project.build.directory}/assembly/patches/karaf-karaf.bat.patch"
212 originalfile="${project.build.directory}/assembly/bin/karaf.bat"
214 <patch patchfile="${project.build.directory}/assembly/patches/karaf-setenv-${karaf4.version}.patch"
215 originalfile="${project.build.directory}/assembly/bin/setenv"
217 <patch patchfile="${project.build.directory}/assembly/patches/karaf-setenv.bat.patch"
218 originalfile="${project.build.directory}/assembly/bin/setenv.bat"
220 <patch patchfile="${project.build.directory}/assembly/patches/karaf-quiesce-${karaf4.version}.patch"
221 originalfile="${project.build.directory}/assembly/system/org/apache/karaf/features/standard/${karaf4.version}/standard-${karaf4.version}-features.xml"
223 <patch patchfile="${project.build.directory}/assembly/patches/karaf-javax-mail-${karaf4.version}.patch"
224 originalfile="${project.build.directory}/assembly/system/org/apache/karaf/features/standard/${karaf4.version}/standard-${karaf4.version}-features.xml"
226 <patch patchfile="${project.build.directory}/assembly/patches/karaf-paxweb.patch"
227 originalfile="${project.build.directory}/assembly/system/org/ops4j/pax/web/pax-web-features/4.3.0/pax-web-features-4.3.0-features.xml"
229 <patch patchfile="${project.build.directory}/assembly/patches/karaf-etc-startup-properties-4.0.9.patch"
230 originalfile="${project.build.directory}/assembly/etc/startup.properties"
232 <fixcrlf srcdir="${project.build.directory}/assembly/bin"
233 includes="*.bat" eol="crlf"/>
234 <echo file="${project.build.directory}/assembly/etc/system.properties" append="true">mvn\:org.osgi/org.osgi.service.event/1.3.1 = 8</echo>
241 <groupId>org.apache.karaf.tooling</groupId>
242 <artifactId>karaf-maven-plugin</artifactId>
243 <version>${karaf4.plugin.version}</version>
246 <id>process-resources</id>
247 <phase>process-resources</phase>
249 <goal>assembly</goal>
261 <feature>wrapper</feature>
264 <feature>standard</feature>
265 <!-- We load wrap as a workaround to handle old features without the wrap prerequisite -->
266 <!-- TODO Remove this once all the downstream features are fixed -->
267 <feature>wrap</feature>
268 <!-- Features always assumed to be present. Keep in sync with feature parent exclusions. -->
269 <feature>ssh</feature>
270 <!-- Local feature if any -->
271 <feature>${karaf.localFeature}</feature>