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>
27 <odlparent.version>1.8.0-SNAPSHOT</odlparent.version>
30 <dependencyManagement>
33 <groupId>org.apache.karaf.features</groupId>
34 <artifactId>framework</artifactId>
35 <version>${karaf4.version}</version>
39 <groupId>org.apache.karaf.features</groupId>
40 <artifactId>framework</artifactId>
41 <version>${karaf4.version}</version>
42 <classifier>features</classifier>
46 <groupId>org.apache.karaf.features</groupId>
47 <artifactId>standard</artifactId>
48 <version>${karaf4.version}</version>
49 <classifier>features</classifier>
53 <groupId>org.apache.karaf.features</groupId>
54 <artifactId>spring</artifactId>
55 <version>${karaf4.version}</version>
56 <classifier>features</classifier>
60 </dependencyManagement>
64 <groupId>org.apache.karaf.features</groupId>
65 <artifactId>framework</artifactId>
69 <groupId>org.apache.karaf.features</groupId>
70 <artifactId>framework</artifactId>
71 <classifier>features</classifier>
73 <scope>runtime</scope>
76 <groupId>org.apache.karaf.features</groupId>
77 <artifactId>standard</artifactId>
78 <classifier>features</classifier>
80 <scope>runtime</scope>
83 <groupId>org.apache.karaf.features</groupId>
84 <artifactId>spring</artifactId>
85 <classifier>features</classifier>
87 <scope>runtime</scope>
89 <!-- Don't use ${project.version} here, properties are evaluated in the context
93 <groupId>org.opendaylight.odlparent</groupId>
94 <artifactId>karaf.branding</artifactId>
95 <version>${odlparent.version}</version>
96 <scope>compile</scope>
98 <!-- ODL configuration -->
100 <groupId>org.opendaylight.odlparent</groupId>
101 <artifactId>opendaylight-karaf4-resources</artifactId>
102 <version>${odlparent.version}</version>
103 <scope>provided</scope>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-resources-plugin</artifactId>
114 <id>process-resources</id>
116 <goal>resources</goal>
122 <groupId>org.apache.maven.plugins</groupId>
123 <artifactId>maven-remote-resources-plugin</artifactId>
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>${odlparent.version}</version>
144 <outputDirectory>target/assembly/lib</outputDirectory>
145 <destFileName>karaf.branding-${odlparent.version}.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-karaf4-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-karaf4-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-antrun-plugin</artifactId>
193 <id>patch-karaf-scripts</id>
194 <phase>prepare-package</phase>
200 <!-- Patches only work with LF line endings from ant -->
201 <fixcrlf srcdir="${project.build.directory}/assembly/bin"
202 includes="*.bat" eol="lf"/>
203 <patch patchfile="${project.build.directory}/assembly/patches/karaf-instance.patch"
204 originalfile="${project.build.directory}/assembly/bin/instance"
206 <patch patchfile="${project.build.directory}/assembly/patches/karaf-instance.bat.patch"
207 originalfile="${project.build.directory}/assembly/bin/instance.bat"
208 failonerror="true" ignorewhitespace="true"/>
209 <patch patchfile="${project.build.directory}/assembly/patches/karaf-karaf.patch"
210 originalfile="${project.build.directory}/assembly/bin/karaf"
212 <patch patchfile="${project.build.directory}/assembly/patches/karaf-karaf.bat.patch"
213 originalfile="${project.build.directory}/assembly/bin/karaf.bat"
215 <patch patchfile="${project.build.directory}/assembly/patches/karaf-setenv.patch"
216 originalfile="${project.build.directory}/assembly/bin/setenv"
218 <patch patchfile="${project.build.directory}/assembly/patches/karaf-setenv.bat.patch"
219 originalfile="${project.build.directory}/assembly/bin/setenv.bat"
221 <fixcrlf srcdir="${project.build.directory}/assembly/bin"
222 includes="*.bat" eol="crlf"/>
229 <groupId>org.apache.karaf.tooling</groupId>
230 <artifactId>karaf-maven-plugin</artifactId>
231 <version>${karaf4.version}</version>
234 <id>process-resources</id>
235 <phase>process-resources</phase>
237 <goal>assembly</goal>
249 <feature>wrapper</feature>
252 <feature>framework</feature>
253 <feature>jaas</feature>
254 <feature>shell</feature>
255 <feature>feature</feature>
256 <feature>ssh</feature>
257 <feature>management</feature>
258 <feature>bundle</feature>
259 <feature>config</feature>
260 <feature>deployer</feature>
261 <feature>diagnostic</feature>
262 <feature>instance</feature>
263 <feature>kar</feature>
264 <feature>log</feature>
265 <feature>package</feature>
266 <feature>service</feature>
267 <feature>system</feature>
268 <!-- We load wrap as a workaround to handle old features without the wrap prerequisite -->
269 <!-- TODO Remove this once all the downstream features are fixed -->
270 <feature>wrap</feature>
276 <groupId>org.opendaylight.odlparent</groupId>
277 <artifactId>karaf4-plugin</artifactId>
278 <version>1.8.0-SNAPSHOT</version>
281 <id>populate-local-repo</id>
283 <goal>populate-local-repo</goal>
286 <localRepo>${project.build.directory}/assembly/system</localRepo>