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>../../</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 <version>${project.version}</version>
61 <classifier>features</classifier>
63 <scope>runtime</scope>
65 <!-- MD-SAL Related Features -->
67 <groupId>org.opendaylight.controller</groupId>
68 <artifactId>features-mdsal</artifactId>
69 <version>${mdsal.version}</version>
70 <classifier>features</classifier>
72 <scope>runtime</scope>
74 <!-- openflowplugin extension feature -->
76 <groupId>org.opendaylight.openflowplugin</groupId>
77 <artifactId>features-openflowplugin-extension</artifactId>
78 <version>${project.version}</version>
79 <classifier>features</classifier>
81 <scope>runtime</scope>
89 <groupId>org.eclipse.m2e</groupId>
90 <artifactId>lifecycle-mapping</artifactId>
91 <version>1.0.0</version>
93 <lifecycleMappingMetadata>
96 <pluginExecutionFilter>
97 <groupId>org.apache.felix</groupId>
98 <artifactId>maven-bundle-plugin</artifactId>
99 <versionRange>[0,)</versionRange>
101 <goal>cleanVersions</goal>
103 </pluginExecutionFilter>
109 <pluginExecutionFilter>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-dependency-plugin</artifactId>
112 <versionRange>[0,)</versionRange>
117 </pluginExecutionFilter>
123 <pluginExecutionFilter>
124 <groupId>org.apache.karaf.tooling</groupId>
125 <artifactId>karaf-maven-plugin</artifactId>
126 <versionRange>[0,)</versionRange>
128 <goal>commands-generate-help</goal>
130 </pluginExecutionFilter>
136 <pluginExecutionFilter>
137 <groupId>org.fusesource.scalate</groupId>
138 <artifactId>maven-scalate-plugin</artifactId>
139 <versionRange>[0,)</versionRange>
143 </pluginExecutionFilter>
149 <pluginExecutionFilter>
150 <groupId>org.apache.servicemix.tooling</groupId>
151 <artifactId>depends-maven-plugin</artifactId>
152 <versionRange>[0,)</versionRange>
154 <goal>generate-depends-file</goal>
156 </pluginExecutionFilter>
162 </lifecycleMappingMetadata>
169 <groupId>org.apache.karaf.tooling</groupId>
170 <artifactId>karaf-maven-plugin</artifactId>
171 <version>${karaf.version}</version>
172 <extensions>true</extensions>
174 <!-- no startupFeatures -->
176 <feature>standard</feature>
177 <feature>odl-openflowplugin-flow-services-rest</feature>
178 <feature>odl-restconf</feature>
180 <!-- no installedFeatures -->
184 <id>process-resources</id>
186 <goal>install-kars</goal>
188 <phase>process-resources</phase>
193 <goal>instance-create-archive</goal>
199 <groupId>org.apache.maven.plugins</groupId>
200 <artifactId>maven-checkstyle-plugin</artifactId>
201 <version>${checkstyle.version}</version>
203 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
207 <groupId>org.apache.maven.plugins</groupId>
208 <artifactId>maven-dependency-plugin</artifactId>
209 <version>2.6</version>
216 <!-- here the phase you need -->
217 <phase>generate-resources</phase>
221 <groupId>org.opendaylight.controller</groupId>
222 <artifactId>karaf.branding</artifactId>
223 <version>${karaf.branding.version}</version>
224 <outputDirectory>target/assembly/lib</outputDirectory>
225 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
231 <id>unpack-karaf-resources</id>
233 <goal>unpack-dependencies</goal>
235 <phase>prepare-package</phase>
237 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
238 <groupId>org.opendaylight.controller</groupId>
239 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
240 <excludes>META-INF\/**</excludes>
241 <excludeTransitive>true</excludeTransitive>
242 <ignorePermissions>false</ignorePermissions>
246 <id>copy-dependencies</id>
247 <phase>prepare-package</phase>
249 <goal>copy-dependencies</goal>
252 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
253 <overWriteReleases>false</overWriteReleases>
254 <overWriteSnapshots>true</overWriteSnapshots>
255 <overWriteIfNewer>true</overWriteIfNewer>
256 <useRepositoryLayout>true</useRepositoryLayout>
257 <addParentPoms>true</addParentPoms>
258 <copyPom>true</copyPom>
264 <groupId>org.apache.maven.plugins</groupId>
265 <artifactId>maven-antrun-plugin</artifactId>
268 <phase>prepare-package</phase>
275 <fileset dir="${project.build.directory}/assembly/bin">
276 <include name="karaf"/>
277 <include name="instance"/>
288 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
289 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
291 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>