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.integration</groupId>
6 <artifactId>root</artifactId>
7 <version>0.2.0-SNAPSHOT</version>
8 <relativePath>../../../</relativePath>
10 <artifactId>distribution-karaf</artifactId>
11 <packaging>pom</packaging>
16 <branding.version>1.0.0-SNAPSHOT</branding.version>
17 <karaf.resources.version>1.4.2-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 <!-- integration feature -->
58 <artifactId>features-integration</artifactId>
59 <groupId>org.opendaylight.integration</groupId>
60 <version>${project.version}</version>
61 <classifier>features</classifier>
63 <scope>runtime</scope>
71 <groupId>org.eclipse.m2e</groupId>
72 <artifactId>lifecycle-mapping</artifactId>
73 <version>1.0.0</version>
75 <lifecycleMappingMetadata>
78 <pluginExecutionFilter>
79 <groupId>org.apache.felix</groupId>
80 <artifactId>maven-bundle-plugin</artifactId>
81 <versionRange>[0,)</versionRange>
83 <goal>cleanVersions</goal>
85 </pluginExecutionFilter>
91 <pluginExecutionFilter>
92 <groupId>org.apache.maven.plugins</groupId>
93 <artifactId>maven-dependency-plugin</artifactId>
94 <versionRange>[0,)</versionRange>
99 </pluginExecutionFilter>
105 <pluginExecutionFilter>
106 <groupId>org.apache.karaf.tooling</groupId>
107 <artifactId>karaf-maven-plugin</artifactId>
108 <versionRange>[0,)</versionRange>
110 <goal>commands-generate-help</goal>
112 </pluginExecutionFilter>
118 <pluginExecutionFilter>
119 <groupId>org.fusesource.scalate</groupId>
120 <artifactId>maven-scalate-plugin</artifactId>
121 <versionRange>[0,)</versionRange>
125 </pluginExecutionFilter>
131 <pluginExecutionFilter>
132 <groupId>org.apache.servicemix.tooling</groupId>
133 <artifactId>depends-maven-plugin</artifactId>
134 <versionRange>[0,)</versionRange>
136 <goal>generate-depends-file</goal>
138 </pluginExecutionFilter>
144 </lifecycleMappingMetadata>
151 <groupId>org.apache.karaf.tooling</groupId>
152 <artifactId>karaf-maven-plugin</artifactId>
153 <version>${karaf.version}</version>
154 <extensions>true</extensions>
156 <!-- no startupFeatures -->
158 <feature>standard</feature>
160 <!-- no installedFeatures -->
164 <id>process-resources</id>
166 <goal>install-kars</goal>
168 <phase>process-resources</phase>
173 <goal>instance-create-archive</goal>
179 <groupId>org.apache.maven.plugins</groupId>
180 <artifactId>maven-checkstyle-plugin</artifactId>
181 <version>${checkstyle.version}</version>
183 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
187 <groupId>org.apache.maven.plugins</groupId>
188 <artifactId>maven-dependency-plugin</artifactId>
189 <version>2.6</version>
196 <!-- here the phase you need -->
197 <phase>generate-resources</phase>
201 <groupId>org.opendaylight.controller</groupId>
202 <artifactId>karaf.branding</artifactId>
203 <version>${karaf.branding.version}</version>
204 <outputDirectory>target/assembly/lib</outputDirectory>
205 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
211 <id>unpack-karaf-resources</id>
213 <goal>unpack-dependencies</goal>
215 <phase>prepare-package</phase>
217 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
218 <groupId>org.opendaylight.controller</groupId>
219 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
220 <excludes>META-INF\/**</excludes>
221 <excludeTransitive>true</excludeTransitive>
222 <ignorePermissions>false</ignorePermissions>
226 <id>copy-dependencies</id>
227 <phase>prepare-package</phase>
229 <goal>copy-dependencies</goal>
232 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
233 <overWriteReleases>false</overWriteReleases>
234 <overWriteSnapshots>true</overWriteSnapshots>
235 <overWriteIfNewer>true</overWriteIfNewer>
236 <useRepositoryLayout>true</useRepositoryLayout>
237 <addParentPoms>true</addParentPoms>
238 <copyPom>true</copyPom>
244 <groupId>org.apache.maven.plugins</groupId>
245 <artifactId>maven-antrun-plugin</artifactId>
248 <phase>prepare-package</phase>
255 <fileset dir="${project.build.directory}/assembly/bin">
256 <include name="karaf"/>
257 <include name="instance"/>
258 <include name="start"/>
259 <include name="stop"/>
260 <include name="status"/>
261 <include name="client"/>
262 <include name="shell"/>
273 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
274 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
276 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>