1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2020 PANTHEON.tech, s.r.o. 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>8.1.1-SNAPSHOT</version>
18 <relativePath>../../odlparent</relativePath>
21 <artifactId>karaf-dist-static</artifactId>
22 <version>8.1.1-SNAPSHOT</version>
23 <packaging>pom</packaging>
24 <name>ODL :: odlparent :: ${project.artifactId}</name>
26 Baseline parent pom.xml for artifacts packaging a static Karaf distribution.
30 <karaf.archiveZip>true</karaf.archiveZip>
31 <karaf.archiveTarGz>true</karaf.archiveTarGz>
34 <dependencyManagement>
37 <groupId>org.apache.karaf.features</groupId>
38 <artifactId>static</artifactId>
39 <version>${karaf.version}</version>
42 <groupId>org.apache.karaf.features</groupId>
43 <artifactId>standard</artifactId>
44 <version>${karaf.version}</version>
47 <groupId>org.apache.karaf.features</groupId>
48 <artifactId>framework</artifactId>
49 <version>${karaf.version}</version>
52 <groupId>org.bouncycastle</groupId>
53 <artifactId>bcpkix-jdk15on</artifactId>
56 <groupId>org.bouncycastle</groupId>
57 <artifactId>bcprov-jdk15on</artifactId>
60 </dependencyManagement>
63 <!-- karaf static distribution -->
65 <groupId>org.apache.karaf.features</groupId>
66 <artifactId>static</artifactId>
70 <groupId>org.apache.karaf.features</groupId>
71 <artifactId>standard</artifactId>
72 <classifier>features</classifier>
76 <groupId>org.apache.karaf.services</groupId>
77 <artifactId>org.apache.karaf.services.staticcm</artifactId>
81 <groupId>org.ops4j.pax.url</groupId>
82 <artifactId>pax-url-aether</artifactId>
83 <!-- FIXME: why do we need this version (maven-3.6.3 defaults to 2.5.4) -->
84 <version>2.6.5</version>
87 <!-- required by controller component -->
89 <groupId>org.apache.aries.quiesce</groupId>
90 <artifactId>org.apache.aries.quiesce.api</artifactId>
93 <!-- for https://jira.opendaylight.org/browse/ODLPARENT-24 -->
95 <groupId>org.osgi</groupId>
96 <artifactId>org.osgi.service.event</artifactId>
99 <!-- Optional dependency of karaf.config.core -->
101 <groupId>org.apache.felix</groupId>
102 <artifactId>org.apache.felix.metatype</artifactId>
105 <!-- ODL Branding -->
107 <groupId>org.opendaylight.odlparent</groupId>
108 <artifactId>karaf.branding</artifactId>
111 <!-- ODL configuration -->
113 <groupId>org.opendaylight.odlparent</groupId>
114 <artifactId>opendaylight-karaf-resources</artifactId>
117 <!-- BouncyCastle Framework Extension Bundles -->
119 <groupId>org.opendaylight.odlparent</groupId>
120 <artifactId>bcpkix-framework-ext</artifactId>
123 <groupId>org.opendaylight.odlparent</groupId>
124 <artifactId>bcprov-framework-ext</artifactId>
131 <artifactId>maven-remote-resources-plugin</artifactId>
137 <groupId>org.apache.maven.plugins</groupId>
138 <artifactId>maven-dependency-plugin</artifactId>
141 <id>apply-branding</id>
145 <phase>prepare-package</phase>
149 <groupId>org.opendaylight.odlparent</groupId>
150 <artifactId>karaf.branding</artifactId>
151 <version>8.1.1-SNAPSHOT</version>
152 <outputDirectory>target/assembly/lib</outputDirectory>
153 <destFileName>karaf.branding-8.1.1-SNAPSHOT.jar</destFileName>
156 <silent>true</silent>
160 <id>unpack-karaf-resources</id>
162 <goal>unpack-dependencies</goal>
164 <phase>prepare-package</phase>
166 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
167 <groupId>org.opendaylight.odlparent</groupId>
168 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
169 <!-- Let maven plugin to configure start.properties -->
170 <!-- Don't apply monkey patches to artifacsts in the system repository -->
171 <excludes>META-INF/**,system/**,etc/startup.properties</excludes>-->
172 <excludeTransitive>true</excludeTransitive>
173 <ignorePermissions>false</ignorePermissions>
174 <silent>true</silent>
178 <id>org.ops4j.pax.url.mvn.cfg</id>
182 <phase>prepare-package</phase>
186 <groupId>org.opendaylight.odlparent</groupId>
187 <artifactId>opendaylight-karaf-resources</artifactId>
188 <type>properties</type>
189 <classifier>config</classifier>
190 <overWrite>true</overWrite>
191 <outputDirectory>${project.build.directory}/assembly/etc/</outputDirectory>
192 <destFileName>org.ops4j.pax.url.mvn.cfg</destFileName>
195 <overWriteReleases>true</overWriteReleases>
196 <overWriteSnapshots>true</overWriteSnapshots>
202 <artifactId>maven-antrun-plugin</artifactId>
205 <id>fix-permissions</id>
206 <phase>prepare-package</phase>
213 <fileset dir="${project.build.directory}/assembly/bin">
214 <!-- Ensure that all the shell scripts are executable -->
215 <exclude name="*.bat"/>
216 <exclude name="contrib/*"/>
225 <groupId>org.apache.karaf.tooling</groupId>
226 <artifactId>karaf-maven-plugin</artifactId>
227 <version>${karaf.version}</version>
228 <extensions>true</extensions>
231 <id>process-resources</id>
232 <phase>process-resources</phase>
234 <goal>assembly</goal>
246 <!-- FIXME: we want to generate these versions somehow -->
247 <bundle>mvn:org.apache.felix/org.apache.felix.cm.json/1.0.2</bundle>
248 <bundle>mvn:org.apache.felix/org.apache.felix.converter/1.0.14</bundle>
249 <bundle>mvn:org.apache.felix/org.apache.felix.fileinstall/3.6.8</bundle>
250 <bundle>mvn:org.apache.sling/org.apache.sling.commons.johnzon/1.2.6</bundle>
251 <bundle>mvn:org.ops4j.pax.url/pax-url-aether/2.6.5</bundle>
253 <bundle>mvn:org.opendaylight.odlparent/bcprov-framework-ext/8.1.1-SNAPSHOT</bundle>
254 <bundle>mvn:org.opendaylight.odlparent/bcpkix-framework-ext/8.1.1-SNAPSHOT</bundle>
257 <feature>static-framework</feature>
258 <feature>scr</feature>
259 <feature>log</feature>
260 <feature>system</feature>
261 <!-- disable shell by default-->
262 <!-- <feature>shell</feature>-->
263 <feature>feature</feature>
264 <feature>deployer</feature>
265 <feature>wrap</feature>
266 <feature>aries-blueprint</feature>
267 <feature>eventadmin</feature>
269 <writeProfiles>true</writeProfiles>
270 <framework>static</framework>
271 <useReferenceUrls>true</useReferenceUrls>
272 <environment>static</environment>
273 <javase>${maven.compiler.release}</javase>
274 <archiveTarGz>${karaf.archiveTarGz}</archiveTarGz>
275 <archiveZip>${karaf.archiveZip}</archiveZip>