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.1.0-SNAPSHOT</version>
8 <relativePath>../../parent</relativePath>
10 <artifactId>openflowplugin-karaf</artifactId>
11 <packaging>pom</packaging>
16 <branding.version>1.1.0-SNAPSHOT</branding.version>
17 <karaf.resources.version>1.5.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>
64 <!-- MD-SAL Related Features -->
66 <groupId>org.opendaylight.controller</groupId>
67 <artifactId>features-mdsal</artifactId>
68 <version>${mdsal.version}</version>
69 <classifier>features</classifier>
71 <scope>runtime</scope>
73 <!-- openflowplugin extension feature -->
75 <groupId>org.opendaylight.openflowplugin</groupId>
76 <artifactId>features-openflowplugin-extension</artifactId>
77 <classifier>features</classifier>
79 <scope>runtime</scope>
87 <groupId>org.eclipse.m2e</groupId>
88 <artifactId>lifecycle-mapping</artifactId>
89 <version>1.0.0</version>
91 <lifecycleMappingMetadata>
94 <pluginExecutionFilter>
95 <groupId>org.apache.felix</groupId>
96 <artifactId>maven-bundle-plugin</artifactId>
97 <versionRange>[0,)</versionRange>
99 <goal>cleanVersions</goal>
101 </pluginExecutionFilter>
107 <pluginExecutionFilter>
108 <groupId>org.apache.maven.plugins</groupId>
109 <artifactId>maven-dependency-plugin</artifactId>
110 <versionRange>[0,)</versionRange>
115 </pluginExecutionFilter>
121 <pluginExecutionFilter>
122 <groupId>org.apache.karaf.tooling</groupId>
123 <artifactId>karaf-maven-plugin</artifactId>
124 <versionRange>[0,)</versionRange>
126 <goal>commands-generate-help</goal>
128 </pluginExecutionFilter>
134 <pluginExecutionFilter>
135 <groupId>org.fusesource.scalate</groupId>
136 <artifactId>maven-scalate-plugin</artifactId>
137 <versionRange>[0,)</versionRange>
141 </pluginExecutionFilter>
147 <pluginExecutionFilter>
148 <groupId>org.apache.servicemix.tooling</groupId>
149 <artifactId>depends-maven-plugin</artifactId>
150 <versionRange>[0,)</versionRange>
152 <goal>generate-depends-file</goal>
154 </pluginExecutionFilter>
160 </lifecycleMappingMetadata>
167 <groupId>org.apache.karaf.tooling</groupId>
168 <artifactId>karaf-maven-plugin</artifactId>
169 <version>${karaf.version}</version>
170 <extensions>true</extensions>
172 <!-- no startupFeatures -->
174 <feature>standard</feature>
175 <feature>odl-openflowplugin-flow-services-rest</feature>
176 <feature>odl-restconf</feature>
178 <!-- no installedFeatures -->
182 <id>process-resources</id>
184 <goal>install-kars</goal>
186 <phase>process-resources</phase>
191 <goal>instance-create-archive</goal>
197 <groupId>org.apache.maven.plugins</groupId>
198 <artifactId>maven-checkstyle-plugin</artifactId>
199 <version>${checkstyle.version}</version>
201 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
205 <groupId>org.apache.maven.plugins</groupId>
206 <artifactId>maven-dependency-plugin</artifactId>
207 <version>2.6</version>
214 <!-- here the phase you need -->
215 <phase>generate-resources</phase>
219 <groupId>org.opendaylight.controller</groupId>
220 <artifactId>karaf.branding</artifactId>
221 <version>${karaf.branding.version}</version>
222 <outputDirectory>target/assembly/lib</outputDirectory>
223 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
229 <id>unpack-karaf-resources</id>
231 <goal>unpack-dependencies</goal>
233 <phase>prepare-package</phase>
235 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
236 <groupId>org.opendaylight.controller</groupId>
237 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
238 <excludes>META-INF\/**</excludes>
239 <excludeTransitive>true</excludeTransitive>
240 <ignorePermissions>false</ignorePermissions>
244 <id>copy-dependencies</id>
245 <phase>prepare-package</phase>
247 <goal>copy-dependencies</goal>
250 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
251 <overWriteReleases>false</overWriteReleases>
252 <overWriteSnapshots>true</overWriteSnapshots>
253 <overWriteIfNewer>true</overWriteIfNewer>
254 <useRepositoryLayout>true</useRepositoryLayout>
255 <addParentPoms>true</addParentPoms>
256 <copyPom>true</copyPom>
262 <groupId>org.apache.maven.plugins</groupId>
263 <artifactId>maven-antrun-plugin</artifactId>
266 <phase>prepare-package</phase>
273 <fileset dir="${project.build.directory}/assembly/bin">
274 <include name="karaf"/>
275 <include name="instance"/>
286 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
287 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
289 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>