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>4.0.8-SNAPSHOT</version>
18 <relativePath>../../odlparent</relativePath>
21 <groupId>org.opendaylight.odlparent</groupId>
22 <artifactId>karaf4-parent</artifactId>
23 <version>4.0.8-SNAPSHOT</version>
24 <packaging>pom</packaging>
25 <name>ODL :: odlparent :: ${project.artifactId}</name>
28 <!-- Projects can override this to add their own boot feature -->
29 <karaf.localFeature>standard</karaf.localFeature>
30 <karaf.archiveZip>true</karaf.archiveZip>
31 <karaf.archiveTarGz>true</karaf.archiveTarGz>
34 <dependencyManagement>
37 <groupId>org.apache.karaf.features</groupId>
38 <artifactId>framework</artifactId>
39 <version>${karaf.version}</version>
43 <groupId>org.apache.karaf.features</groupId>
44 <artifactId>framework</artifactId>
45 <version>${karaf.version}</version>
46 <classifier>features</classifier>
50 <groupId>org.apache.karaf.features</groupId>
51 <artifactId>standard</artifactId>
52 <version>${karaf.version}</version>
53 <classifier>features</classifier>
57 </dependencyManagement>
61 <groupId>org.apache.karaf.features</groupId>
62 <artifactId>framework</artifactId>
66 <groupId>org.apache.karaf.features</groupId>
67 <artifactId>framework</artifactId>
68 <classifier>features</classifier>
70 <scope>runtime</scope>
73 <groupId>org.apache.karaf.features</groupId>
74 <artifactId>standard</artifactId>
75 <classifier>features</classifier>
77 <scope>runtime</scope>
80 <groupId>org.apache.aries.quiesce</groupId>
81 <artifactId>org.apache.aries.quiesce.api</artifactId>
84 <groupId>org.osgi</groupId>
85 <!-- for https://bugs.opendaylight.org/show_bug.cgi?id=4290 -->
86 <artifactId>org.osgi.service.event</artifactId>
89 <groupId>org.bouncycastle</groupId>
90 <artifactId>bcpkix-jdk15on</artifactId>
93 <groupId>org.bouncycastle</groupId>
94 <artifactId>bcprov-ext-jdk15on</artifactId>
97 <!-- Optional dependency of karaf.config.core -->
99 <groupId>org.apache.felix</groupId>
100 <artifactId>org.apache.felix.metatype</artifactId>
103 <!-- ODL Branding -->
105 <groupId>org.opendaylight.odlparent</groupId>
106 <artifactId>karaf.branding</artifactId>
108 <!-- ODL configuration -->
110 <groupId>org.opendaylight.odlparent</groupId>
111 <artifactId>opendaylight-karaf-resources</artifactId>
114 <!-- Patched dependencies (see opendaylight-karaf-resources) -->
116 <groupId>org.ow2.asm</groupId>
117 <artifactId>asm-all</artifactId>
118 <version>5.0.4</version>
119 <scope>provided</scope>
122 <groupId>commons-collections</groupId>
123 <artifactId>commons-collections</artifactId>
124 <version>3.2.2</version>
125 <scope>provided</scope>
128 <groupId>javax.mail</groupId>
129 <artifactId>mail</artifactId>
130 <version>1.4.4</version>
131 <scope>provided</scope>
138 <artifactId>maven-remote-resources-plugin</artifactId>
144 <groupId>org.opendaylight.odlparent</groupId>
145 <artifactId>karaf-plugin</artifactId>
146 <version>4.0.8-SNAPSHOT</version>
149 <id>populate-local-repo</id>
150 <phase>prepare-package</phase>
152 <goal>populate-local-repo</goal>
155 <localRepo>${project.build.directory}/assembly/system</localRepo>
161 <groupId>org.apache.maven.plugins</groupId>
162 <artifactId>maven-dependency-plugin</artifactId>
169 <phase>prepare-package</phase>
173 <groupId>org.opendaylight.odlparent</groupId>
174 <artifactId>karaf.branding</artifactId>
175 <version>4.0.8-SNAPSHOT</version>
176 <outputDirectory>target/assembly/lib</outputDirectory>
177 <destFileName>karaf.branding-3.0.0-SNAPSHOT.jar</destFileName>
183 <id>unpack-karaf-resources</id>
185 <goal>unpack-dependencies</goal>
187 <phase>prepare-package</phase>
189 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
190 <groupId>org.opendaylight.odlparent</groupId>
191 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
192 <excludes>META-INF\/**</excludes>
193 <excludeTransitive>true</excludeTransitive>
194 <ignorePermissions>false</ignorePermissions>
198 <id>org.ops4j.pax.url.mvn.cfg</id>
202 <phase>prepare-package</phase>
206 <groupId>org.opendaylight.odlparent</groupId>
207 <artifactId>opendaylight-karaf-resources</artifactId>
208 <type>properties</type>
209 <classifier>config</classifier>
210 <overWrite>true</overWrite>
211 <outputDirectory>${project.build.directory}/assembly/etc/</outputDirectory>
212 <destFileName>org.ops4j.pax.url.mvn.cfg</destFileName>
215 <overWriteReleases>true</overWriteReleases>
216 <overWriteSnapshots>true</overWriteSnapshots>
222 <artifactId>maven-resources-plugin</artifactId>
225 <id>copy-resources</id>
226 <phase>prepare-package</phase>
228 <goal>copy-resources</goal>
231 <outputDirectory>${basedir}/target/assembly</outputDirectory>
234 <directory>src/main/assembly</directory>
237 <overwrite>true</overwrite>
241 <id>process-resources</id>
243 <goal>resources</goal>
249 <artifactId>maven-antrun-plugin</artifactId>
252 <id>fix-permissions</id>
253 <phase>prepare-package</phase>
260 <fileset dir="${project.build.directory}/assembly/bin">
261 <!-- Ensure that all the shell scripts are executable -->
262 <exclude name="*.bat"/>
263 <exclude name="contrib/*"/>
272 <groupId>org.apache.karaf.tooling</groupId>
273 <artifactId>karaf-maven-plugin</artifactId>
274 <!-- Revert to ${karaf.version} once the POM deployment issue is fixed -->
275 <version>4.2.1</version>
278 <id>process-resources</id>
279 <phase>process-resources</phase>
281 <goal>assembly</goal>
293 <feature>wrapper</feature>
296 <feature>standard</feature>
297 <!-- Features always assumed to be present. Keep in sync with feature parent exclusions. -->
298 <feature>ssh</feature>
299 <!-- Local feature if any -->
300 <feature>${karaf.localFeature}</feature>
303 <archiveTarGz>${karaf.archiveTarGz}</archiveTarGz>
304 <archiveZip>${karaf.archiveZip}</archiveZip>