1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3 <modelVersion>4.0.0</modelVersion>
5 <groupId>org.opendaylight.l2switch</groupId>
6 <artifactId>l2switch-parent</artifactId>
7 <version>0.2.2-SNAPSHOT</version>
8 <relativePath>../../parent</relativePath>
10 <artifactId>distribution-karaf</artifactId>
11 <groupId>org.opendaylight.l2switch</groupId>
12 <packaging>pom</packaging>
17 <branding.version>1.1.2-SNAPSHOT</branding.version>
18 <karaf.resources.version>1.5.2-SNAPSHOT</karaf.resources.version>
19 <karaf.version>3.0.1</karaf.version>
23 <!-- Basic Karaf dependencies -->
25 <groupId>org.apache.karaf.features</groupId>
26 <artifactId>framework</artifactId>
27 <version>${karaf.version}</version>
31 <groupId>org.apache.karaf.features</groupId>
32 <artifactId>standard</artifactId>
33 <version>${karaf.version}</version>
34 <classifier>features</classifier>
36 <scope>runtime</scope>
41 <groupId>org.opendaylight.controller</groupId>
42 <artifactId>karaf.branding</artifactId>
43 <version>${branding.version}</version>
44 <scope>compile</scope>
47 <!-- ODL Resources needed for karaf -->
49 <groupId>org.opendaylight.controller</groupId>
50 <artifactId>opendaylight-karaf-resources</artifactId>
51 <version>${karaf.resources.version}</version>
54 <!-- dependencies on feature repos -->
56 <groupId>org.opendaylight.controller</groupId>
57 <artifactId>features-mdsal</artifactId>
58 <classifier>features</classifier>
60 <scope>runtime</scope>
63 <groupId>org.opendaylight.l2switch</groupId>
64 <artifactId>features-l2switch</artifactId>
65 <version>${project.version}</version>
66 <classifier>features</classifier>
68 <scope>runtime</scope>
76 <groupId>org.eclipse.m2e</groupId>
77 <artifactId>lifecycle-mapping</artifactId>
78 <version>1.0.0</version>
80 <lifecycleMappingMetadata>
83 <pluginExecutionFilter>
84 <groupId>org.apache.felix</groupId>
85 <artifactId>maven-bundle-plugin</artifactId>
86 <versionRange>[0,)</versionRange>
88 <goal>cleanVersions</goal>
90 </pluginExecutionFilter>
96 <pluginExecutionFilter>
97 <groupId>org.apache.maven.plugins</groupId>
98 <artifactId>maven-dependency-plugin</artifactId>
99 <versionRange>[0,)</versionRange>
104 </pluginExecutionFilter>
110 <pluginExecutionFilter>
111 <groupId>org.apache.karaf.tooling</groupId>
112 <artifactId>karaf-maven-plugin</artifactId>
113 <versionRange>[0,)</versionRange>
115 <goal>commands-generate-help</goal>
117 </pluginExecutionFilter>
123 <pluginExecutionFilter>
124 <groupId>org.fusesource.scalate</groupId>
125 <artifactId>maven-scalate-plugin</artifactId>
126 <versionRange>[0,)</versionRange>
130 </pluginExecutionFilter>
136 <pluginExecutionFilter>
137 <groupId>org.apache.servicemix.tooling</groupId>
138 <artifactId>depends-maven-plugin</artifactId>
139 <versionRange>[0,)</versionRange>
141 <goal>generate-depends-file</goal>
143 </pluginExecutionFilter>
149 </lifecycleMappingMetadata>
156 <groupId>org.apache.karaf.tooling</groupId>
157 <artifactId>karaf-maven-plugin</artifactId>
158 <version>${karaf.version}</version>
159 <extensions>true</extensions>
162 <feature>standard</feature>
163 <feature>odl-l2switch-switch-ui</feature>
168 <id>process-resources</id>
170 <goal>install-kars</goal>
172 <phase>process-resources</phase>
177 <goal>instance-create-archive</goal>
183 <groupId>org.apache.maven.plugins</groupId>
184 <artifactId>maven-dependency-plugin</artifactId>
185 <version>2.6</version>
192 <!-- here the phase you need -->
193 <phase>generate-resources</phase>
197 <groupId>org.opendaylight.controller</groupId>
198 <artifactId>karaf.branding</artifactId>
199 <version>${karaf.branding.version}</version>
200 <outputDirectory>target/assembly/lib</outputDirectory>
201 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
207 <id>unpack-karaf-resources</id>
209 <goal>unpack-dependencies</goal>
211 <phase>prepare-package</phase>
213 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
214 <groupId>org.opendaylight.controller</groupId>
215 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
216 <excludes>META-INF\/**</excludes>
217 <excludeTransitive>true</excludeTransitive>
218 <ignorePermissions>false</ignorePermissions>
224 <groupId>org.apache.maven.plugins</groupId>
225 <artifactId>maven-antrun-plugin</artifactId>
228 <phase>prepare-package</phase>
235 <fileset dir="${project.build.directory}/assembly/bin">
236 <include name="karaf" />
237 <include name="instance" />
238 <include name="start"/>
239 <include name="stop"/>
240 <include name="status"/>
241 <include name="client"/>
242 <include name="shell"/>
253 <connection>scm:git:ssh://git.opendaylight.org:29418/l2switch.git</connection>
254 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/l2switch.git</developerConnection>
256 <url>https://git.opendaylight.org/gerrit/gitweb?p=l2switch.git;a=summary</url>