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.3.0-SNAPSHOT</version>
8 <relativePath>../../parent</relativePath>
10 <artifactId>openflowplugin-karaf</artifactId>
11 <packaging>pom</packaging>
16 <branding.version>1.3.0-SNAPSHOT</branding.version>
17 <karaf.resources.version>1.7.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>
89 <groupId>org.opendaylight.openflowplugin</groupId>
90 <artifactId>features-openflowplugin-extension-li</artifactId>
91 <classifier>features</classifier>
93 <scope>runtime</scope>
101 <groupId>org.eclipse.m2e</groupId>
102 <artifactId>lifecycle-mapping</artifactId>
103 <version>1.0.0</version>
105 <lifecycleMappingMetadata>
108 <pluginExecutionFilter>
109 <groupId>org.apache.felix</groupId>
110 <artifactId>maven-bundle-plugin</artifactId>
111 <versionRange>[0,)</versionRange>
113 <goal>cleanVersions</goal>
115 </pluginExecutionFilter>
121 <pluginExecutionFilter>
122 <groupId>org.apache.maven.plugins</groupId>
123 <artifactId>maven-dependency-plugin</artifactId>
124 <versionRange>[0,)</versionRange>
129 </pluginExecutionFilter>
135 <pluginExecutionFilter>
136 <groupId>org.apache.karaf.tooling</groupId>
137 <artifactId>karaf-maven-plugin</artifactId>
138 <versionRange>[0,)</versionRange>
140 <goal>commands-generate-help</goal>
142 </pluginExecutionFilter>
148 <pluginExecutionFilter>
149 <groupId>org.fusesource.scalate</groupId>
150 <artifactId>maven-scalate-plugin</artifactId>
151 <versionRange>[0,)</versionRange>
155 </pluginExecutionFilter>
161 <pluginExecutionFilter>
162 <groupId>org.apache.servicemix.tooling</groupId>
163 <artifactId>depends-maven-plugin</artifactId>
164 <versionRange>[0,)</versionRange>
166 <goal>generate-depends-file</goal>
168 </pluginExecutionFilter>
174 </lifecycleMappingMetadata>
181 <groupId>org.apache.karaf.tooling</groupId>
182 <artifactId>karaf-maven-plugin</artifactId>
183 <extensions>true</extensions>
185 <!-- no startupFeatures -->
187 <feature>standard</feature>
189 <!-- no installedFeatures -->
193 <id>process-resources</id>
195 <goal>install-kars</goal>
197 <phase>process-resources</phase>
202 <groupId>org.apache.maven.plugins</groupId>
203 <artifactId>maven-checkstyle-plugin</artifactId>
204 <version>${checkstyle.version}</version>
206 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
210 <groupId>org.apache.maven.plugins</groupId>
211 <artifactId>maven-dependency-plugin</artifactId>
212 <version>2.6</version>
219 <!-- here the phase you need -->
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>
249 <id>copy-dependencies</id>
250 <phase>prepare-package</phase>
252 <goal>copy-dependencies</goal>
255 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
256 <overWriteReleases>false</overWriteReleases>
257 <overWriteSnapshots>true</overWriteSnapshots>
258 <overWriteIfNewer>true</overWriteIfNewer>
259 <useRepositoryLayout>true</useRepositoryLayout>
260 <addParentPoms>true</addParentPoms>
261 <copyPom>true</copyPom>
267 <groupId>org.apache.maven.plugins</groupId>
268 <artifactId>maven-antrun-plugin</artifactId>
271 <phase>prepare-package</phase>
278 <fileset dir="${project.build.directory}/assembly/bin">
279 <include name="karaf"/>
280 <include name="instance"/>
293 <id>create-karaf-archive</id>
297 <groupId>org.apache.karaf.tooling</groupId>
298 <artifactId>karaf-maven-plugin</artifactId>
299 <extensions>true</extensions>
304 <goal>instance-create-archive</goal>
315 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
316 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
318 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>