1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2014 Cisco Systems, 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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
10 <modelVersion>4.0.0</modelVersion>
12 <groupId>org.opendaylight.lispflowmapping</groupId>
13 <artifactId>lispflowmapping-all</artifactId>
14 <version>1.2.0-SNAPSHOT</version>
16 <artifactId>distribution-karaf</artifactId>
17 <packaging>pom</packaging>
18 <name>LISP Flow Mapping Project - Karaf Distribution</name>
24 <!-- Basic Karaf dependencies -->
26 <groupId>org.apache.karaf.features</groupId>
27 <artifactId>framework</artifactId>
33 <groupId>org.opendaylight.controller</groupId>
34 <artifactId>karaf.branding</artifactId>
35 <scope>compile</scope>
38 <!-- ODL Resources needed for karaf -->
40 <groupId>org.opendaylight.controller</groupId>
41 <artifactId>opendaylight-karaf-resources</artifactId>
44 <groupId>org.apache.karaf.features</groupId>
45 <artifactId>standard</artifactId>
46 <classifier>features</classifier>
48 <scope>runtime</scope>
51 <!-- Project local feautures -->
53 <groupId>org.opendaylight.lispflowmapping</groupId>
54 <artifactId>features-lispflowmapping</artifactId>
55 <classifier>features</classifier>
57 <scope>runtime</scope>
65 <groupId>org.eclipse.m2e</groupId>
66 <artifactId>lifecycle-mapping</artifactId>
67 <version>1.0.0</version>
69 <lifecycleMappingMetadata>
72 <pluginExecutionFilter>
73 <groupId>org.apache.felix</groupId>
74 <artifactId>maven-bundle-plugin</artifactId>
75 <versionRange>[0,)</versionRange>
77 <goal>cleanVersions</goal>
79 </pluginExecutionFilter>
85 <pluginExecutionFilter>
86 <groupId>org.apache.maven.plugins</groupId>
87 <artifactId>maven-dependency-plugin</artifactId>
88 <versionRange>[0,)</versionRange>
93 </pluginExecutionFilter>
99 <pluginExecutionFilter>
100 <groupId>org.apache.karaf.tooling</groupId>
101 <artifactId>karaf-maven-plugin</artifactId>
102 <versionRange>[0,)</versionRange>
104 <goal>commands-generate-help</goal>
106 </pluginExecutionFilter>
112 <pluginExecutionFilter>
113 <groupId>org.fusesource.scalate</groupId>
114 <artifactId>maven-scalate-plugin</artifactId>
115 <versionRange>[0,)</versionRange>
119 </pluginExecutionFilter>
125 <pluginExecutionFilter>
126 <groupId>org.apache.servicemix.tooling</groupId>
127 <artifactId>depends-maven-plugin</artifactId>
128 <versionRange>[0,)</versionRange>
130 <goal>generate-depends-file</goal>
132 </pluginExecutionFilter>
138 </lifecycleMappingMetadata>
145 <groupId>org.apache.karaf.tooling</groupId>
146 <artifactId>karaf-maven-plugin</artifactId>
147 <extensions>true</extensions>
150 <feature>standard</feature>
151 <feature>odl-restconf</feature>
152 <feature>odl-lispflowmapping-all</feature>
157 <id>process-resources</id>
159 <goal>install-kars</goal>
161 <phase>process-resources</phase>
166 <goal>instance-create-archive</goal>
172 <groupId>org.apache.maven.plugins</groupId>
173 <artifactId>maven-antrun-plugin</artifactId>
179 <phase>prepare-package</phase>
183 <fileset dir="${project.build.directory}/assembly/bin">
184 <include name="karaf"></include>
185 <include name="instance"></include>
186 <include name="start"></include>
187 <include name="stop"></include>
188 <include name="status"></include>
189 <include name="client"></include>
190 <include name="shell"></include>
199 <groupId>org.apache.maven.plugins</groupId>
200 <artifactId>maven-dependency-plugin</artifactId>
207 <phase>generate-resources</phase>
211 <groupId>org.opendaylight.controller</groupId>
212 <artifactId>karaf.branding</artifactId>
213 <version>${karaf.branding.version}</version>
214 <outputDirectory>target/assembly/lib</outputDirectory>
215 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
221 <id>unpack-karaf-resources</id>
223 <goal>unpack-dependencies</goal>
225 <phase>prepare-package</phase>
227 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
228 <groupId>org.opendaylight.controller</groupId>
229 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
230 <excludes>META-INF\/**</excludes>
231 <excludeTransitive>true</excludeTransitive>
232 <ignorePermissions>false</ignorePermissions>