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>3.1.2-SNAPSHOT</version>
18 <relativePath>../../odlparent</relativePath>
21 <groupId>org.opendaylight.odlparent</groupId>
22 <artifactId>karaf4-parent</artifactId>
23 <version>3.1.2-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>bcprov-jdk15on</artifactId>
93 <groupId>org.bouncycastle</groupId>
94 <artifactId>bcpkix-jdk15on</artifactId>
97 <groupId>org.bouncycastle</groupId>
98 <artifactId>bcprov-ext-jdk15on</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>
112 <!-- ODL configuration -->
114 <groupId>org.opendaylight.odlparent</groupId>
115 <artifactId>opendaylight-karaf-resources</artifactId>
118 <!-- Patched dependencies (see opendaylight-karaf-resources) -->
120 <groupId>org.ow2.asm</groupId>
121 <artifactId>asm-all</artifactId>
122 <version>5.0.4</version>
123 <scope>provided</scope>
126 <groupId>commons-collections</groupId>
127 <artifactId>commons-collections</artifactId>
128 <version>3.2.2</version>
129 <scope>provided</scope>
132 <groupId>javax.mail</groupId>
133 <artifactId>mail</artifactId>
134 <version>1.4.4</version>
135 <scope>provided</scope>
142 <artifactId>maven-remote-resources-plugin</artifactId>
148 <groupId>org.opendaylight.odlparent</groupId>
149 <artifactId>karaf-plugin</artifactId>
150 <version>3.1.2-SNAPSHOT</version>
153 <id>populate-local-repo</id>
154 <phase>prepare-package</phase>
156 <goal>populate-local-repo</goal>
159 <localRepo>${project.build.directory}/assembly/system</localRepo>
165 <groupId>org.apache.maven.plugins</groupId>
166 <artifactId>maven-dependency-plugin</artifactId>
173 <phase>prepare-package</phase>
177 <groupId>org.opendaylight.odlparent</groupId>
178 <artifactId>karaf.branding</artifactId>
179 <version>3.1.2-SNAPSHOT</version>
180 <outputDirectory>target/assembly/lib</outputDirectory>
181 <destFileName>karaf.branding-3.1.2-SNAPSHOT.jar</destFileName>
187 <id>unpack-karaf-resources</id>
189 <goal>unpack-dependencies</goal>
191 <phase>prepare-package</phase>
193 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
194 <groupId>org.opendaylight.odlparent</groupId>
195 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
196 <excludes>META-INF\/**</excludes>
197 <excludeTransitive>true</excludeTransitive>
198 <ignorePermissions>false</ignorePermissions>
202 <id>org.ops4j.pax.url.mvn.cfg</id>
206 <phase>prepare-package</phase>
210 <groupId>org.opendaylight.odlparent</groupId>
211 <artifactId>opendaylight-karaf-resources</artifactId>
212 <type>properties</type>
213 <classifier>config</classifier>
214 <overWrite>true</overWrite>
215 <outputDirectory>${project.build.directory}/assembly/etc/</outputDirectory>
216 <destFileName>org.ops4j.pax.url.mvn.cfg</destFileName>
219 <overWriteReleases>true</overWriteReleases>
220 <overWriteSnapshots>true</overWriteSnapshots>
226 <artifactId>maven-resources-plugin</artifactId>
229 <id>copy-resources</id>
230 <phase>prepare-package</phase>
232 <goal>copy-resources</goal>
235 <outputDirectory>${basedir}/target/assembly</outputDirectory>
238 <directory>src/main/assembly</directory>
241 <overwrite>true</overwrite>
245 <id>process-resources</id>
247 <goal>resources</goal>
253 <artifactId>maven-antrun-plugin</artifactId>
256 <id>fix-permissions</id>
257 <phase>prepare-package</phase>
264 <fileset dir="${project.build.directory}/assembly/bin">
265 <!-- Ensure that all the shell scripts are executable -->
266 <exclude name="*.bat"/>
267 <exclude name="contrib/*"/>
276 <groupId>org.apache.karaf.tooling</groupId>
277 <artifactId>karaf-maven-plugin</artifactId>
278 <version>${karaf.plugin.version}</version>
281 <id>process-resources</id>
282 <phase>process-resources</phase>
284 <goal>assembly</goal>
296 <feature>wrapper</feature>
299 <feature>standard</feature>
300 <!-- Features always assumed to be present. Keep in sync with feature parent exclusions. -->
301 <feature>ssh</feature>
302 <!-- Local feature if any -->
303 <feature>${karaf.localFeature}</feature>
306 <archiveTarGz>${karaf.archiveTarGz}</archiveTarGz>
307 <archiveZip>${karaf.archiveZip}</archiveZip>