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.5.0-SNAPSHOT</version>
8 <relativePath>../</relativePath>
10 <artifactId>distribution-karaf</artifactId>
11 <packaging>pom</packaging>
14 <branding.version>1.3.0-SNAPSHOT</branding.version>
15 <karaf.resources.version>1.7.0-SNAPSHOT</karaf.resources.version>
20 <!-- scope is compile so all features (there is only one) are installed
21 into startup.properties and the feature repo itself is not installed -->
22 <groupId>org.apache.karaf.features</groupId>
23 <artifactId>framework</artifactId>
24 <version>${karaf.version}</version>
28 <groupId>org.osgi</groupId>
29 <artifactId>org.osgi.core</artifactId>
32 <groupId>org.apache.sshd</groupId>
33 <artifactId>sshd-core</artifactId>
37 <!-- scope is runtime so the feature repo is listed in the features
38 service config file, and features may be installed using the
39 karaf-maven-plugin configuration -->
41 <groupId>org.apache.karaf.features</groupId>
42 <artifactId>standard</artifactId>
43 <version>${karaf.version}</version>
44 <classifier>features</classifier>
46 <scope>runtime</scope>
51 <groupId>org.opendaylight.controller</groupId>
52 <artifactId>karaf.branding</artifactId>
53 <version>${branding.version}</version>
54 <scope>compile</scope>
57 <!-- Resources needed -->
59 <groupId>org.opendaylight.controller</groupId>
60 <artifactId>opendaylight-karaf-resources</artifactId>
61 <version>${karaf.resources.version}</version>
64 <!-- integration feature -->
66 <artifactId>features-integration-index</artifactId>
67 <groupId>org.opendaylight.integration</groupId>
68 <version>${project.version}</version>
69 <classifier>features</classifier>
71 <scope>runtime</scope>
74 <groupId>org.opendaylight.controller</groupId>
75 <artifactId>opendaylight-karaf-empty</artifactId>
80 <!-- integration test feature -->
82 <artifactId>features-integration-test</artifactId>
83 <groupId>org.opendaylight.integration</groupId>
84 <version>${project.version}</version>
85 <classifier>features</classifier>
90 <groupId>org.opendaylight.controller</groupId>
91 <artifactId>opendaylight-karaf-empty</artifactId>
96 <!-- External application -->
98 <groupId>org.opendaylight.vtn</groupId>
99 <artifactId>distribution.vtn-coordinator</artifactId>
100 <version>6.3.0-SNAPSHOT</version>
102 <classifier>bin</classifier>
105 <groupId>com.google.code.gson</groupId>
106 <artifactId>gson</artifactId>
109 <groupId>commons-codec</groupId>
110 <artifactId>commons-codec</artifactId>
113 <groupId>org.json</groupId>
114 <artifactId>json</artifactId>
120 <groupId>org.opendaylight.vtn</groupId>
121 <artifactId>distribution.vtn-coordinator</artifactId>
122 <version>6.3.0-SNAPSHOT</version>
124 <classifier>README</classifier>
127 <groupId>com.google.code.gson</groupId>
128 <artifactId>gson</artifactId>
131 <groupId>commons-codec</groupId>
132 <artifactId>commons-codec</artifactId>
135 <groupId>org.json</groupId>
136 <artifactId>json</artifactId>
146 <groupId>org.eclipse.m2e</groupId>
147 <artifactId>lifecycle-mapping</artifactId>
148 <version>1.0.0</version>
150 <lifecycleMappingMetadata>
153 <pluginExecutionFilter>
154 <groupId>org.apache.felix</groupId>
155 <artifactId>maven-bundle-plugin</artifactId>
156 <versionRange>[0,)</versionRange>
158 <goal>cleanVersions</goal>
160 </pluginExecutionFilter>
166 <pluginExecutionFilter>
167 <groupId>org.apache.maven.plugins</groupId>
168 <artifactId>maven-dependency-plugin</artifactId>
169 <versionRange>[0,)</versionRange>
174 </pluginExecutionFilter>
180 <pluginExecutionFilter>
181 <groupId>org.apache.karaf.tooling</groupId>
182 <artifactId>karaf-maven-plugin</artifactId>
183 <versionRange>[0,)</versionRange>
185 <goal>commands-generate-help</goal>
187 </pluginExecutionFilter>
193 <pluginExecutionFilter>
194 <groupId>org.fusesource.scalate</groupId>
195 <artifactId>maven-scalate-plugin</artifactId>
196 <versionRange>[0,)</versionRange>
200 </pluginExecutionFilter>
206 <pluginExecutionFilter>
207 <groupId>org.apache.servicemix.tooling</groupId>
208 <artifactId>depends-maven-plugin</artifactId>
209 <versionRange>[0,)</versionRange>
211 <goal>generate-depends-file</goal>
213 </pluginExecutionFilter>
219 </lifecycleMappingMetadata>
226 <groupId>org.apache.maven.plugins</groupId>
227 <artifactId>maven-resources-plugin</artifactId>
230 <id>copy-resources</id>
231 <!-- here the phase you need -->
232 <phase>prepare-package</phase>
234 <goal>copy-resources</goal>
237 <outputDirectory>${basedir}/target/assembly</outputDirectory>
240 <directory>src/main/assembly</directory>
243 <overwrite>true</overwrite>
249 <groupId>org.apache.karaf.tooling</groupId>
250 <artifactId>karaf-maven-plugin</artifactId>
251 <extensions>true</extensions>
253 <!-- no startupFeatures -->
255 <feature>standard</feature>
257 <!-- no installedFeatures -->
261 <id>populate-system</id>
262 <phase>generate-resources</phase>
264 <goal>features-add-to-repository</goal>
268 <descriptor>mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features</descriptor>
271 <feature>standard</feature>
272 <feature>config</feature>
273 <feature>package</feature>
274 <feature>kar</feature>
275 <feature>ssh</feature>
276 <feature>management</feature>
277 <feature>war</feature>
279 <repository>target/assembly/system</repository>
283 <id>process-resources</id>
285 <goal>install-kars</goal>
287 <phase>process-resources</phase>
292 <goal>instance-create-archive</goal>
298 <groupId>org.apache.maven.plugins</groupId>
299 <artifactId>maven-dependency-plugin</artifactId>
306 <!-- here the phase you need -->
307 <phase>generate-resources</phase>
311 <groupId>org.opendaylight.controller</groupId>
312 <artifactId>karaf.branding</artifactId>
313 <version>${karaf.branding.version}</version>
314 <outputDirectory>target/assembly/lib</outputDirectory>
315 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
321 <id>unpack-karaf-resources</id>
323 <goal>unpack-dependencies</goal>
325 <phase>prepare-package</phase>
327 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
328 <groupId>org.opendaylight.controller</groupId>
329 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
330 <excludes>META-INF\/**</excludes>
331 <excludeTransitive>true</excludeTransitive>
332 <ignorePermissions>false</ignorePermissions>
336 <id>copy-externalapps</id>
337 <phase>prepare-package</phase>
339 <goal>copy-dependencies</goal>
342 <outputDirectory>${project.build.directory}/assembly/externalapps</outputDirectory>
343 <includeArtifactIds>distribution.vtn-coordinator</includeArtifactIds>
344 <overWriteReleases>false</overWriteReleases>
345 <overWriteSnapshots>true</overWriteSnapshots>
346 <overWriteIfNewer>true</overWriteIfNewer>
347 <excludeTransitive>true</excludeTransitive>
353 <groupId>org.apache.maven.plugins</groupId>
354 <artifactId>maven-antrun-plugin</artifactId>
357 <phase>prepare-package</phase>
364 <fileset dir="${project.build.directory}/assembly/bin">
365 <include name="karaf"/>
366 <include name="instance"/>
367 <include name="start"/>
368 <include name="stop"/>
369 <include name="status"/>
370 <include name="client"/>
371 <include name="shell"/>
380 <groupId>org.opendaylight.odlparent</groupId>
381 <artifactId>karaf-plugin</artifactId>
382 <version>1.7.0-SNAPSHOT</version>
385 <id>populate-local-repo</id>
387 <goal>populate-local-repo</goal>
390 <localRepo>${project.build.directory}/assembly/system</localRepo>
398 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
399 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
401 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>