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>
80 <groupId>org.eclipse.m2e</groupId>
81 <artifactId>lifecycle-mapping</artifactId>
82 <version>1.0.0</version>
84 <lifecycleMappingMetadata>
87 <pluginExecutionFilter>
88 <groupId>org.apache.felix</groupId>
89 <artifactId>maven-bundle-plugin</artifactId>
90 <versionRange>[0,)</versionRange>
92 <goal>cleanVersions</goal>
94 </pluginExecutionFilter>
100 <pluginExecutionFilter>
101 <groupId>org.apache.maven.plugins</groupId>
102 <artifactId>maven-dependency-plugin</artifactId>
103 <versionRange>[0,)</versionRange>
108 </pluginExecutionFilter>
114 <pluginExecutionFilter>
115 <groupId>org.apache.karaf.tooling</groupId>
116 <artifactId>karaf-maven-plugin</artifactId>
117 <versionRange>[0,)</versionRange>
119 <goal>commands-generate-help</goal>
121 </pluginExecutionFilter>
127 <pluginExecutionFilter>
128 <groupId>org.fusesource.scalate</groupId>
129 <artifactId>maven-scalate-plugin</artifactId>
130 <versionRange>[0,)</versionRange>
134 </pluginExecutionFilter>
140 <pluginExecutionFilter>
141 <groupId>org.apache.servicemix.tooling</groupId>
142 <artifactId>depends-maven-plugin</artifactId>
143 <versionRange>[0,)</versionRange>
145 <goal>generate-depends-file</goal>
147 </pluginExecutionFilter>
153 </lifecycleMappingMetadata>
160 <groupId>org.apache.karaf.tooling</groupId>
161 <artifactId>karaf-maven-plugin</artifactId>
162 <version>${karaf.version}</version>
163 <extensions>true</extensions>
165 <!-- no startupFeatures -->
167 <feature>standard</feature>
168 <feature>odl-openflowplugin-flow-services</feature>
169 <feature>odl-restconf</feature>
171 <!-- no installedFeatures -->
175 <id>process-resources</id>
177 <goal>install-kars</goal>
179 <phase>process-resources</phase>
184 <goal>instance-create-archive</goal>
190 <groupId>org.apache.maven.plugins</groupId>
191 <artifactId>maven-checkstyle-plugin</artifactId>
192 <version>${checkstyle.version}</version>
194 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
198 <groupId>org.apache.maven.plugins</groupId>
199 <artifactId>maven-dependency-plugin</artifactId>
200 <version>2.6</version>
207 <!-- here the phase you need -->
208 <phase>generate-resources</phase>
212 <groupId>org.opendaylight.controller</groupId>
213 <artifactId>karaf.branding</artifactId>
214 <version>${karaf.branding.version}</version>
215 <outputDirectory>target/assembly/lib</outputDirectory>
216 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
222 <id>unpack-karaf-resources</id>
224 <goal>unpack-dependencies</goal>
226 <phase>prepare-package</phase>
228 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
229 <groupId>org.opendaylight.controller</groupId>
230 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
231 <excludes>META-INF\/**</excludes>
232 <excludeTransitive>true</excludeTransitive>
233 <ignorePermissions>false</ignorePermissions>
237 <id>copy-dependencies</id>
238 <phase>prepare-package</phase>
240 <goal>copy-dependencies</goal>
243 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
244 <overWriteReleases>false</overWriteReleases>
245 <overWriteSnapshots>true</overWriteSnapshots>
246 <overWriteIfNewer>true</overWriteIfNewer>
247 <useRepositoryLayout>true</useRepositoryLayout>
248 <addParentPoms>true</addParentPoms>
249 <copyPom>true</copyPom>
255 <groupId>org.apache.maven.plugins</groupId>
256 <artifactId>maven-antrun-plugin</artifactId>
259 <phase>prepare-package</phase>
266 <fileset dir="${project.build.directory}/assembly/bin">
267 <include name="karaf"/>
268 <include name="instance"/>
279 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
280 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
282 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>