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>9.0.6-SNAPSHOT</version>
18 <relativePath>../../odlparent</relativePath>
21 <artifactId>karaf-dist-static</artifactId>
22 <version>9.0.6-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 <groupId>org.bouncycastle</groupId>
61 <artifactId>bcutil-jdk15on</artifactId>
64 </dependencyManagement>
67 <!-- karaf static distribution -->
69 <groupId>org.apache.karaf.features</groupId>
70 <artifactId>static</artifactId>
74 <groupId>org.apache.karaf.features</groupId>
75 <artifactId>standard</artifactId>
76 <classifier>features</classifier>
80 <groupId>org.apache.karaf.services</groupId>
81 <artifactId>org.apache.karaf.services.staticcm</artifactId>
85 <groupId>org.ops4j.pax.url</groupId>
86 <artifactId>pax-url-aether</artifactId>
87 <!-- FIXME: why do we need this version (maven-3.6.3 defaults to 2.5.4) -->
88 <version>2.6.5</version>
91 <!-- required by controller component -->
93 <groupId>org.apache.aries.quiesce</groupId>
94 <artifactId>org.apache.aries.quiesce.api</artifactId>
97 <!-- for https://jira.opendaylight.org/browse/ODLPARENT-24 -->
99 <groupId>org.osgi</groupId>
100 <artifactId>org.osgi.service.event</artifactId>
103 <!-- Optional dependency of karaf.config.core -->
105 <groupId>org.apache.felix</groupId>
106 <artifactId>org.apache.felix.metatype</artifactId>
109 <!-- ODL Branding -->
111 <groupId>org.opendaylight.odlparent</groupId>
112 <artifactId>karaf.branding</artifactId>
115 <!-- ODL configuration -->
117 <groupId>org.opendaylight.odlparent</groupId>
118 <artifactId>opendaylight-karaf-resources</artifactId>
121 <!-- BouncyCastle Framework Extension Bundles -->
123 <groupId>org.opendaylight.odlparent</groupId>
124 <artifactId>bcpkix-framework-ext</artifactId>
127 <groupId>org.opendaylight.odlparent</groupId>
128 <artifactId>bcprov-framework-ext</artifactId>
135 <artifactId>maven-remote-resources-plugin</artifactId>
141 <groupId>org.apache.maven.plugins</groupId>
142 <artifactId>maven-dependency-plugin</artifactId>
145 <id>apply-branding</id>
149 <phase>prepare-package</phase>
153 <groupId>org.opendaylight.odlparent</groupId>
154 <artifactId>karaf.branding</artifactId>
155 <version>9.0.6-SNAPSHOT</version>
156 <outputDirectory>target/assembly/lib</outputDirectory>
157 <destFileName>karaf.branding-9.0.6-SNAPSHOT.jar</destFileName>
160 <silent>true</silent>
164 <id>unpack-karaf-resources</id>
166 <goal>unpack-dependencies</goal>
168 <phase>prepare-package</phase>
170 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
171 <groupId>org.opendaylight.odlparent</groupId>
172 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
173 <!-- Let maven plugin to configure start.properties -->
174 <!-- Don't apply monkey patches to artifacsts in the system repository -->
175 <excludes>META-INF/**,system/**,etc/startup.properties</excludes>-->
176 <excludeTransitive>true</excludeTransitive>
177 <ignorePermissions>false</ignorePermissions>
178 <silent>true</silent>
182 <id>org.ops4j.pax.url.mvn.cfg</id>
186 <phase>prepare-package</phase>
190 <groupId>org.opendaylight.odlparent</groupId>
191 <artifactId>opendaylight-karaf-resources</artifactId>
192 <type>properties</type>
193 <classifier>config</classifier>
194 <overWrite>true</overWrite>
195 <outputDirectory>${project.build.directory}/assembly/etc/</outputDirectory>
196 <destFileName>org.ops4j.pax.url.mvn.cfg</destFileName>
199 <overWriteReleases>true</overWriteReleases>
200 <overWriteSnapshots>true</overWriteSnapshots>
206 <artifactId>maven-antrun-plugin</artifactId>
209 <id>fix-permissions</id>
210 <phase>prepare-package</phase>
217 <fileset dir="${project.build.directory}/assembly/bin">
218 <!-- Ensure that all the shell scripts are executable -->
219 <exclude name="*.bat"/>
220 <exclude name="contrib/*"/>
229 <groupId>org.apache.karaf.tooling</groupId>
230 <artifactId>karaf-maven-plugin</artifactId>
231 <version>${karaf.version}</version>
232 <extensions>true</extensions>
235 <id>process-resources</id>
236 <phase>process-resources</phase>
238 <goal>assembly</goal>
250 <!-- FIXME: we want to generate these versions somehow -->
251 <bundle>mvn:org.apache.felix/org.apache.felix.cm.json/1.0.2</bundle>
252 <bundle>mvn:org.apache.felix/org.apache.felix.converter/1.0.14</bundle>
253 <bundle>mvn:org.apache.felix/org.apache.felix.fileinstall/3.6.8</bundle>
254 <bundle>mvn:org.apache.sling/org.apache.sling.commons.johnzon/1.2.6</bundle>
255 <bundle>mvn:org.ops4j.pax.url/pax-url-aether/2.6.5</bundle>
257 <bundle>mvn:org.opendaylight.odlparent/bcprov-framework-ext/9.0.6-SNAPSHOT</bundle>
258 <bundle>mvn:org.opendaylight.odlparent/bcpkix-framework-ext/9.0.6-SNAPSHOT</bundle>
259 <bundle>mvn:org.opendaylight.odlparent/bcutil-framework-ext/9.0.6-SNAPSHOT</bundle>
262 <feature>static-framework</feature>
263 <feature>scr</feature>
264 <feature>log</feature>
265 <feature>system</feature>
266 <!-- disable shell by default-->
267 <!-- <feature>shell</feature>-->
268 <feature>feature</feature>
269 <feature>deployer</feature>
270 <feature>wrap</feature>
271 <feature>aries-blueprint</feature>
272 <feature>eventadmin</feature>
274 <writeProfiles>true</writeProfiles>
275 <framework>static</framework>
276 <useReferenceUrls>true</useReferenceUrls>
277 <environment>static</environment>
278 <javase>${maven.compiler.release}</javase>
279 <archiveTarGz>${karaf.archiveTarGz}</archiveTarGz>
280 <archiveZip>${karaf.archiveZip}</archiveZip>