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 Necessary TODO: Hookup your parent pom here, else you will not get necessary versions,
6 maven repos etc. If you run this archetype in a subdirectory of your project, it
7 will pick the pom.xml from the parent directory as the parent pom, which may or may
10 <artifactId>${artifactId}</artifactId>
11 <groupId>${groupId}</groupId>
12 <!-- Optional TODO: Uncomment version if you are not using a parent pom.xml
13 <version>${version}</version>
15 <packaging>pom</packaging>
20 <!-- Optional TODO: Move these properties to your parent pom and possibly
21 DependencyManagement section of your parent pom -->
22 <branding.version>1.0.0-SNAPSHOT</branding.version>
23 <karaf.resources.version>1.4.2-SNAPSHOT</karaf.resources.version>
24 <karaf.version>3.0.1</karaf.version>
28 <!-- Basic Karaf dependencies -->
30 <groupId>org.apache.karaf.features</groupId>
31 <artifactId>framework</artifactId>
32 <version>${karaf.version}</version>
36 <groupId>org.apache.karaf.features</groupId>
37 <artifactId>standard</artifactId>
38 <version>${karaf.version}</version>
39 <classifier>features</classifier>
41 <scope>runtime</scope>
46 <groupId>org.opendaylight.controller</groupId>
47 <artifactId>karaf.branding</artifactId>
48 <version>${branding.version}</version>
49 <scope>compile</scope>
52 <!-- ODL Resources needed for karaf -->
54 <groupId>org.opendaylight.controller</groupId>
55 <artifactId>opendaylight-karaf-resources</artifactId>
56 <version>${karaf.resources.version}</version>
59 <!-- Project local feautures -->
61 Necessary TODO put your features here.
63 Note: they will need to be <type>xml</xml>
64 and <classifier>features</classifier>.
66 Note: they must be <scope>runtime</scope>
68 Note: usually you would only need to depend
69 on your own feature file here for your local distro,
70 and possible the features-mdsal for odl-restconf
71 (although, strange situations do exist :) )
75 <groupId>org.opendaylight.controller</groupId>
76 <artifactId>features-mdsal</artifactId>
77 <classifier>features</classifier>
79 <scope>runtime</scope>
82 <groupId>org.opendaylight.openflowplugin</groupId>
83 <artifactId>features-openflowplugin</artifactId>
84 <version>0.0.3-SNAPSHOT</version>
85 <classifier>features</classifier>
87 <scope>runtime</scope>
96 <groupId>org.eclipse.m2e</groupId>
97 <artifactId>lifecycle-mapping</artifactId>
98 <version>1.0.0</version>
100 <lifecycleMappingMetadata>
103 <pluginExecutionFilter>
104 <groupId>org.apache.felix</groupId>
105 <artifactId>maven-bundle-plugin</artifactId>
106 <versionRange>[0,)</versionRange>
108 <goal>cleanVersions</goal>
110 </pluginExecutionFilter>
116 <pluginExecutionFilter>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-dependency-plugin</artifactId>
119 <versionRange>[0,)</versionRange>
124 </pluginExecutionFilter>
130 <pluginExecutionFilter>
131 <groupId>org.apache.karaf.tooling</groupId>
132 <artifactId>karaf-maven-plugin</artifactId>
133 <versionRange>[0,)</versionRange>
135 <goal>commands-generate-help</goal>
137 </pluginExecutionFilter>
143 <pluginExecutionFilter>
144 <groupId>org.fusesource.scalate</groupId>
145 <artifactId>maven-scalate-plugin</artifactId>
146 <versionRange>[0,)</versionRange>
150 </pluginExecutionFilter>
156 <pluginExecutionFilter>
157 <groupId>org.apache.servicemix.tooling</groupId>
158 <artifactId>depends-maven-plugin</artifactId>
159 <versionRange>[0,)</versionRange>
161 <goal>generate-depends-file</goal>
163 </pluginExecutionFilter>
169 </lifecycleMappingMetadata>
176 <groupId>org.apache.karaf.tooling</groupId>
177 <artifactId>karaf-maven-plugin</artifactId>
178 <version>${karaf.version}</version>
179 <extensions>true</extensions>
182 <feature>standard</feature>
184 Optional TODO: Add entries here for the features you want in your local distro
185 Note: odl-restconf is a separate feature from odl-mdsal-broker. If you want
186 restconf, you need to list it here explicitely.
188 <feature>odl-openflowplugin-flow-services</feature>
189 <feature>odl-restconf</feature>
191 <!-- Final TODO: Remove TODO Comments ;) -->
196 <id>process-resources</id>
198 <goal>install-kars</goal>
200 <phase>process-resources</phase>
205 <goal>instance-create-archive</goal>
211 <groupId>org.apache.maven.plugins</groupId>
212 <artifactId>maven-dependency-plugin</artifactId>
213 <version>2.6</version>
220 <phase>generate-resources</phase>
224 <groupId>org.opendaylight.controller</groupId>
225 <artifactId>karaf.branding</artifactId>
226 <version>${karaf.branding.version}</version>
227 <outputDirectory>target/assembly/lib</outputDirectory>
228 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
234 <id>unpack-karaf-resources</id>
236 <goal>unpack-dependencies</goal>
238 <phase>prepare-package</phase>
240 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
241 <groupId>org.opendaylight.controller</groupId>
242 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
243 <excludes>META-INF\/**</excludes>
244 <excludeTransitive>true</excludeTransitive>
245 <ignorePermissions>false</ignorePermissions>
251 <groupId>org.apache.maven.plugins</groupId>
252 <artifactId>maven-antrun-plugin</artifactId>
255 <phase>prepare-package</phase>
262 <fileset dir="${project.build.directory}/assembly/bin">
263 <include name="karaf" />
264 <include name="instance" />
265 <include name="start"/>
266 <include name="stop"/>
267 <include name="status"/>
268 <include name="client"/>
269 <include name="shell"/>
280 <connection>scm:git:ssh://git.opendaylight.org:29418/${repoName}.git</connection>
281 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/${repoName}.git</developerConnection>
283 <url>https://git.opendaylight.org/gerrit/gitweb?p=${repoName}.git;a=summary</url>