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>13.0.9</version>
18 <relativePath>../../odlparent</relativePath>
21 <artifactId>karaf-dist-static</artifactId>
22 <version>13.0.9</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-jdk18on</artifactId>
56 <groupId>org.bouncycastle</groupId>
57 <artifactId>bcprov-jdk18on</artifactId>
60 <groupId>org.bouncycastle</groupId>
61 <artifactId>bcutil-jdk18on</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>
89 <!-- required by controller component -->
91 <groupId>org.apache.aries.quiesce</groupId>
92 <artifactId>org.apache.aries.quiesce.api</artifactId>
95 <!-- for https://jira.opendaylight.org/browse/ODLPARENT-24 -->
97 <groupId>org.osgi</groupId>
98 <artifactId>org.osgi.service.event</artifactId>
101 <!-- Optional dependency of karaf.config.core -->
103 <groupId>org.apache.felix</groupId>
104 <artifactId>org.apache.felix.metatype</artifactId>
107 <!-- ODL Branding -->
109 <groupId>org.opendaylight.odlparent</groupId>
110 <artifactId>karaf.branding</artifactId>
113 <!-- ODL configuration -->
115 <groupId>org.opendaylight.odlparent</groupId>
116 <artifactId>opendaylight-karaf-resources</artifactId>
119 <!-- BouncyCastle Framework Extension Bundles -->
121 <groupId>org.opendaylight.odlparent</groupId>
122 <artifactId>bcpkix-framework-ext</artifactId>
125 <groupId>org.opendaylight.odlparent</groupId>
126 <artifactId>bcprov-framework-ext</artifactId>
133 <artifactId>maven-remote-resources-plugin</artifactId>
139 <groupId>org.apache.maven.plugins</groupId>
140 <artifactId>maven-dependency-plugin</artifactId>
143 <id>apply-branding</id>
147 <phase>prepare-package</phase>
151 <groupId>org.opendaylight.odlparent</groupId>
152 <artifactId>karaf.branding</artifactId>
153 <version>13.0.9</version>
154 <outputDirectory>target/assembly/lib</outputDirectory>
155 <destFileName>karaf.branding-13.0.9.jar</destFileName>
158 <silent>true</silent>
162 <id>unpack-karaf-resources</id>
164 <goal>unpack-dependencies</goal>
166 <phase>prepare-package</phase>
168 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
169 <groupId>org.opendaylight.odlparent</groupId>
170 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
171 <!-- Let maven plugin to configure start.properties -->
172 <!-- Don't apply monkey patches to artifacsts in the system repository -->
173 <excludes>META-INF/**,system/**,etc/startup.properties</excludes>-->
174 <excludeTransitive>true</excludeTransitive>
175 <ignorePermissions>false</ignorePermissions>
176 <silent>true</silent>
180 <id>org.ops4j.pax.url.mvn.cfg</id>
184 <phase>prepare-package</phase>
188 <groupId>org.opendaylight.odlparent</groupId>
189 <artifactId>opendaylight-karaf-resources</artifactId>
190 <type>properties</type>
191 <classifier>config</classifier>
192 <overWrite>true</overWrite>
193 <outputDirectory>${project.build.directory}/assembly/etc/</outputDirectory>
194 <destFileName>org.ops4j.pax.url.mvn.cfg</destFileName>
197 <overWriteReleases>true</overWriteReleases>
198 <overWriteSnapshots>true</overWriteSnapshots>
204 <artifactId>maven-antrun-plugin</artifactId>
207 <id>fix-permissions</id>
208 <phase>prepare-package</phase>
215 <fileset dir="${project.build.directory}/assembly/bin">
216 <!-- Ensure that all the shell scripts are executable -->
217 <exclude name="*.bat"/>
218 <exclude name="contrib/*"/>
227 <groupId>org.apache.karaf.tooling</groupId>
228 <artifactId>karaf-maven-plugin</artifactId>
229 <version>${karaf.version}</version>
230 <extensions>true</extensions>
233 <id>process-resources</id>
234 <phase>process-resources</phase>
236 <goal>assembly</goal>
248 <!-- FIXME: we want to generate these versions somehow -->
249 <bundle>mvn:org.apache.felix/org.apache.felix.cm.json/1.0.6</bundle>
250 <bundle>mvn:org.apache.felix/org.apache.felix.converter/1.0.18</bundle>
251 <bundle>mvn:org.apache.felix/org.apache.felix.fileinstall/3.7.4</bundle>
252 <bundle>mvn:org.apache.sling/org.apache.sling.commons.johnzon/1.2.14</bundle>
253 <bundle>mvn:org.ops4j.pax.url/pax-url-aether/2.6.12</bundle>
255 <bundle>mvn:org.opendaylight.odlparent/bcprov-framework-ext/13.0.9</bundle>
256 <bundle>mvn:org.opendaylight.odlparent/bcpkix-framework-ext/13.0.9</bundle>
257 <bundle>mvn:org.opendaylight.odlparent/bcutil-framework-ext/13.0.9</bundle>
258 <bundle>mvn:org.opendaylight.odlparent/logging-markers/13.0.9</bundle>
261 <feature>static-framework</feature>
262 <feature>scr</feature>
263 <feature>log</feature>
264 <feature>system</feature>
265 <!-- disable shell by default-->
266 <!-- <feature>shell</feature>-->
267 <feature>feature</feature>
268 <feature>deployer</feature>
269 <feature>wrap</feature>
270 <feature>aries-blueprint</feature>
271 <feature>eventadmin</feature>
273 <writeProfiles>true</writeProfiles>
274 <framework>static</framework>
275 <useReferenceUrls>true</useReferenceUrls>
276 <environment>static</environment>
277 <javase>${maven.compiler.release}</javase>
278 <archiveTarGz>${karaf.archiveTarGz}</archiveTarGz>
279 <archiveZip>${karaf.archiveZip}</archiveZip>