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.openflowplugin</groupId>
6 <artifactId>openflowplugin-parent</artifactId>
7 <version>0.2.0-SNAPSHOT</version>
8 <relativePath>../../parent</relativePath>
10 <artifactId>openflowplugin-karaf</artifactId>
11 <packaging>pom</packaging>
16 <branding.version>1.2.0-SNAPSHOT</branding.version>
17 <karaf.resources.version>1.6.0-SNAPSHOT</karaf.resources.version>
22 <!-- scope is compile so all features (there is only one) are installed
23 into startup.properties and the feature repo itself is not installed -->
24 <groupId>org.apache.karaf.features</groupId>
25 <artifactId>framework</artifactId>
26 <version>${karaf.version}</version>
29 <!-- scope is runtime so the feature repo is listed in the features
30 service config file, and features may be installed using the
31 karaf-maven-plugin configuration -->
33 <groupId>org.apache.karaf.features</groupId>
34 <artifactId>standard</artifactId>
35 <version>${karaf.version}</version>
36 <classifier>features</classifier>
38 <scope>runtime</scope>
43 <groupId>org.opendaylight.controller</groupId>
44 <artifactId>karaf.branding</artifactId>
45 <version>${branding.version}</version>
46 <scope>compile</scope>
49 <!-- Resources needed -->
51 <groupId>org.opendaylight.controller</groupId>
52 <artifactId>opendaylight-karaf-resources</artifactId>
53 <version>${karaf.resources.version}</version>
56 <!-- openflowplugin feature -->
58 <artifactId>features-openflowplugin</artifactId>
59 <groupId>org.opendaylight.openflowplugin</groupId>
60 <classifier>features</classifier>
62 <scope>runtime</scope>
65 <artifactId>features-openflowplugin-li</artifactId>
66 <groupId>org.opendaylight.openflowplugin</groupId>
67 <classifier>features</classifier>
69 <scope>runtime</scope>
71 <!-- MD-SAL Related Features -->
73 <groupId>org.opendaylight.controller</groupId>
74 <artifactId>features-mdsal</artifactId>
75 <version>${mdsal.version}</version>
76 <classifier>features</classifier>
78 <scope>runtime</scope>
80 <!-- openflowplugin extension feature -->
82 <groupId>org.opendaylight.openflowplugin</groupId>
83 <artifactId>features-openflowplugin-extension</artifactId>
84 <classifier>features</classifier>
86 <scope>runtime</scope>
94 <groupId>org.eclipse.m2e</groupId>
95 <artifactId>lifecycle-mapping</artifactId>
96 <version>1.0.0</version>
98 <lifecycleMappingMetadata>
101 <pluginExecutionFilter>
102 <groupId>org.apache.felix</groupId>
103 <artifactId>maven-bundle-plugin</artifactId>
104 <versionRange>[0,)</versionRange>
106 <goal>cleanVersions</goal>
108 </pluginExecutionFilter>
114 <pluginExecutionFilter>
115 <groupId>org.apache.maven.plugins</groupId>
116 <artifactId>maven-dependency-plugin</artifactId>
117 <versionRange>[0,)</versionRange>
122 </pluginExecutionFilter>
128 <pluginExecutionFilter>
129 <groupId>org.apache.karaf.tooling</groupId>
130 <artifactId>karaf-maven-plugin</artifactId>
131 <versionRange>[0,)</versionRange>
133 <goal>commands-generate-help</goal>
135 </pluginExecutionFilter>
141 <pluginExecutionFilter>
142 <groupId>org.fusesource.scalate</groupId>
143 <artifactId>maven-scalate-plugin</artifactId>
144 <versionRange>[0,)</versionRange>
148 </pluginExecutionFilter>
154 <pluginExecutionFilter>
155 <groupId>org.apache.servicemix.tooling</groupId>
156 <artifactId>depends-maven-plugin</artifactId>
157 <versionRange>[0,)</versionRange>
159 <goal>generate-depends-file</goal>
161 </pluginExecutionFilter>
167 </lifecycleMappingMetadata>
174 <groupId>org.apache.karaf.tooling</groupId>
175 <artifactId>karaf-maven-plugin</artifactId>
176 <extensions>true</extensions>
178 <!-- no startupFeatures -->
180 <feature>standard</feature>
182 <!-- no installedFeatures -->
186 <id>process-resources</id>
188 <goal>install-kars</goal>
190 <phase>process-resources</phase>
195 <groupId>org.apache.maven.plugins</groupId>
196 <artifactId>maven-checkstyle-plugin</artifactId>
197 <version>${checkstyle.version}</version>
199 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
203 <groupId>org.apache.maven.plugins</groupId>
204 <artifactId>maven-dependency-plugin</artifactId>
205 <version>2.6</version>
212 <!-- here the phase you need -->
213 <phase>generate-resources</phase>
217 <groupId>org.opendaylight.controller</groupId>
218 <artifactId>karaf.branding</artifactId>
219 <version>${karaf.branding.version}</version>
220 <outputDirectory>target/assembly/lib</outputDirectory>
221 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
227 <id>unpack-karaf-resources</id>
229 <goal>unpack-dependencies</goal>
231 <phase>prepare-package</phase>
233 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
234 <groupId>org.opendaylight.controller</groupId>
235 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
236 <excludes>META-INF\/**</excludes>
237 <excludeTransitive>true</excludeTransitive>
238 <ignorePermissions>false</ignorePermissions>
242 <id>copy-dependencies</id>
243 <phase>prepare-package</phase>
245 <goal>copy-dependencies</goal>
248 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
249 <overWriteReleases>false</overWriteReleases>
250 <overWriteSnapshots>true</overWriteSnapshots>
251 <overWriteIfNewer>true</overWriteIfNewer>
252 <useRepositoryLayout>true</useRepositoryLayout>
253 <addParentPoms>true</addParentPoms>
254 <copyPom>true</copyPom>
260 <groupId>org.apache.maven.plugins</groupId>
261 <artifactId>maven-antrun-plugin</artifactId>
264 <phase>prepare-package</phase>
271 <fileset dir="${project.build.directory}/assembly/bin">
272 <include name="karaf"/>
273 <include name="instance"/>
286 <id>create-karaf-archive</id>
290 <groupId>org.apache.karaf.tooling</groupId>
291 <artifactId>karaf-maven-plugin</artifactId>
292 <extensions>true</extensions>
297 <goal>instance-create-archive</goal>
308 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
309 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
311 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>