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>
26 <dependencyManagement>
29 <groupId>org.apache.karaf.features</groupId>
30 <artifactId>framework</artifactId>
31 <version>${karaf4.version}</version>
35 <groupId>org.apache.karaf.features</groupId>
36 <artifactId>framework</artifactId>
37 <version>${karaf4.version}</version>
38 <classifier>features</classifier>
42 <groupId>org.apache.karaf.features</groupId>
43 <artifactId>standard</artifactId>
44 <version>${karaf4.version}</version>
45 <classifier>features</classifier>
49 <groupId>org.apache.karaf.features</groupId>
50 <artifactId>spring</artifactId>
51 <version>${karaf4.version}</version>
52 <classifier>features</classifier>
56 </dependencyManagement>
60 <groupId>org.apache.karaf.features</groupId>
61 <artifactId>framework</artifactId>
65 <groupId>org.apache.karaf.features</groupId>
66 <artifactId>framework</artifactId>
67 <classifier>features</classifier>
69 <scope>runtime</scope>
72 <groupId>org.apache.karaf.features</groupId>
73 <artifactId>standard</artifactId>
74 <classifier>features</classifier>
76 <scope>runtime</scope>
79 <groupId>org.apache.karaf.features</groupId>
80 <artifactId>spring</artifactId>
81 <classifier>features</classifier>
83 <scope>runtime</scope>
88 <groupId>org.opendaylight.odlparent</groupId>
89 <artifactId>karaf.branding</artifactId>
91 <!-- ODL configuration -->
93 <groupId>org.opendaylight.odlparent</groupId>
94 <artifactId>opendaylight-karaf4-resources</artifactId>
101 <groupId>org.apache.maven.plugins</groupId>
102 <artifactId>maven-resources-plugin</artifactId>
105 <id>process-resources</id>
107 <goal>resources</goal>
113 <groupId>org.apache.maven.plugins</groupId>
114 <artifactId>maven-remote-resources-plugin</artifactId>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-dependency-plugin</artifactId>
128 <phase>prepare-package</phase>
132 <groupId>org.opendaylight.odlparent</groupId>
133 <artifactId>karaf.branding</artifactId>
134 <version>1.8.0-SNAPSHOT</version>
135 <outputDirectory>target/assembly/lib</outputDirectory>
136 <destFileName>karaf.branding-1.8.0-SNAPSHOT.jar</destFileName>
142 <id>unpack-karaf-resources</id>
144 <goal>unpack-dependencies</goal>
146 <phase>prepare-package</phase>
148 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
149 <groupId>org.opendaylight.odlparent</groupId>
150 <includeArtifactIds>opendaylight-karaf4-resources</includeArtifactIds>
151 <excludes>META-INF\/**</excludes>
152 <excludeTransitive>true</excludeTransitive>
153 <ignorePermissions>false</ignorePermissions>
157 <id>org.ops4j.pax.url.mvn.cfg</id>
161 <phase>prepare-package</phase>
165 <groupId>org.opendaylight.odlparent</groupId>
166 <artifactId>opendaylight-karaf4-resources</artifactId>
167 <type>properties</type>
168 <classifier>config</classifier>
169 <overWrite>true</overWrite>
170 <outputDirectory>${project.build.directory}/assembly/etc/</outputDirectory>
171 <destFileName>org.ops4j.pax.url.mvn.cfg</destFileName>
174 <overWriteReleases>true</overWriteReleases>
175 <overWriteSnapshots>true</overWriteSnapshots>
181 <artifactId>maven-antrun-plugin</artifactId>
184 <id>patch-karaf-scripts</id>
185 <phase>prepare-package</phase>
191 <!-- Patches only work with LF line endings from ant -->
192 <fixcrlf srcdir="${project.build.directory}/assembly/bin"
193 includes="*.bat" eol="lf"/>
194 <patch patchfile="${project.build.directory}/assembly/patches/karaf-instance.patch"
195 originalfile="${project.build.directory}/assembly/bin/instance"
197 <patch patchfile="${project.build.directory}/assembly/patches/karaf-instance.bat.patch"
198 originalfile="${project.build.directory}/assembly/bin/instance.bat"
199 failonerror="true" ignorewhitespace="true"/>
200 <patch patchfile="${project.build.directory}/assembly/patches/karaf-karaf.patch"
201 originalfile="${project.build.directory}/assembly/bin/karaf"
203 <patch patchfile="${project.build.directory}/assembly/patches/karaf-karaf.bat.patch"
204 originalfile="${project.build.directory}/assembly/bin/karaf.bat"
206 <patch patchfile="${project.build.directory}/assembly/patches/karaf-setenv.patch"
207 originalfile="${project.build.directory}/assembly/bin/setenv"
209 <patch patchfile="${project.build.directory}/assembly/patches/karaf-setenv.bat.patch"
210 originalfile="${project.build.directory}/assembly/bin/setenv.bat"
212 <fixcrlf srcdir="${project.build.directory}/assembly/bin"
213 includes="*.bat" eol="crlf"/>
220 <groupId>org.apache.karaf.tooling</groupId>
221 <artifactId>karaf-maven-plugin</artifactId>
222 <version>${karaf4.version}</version>
225 <id>process-resources</id>
226 <phase>process-resources</phase>
228 <goal>assembly</goal>
240 <feature>wrapper</feature>
243 <feature>framework</feature>
244 <feature>jaas</feature>
245 <feature>shell</feature>
246 <feature>feature</feature>
247 <feature>ssh</feature>
248 <feature>management</feature>
249 <feature>bundle</feature>
250 <feature>config</feature>
251 <feature>deployer</feature>
252 <feature>diagnostic</feature>
253 <feature>instance</feature>
254 <feature>kar</feature>
255 <feature>log</feature>
256 <feature>package</feature>
257 <feature>service</feature>
258 <feature>system</feature>
259 <!-- We load wrap as a workaround to handle old features without the wrap prerequisite -->
260 <!-- TODO Remove this once all the downstream features are fixed -->
261 <feature>wrap</feature>
267 <groupId>org.opendaylight.odlparent</groupId>
268 <artifactId>karaf4-plugin</artifactId>
269 <version>1.8.0-SNAPSHOT</version>
272 <id>populate-local-repo</id>
274 <goal>populate-local-repo</goal>
277 <localRepo>${project.build.directory}/assembly/system</localRepo>