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 <artifactId>packetcable</artifactId>
6 <groupId>org.opendaylight.packetcable</groupId>
7 <version>1.2.0-SNAPSHOT</version>
9 <artifactId>packetcable-policy-karaf</artifactId>
10 <packaging>pom</packaging>
15 <!-- Optional TODO: Move these properties to your parent pom and possibly
16 DependencyManagement section of your parent pom -->
17 <branding.version>1.1.0-SNAPSHOT</branding.version>
18 <karaf.resources.version>1.5.0-SNAPSHOT</karaf.resources.version>
22 <!-- Basic Karaf dependencies -->
24 <groupId>org.apache.karaf.features</groupId>
25 <artifactId>framework</artifactId>
26 <version>${karaf.version}</version>
30 <groupId>org.apache.karaf.features</groupId>
31 <artifactId>standard</artifactId>
32 <version>${karaf.version}</version>
33 <classifier>features</classifier>
35 <scope>runtime</scope>
40 <groupId>org.opendaylight.controller</groupId>
41 <artifactId>karaf.branding</artifactId>
42 <version>${branding.version}</version>
43 <scope>compile</scope>
46 <!-- ODL Resources needed for karaf -->
48 <groupId>org.opendaylight.controller</groupId>
49 <artifactId>opendaylight-karaf-resources</artifactId>
50 <version>${karaf.resources.version}</version>
53 <!-- Project local feautures -->
55 Necessary TODO put your features here.
57 Note: they will need to be <type>xml</xml>
58 and <classifier>features</classifier>.
60 Note: they must be <scope>runtime</scope>
62 Note: usually you would only need to depend
63 on your own feature file here for your local distro,
64 and possible the features-mdsal for odl-restconf
65 (although, strange situations do exist :) )
69 <groupId>org.opendaylight.controller</groupId>
70 <artifactId>features-mdsal</artifactId>
71 <classifier>features</classifier>
73 <scope>runtime</scope>
76 <groupId>org.opendaylight.openflowplugin</groupId>
77 <artifactId>features-openflowplugin</artifactId>
78 <version>0.1.0-SNAPSHOT</version>
79 <classifier>features</classifier>
81 <scope>runtime</scope>
85 <groupId>org.opendaylight.controller</groupId>
86 <artifactId>features-mdsal</artifactId>
87 <classifier>features</classifier>
88 <version>${project.version}</version>
90 <scope>runtime</scope>
94 <groupId>org.opendaylight.l2switch</groupId>
95 <artifactId>features-l2switch</artifactId>
96 <classifier>features</classifier>
97 <version>0.2.0-SNAPSHOT</version>
99 <scope>runtime</scope>
103 <groupId>org.opendaylight.controller</groupId>
104 <artifactId>features-restconf</artifactId>
105 <classifier>features</classifier>
106 <version>1.2.0-SNAPSHOT</version>
108 <scope>runtime</scope>
111 <groupId>org.opendaylight.dlux</groupId>
112 <artifactId>features-dlux</artifactId>
113 <classifier>features</classifier>
114 <version>0.2.0-SNAPSHOT</version>
116 <scope>runtime</scope>
119 <groupId>org.opendaylight.packetcable</groupId>
120 <artifactId>features-packetcable-policy</artifactId>
121 <classifier>features</classifier>
122 <version>${project.version}</version>
124 <scope>runtime</scope>
132 <groupId>org.eclipse.m2e</groupId>
133 <artifactId>lifecycle-mapping</artifactId>
134 <version>1.0.0</version>
136 <lifecycleMappingMetadata>
139 <pluginExecutionFilter>
140 <groupId>org.apache.felix</groupId>
141 <artifactId>maven-bundle-plugin</artifactId>
142 <versionRange>[0,)</versionRange>
144 <goal>cleanVersions</goal>
146 </pluginExecutionFilter>
152 <pluginExecutionFilter>
153 <groupId>org.apache.maven.plugins</groupId>
154 <artifactId>maven-dependency-plugin</artifactId>
155 <versionRange>[0,)</versionRange>
160 </pluginExecutionFilter>
166 <pluginExecutionFilter>
167 <groupId>org.apache.karaf.tooling</groupId>
168 <artifactId>karaf-maven-plugin</artifactId>
169 <versionRange>[0,)</versionRange>
171 <goal>commands-generate-help</goal>
173 </pluginExecutionFilter>
179 <pluginExecutionFilter>
180 <groupId>org.fusesource.scalate</groupId>
181 <artifactId>maven-scalate-plugin</artifactId>
182 <versionRange>[0,)</versionRange>
186 </pluginExecutionFilter>
192 <pluginExecutionFilter>
193 <groupId>org.apache.servicemix.tooling</groupId>
194 <artifactId>depends-maven-plugin</artifactId>
195 <versionRange>[0,)</versionRange>
197 <goal>generate-depends-file</goal>
199 </pluginExecutionFilter>
205 </lifecycleMappingMetadata>
212 <groupId>org.apache.karaf.tooling</groupId>
213 <artifactId>karaf-maven-plugin</artifactId>
214 <version>${karaf.version}</version>
215 <extensions>true</extensions>
218 <feature>standard</feature>
219 <!-- Uncomment the following lines to ensure restconf & dlux are automatically installed -->
220 <!--<feature>odl-restconf</feature>-->
221 <!--<feature>odl-dlux-core</feature>-->
222 <feature>odl-mdsal-apidocs</feature>
223 <feature>odl-packetcable-policy-server-all</feature>
225 Optional TODO: Add entries here for the features you want in your local distro
226 Note: odl-restconf is a separate feature from odl-mdsal-broker. If you want
227 restconf, you need to list it here explicitely.
229 <feature>odl-openflowplugin-flow-services</feature>
230 <feature>odl-restconf</feature>
232 <!-- Final TODO: Remove TODO Comments ;) -->
237 <id>process-resources</id>
239 <goal>install-kars</goal>
241 <phase>process-resources</phase>
246 <goal>instance-create-archive</goal>
252 <groupId>org.apache.maven.plugins</groupId>
253 <artifactId>maven-dependency-plugin</artifactId>
254 <version>2.6</version>
261 <phase>generate-resources</phase>
265 <groupId>org.opendaylight.controller</groupId>
266 <artifactId>karaf.branding</artifactId>
267 <version>${karaf.branding.version}</version>
268 <outputDirectory>target/assembly/lib</outputDirectory>
269 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
275 <id>unpack-karaf-resources</id>
277 <goal>unpack-dependencies</goal>
279 <phase>prepare-package</phase>
281 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
282 <groupId>org.opendaylight.controller</groupId>
283 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
284 <excludes>META-INF\/**</excludes>
285 <excludeTransitive>true</excludeTransitive>
286 <ignorePermissions>false</ignorePermissions>
292 <groupId>org.apache.maven.plugins</groupId>
293 <artifactId>maven-antrun-plugin</artifactId>
296 <phase>prepare-package</phase>
303 <fileset dir="${project.build.directory}/assembly/bin">
304 <include name="karaf" />
305 <include name="instance" />
306 <include name="start" />
307 <include name="stop" />
308 <include name="status" />
309 <include name="client" />
310 <include name="shell" />
321 <connection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</connection>
322 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</developerConnection>
324 <url>https://git.opendaylight.org/gerrit/gitweb?p=packetcable.git;a=summary</url>