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.4.0-SNAPSHOT</version>
8 <relativePath>../../</relativePath>
10 <artifactId>distribution-karaf</artifactId>
11 <packaging>pom</packaging>
14 <branding.version>1.2.0-SNAPSHOT</branding.version>
15 <karaf.resources.version>1.6.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 TODO: Add the following dependencies after the Bug 4426 is fixed.
100 <groupId>org.opendaylight.vtn</groupId>
101 <artifactId>distribution.vtn-coordinator</artifactId>
102 <version>6.2.0-SNAPSHOT</version>
104 <classifier>bin</classifier>
107 <groupId>com.google.code.gson</groupId>
108 <artifactId>gson</artifactId>
111 <groupId>commons-codec</groupId>
112 <artifactId>commons-codec</artifactId>
115 <groupId>org.json</groupId>
116 <artifactId>json</artifactId>
122 <groupId>org.opendaylight.vtn</groupId>
123 <artifactId>distribution.vtn-coordinator</artifactId>
124 <version>6.2.0-SNAPSHOT</version>
126 <classifier>README</classifier>
129 <groupId>com.google.code.gson</groupId>
130 <artifactId>gson</artifactId>
133 <groupId>commons-codec</groupId>
134 <artifactId>commons-codec</artifactId>
137 <groupId>org.json</groupId>
138 <artifactId>json</artifactId>
149 <groupId>org.eclipse.m2e</groupId>
150 <artifactId>lifecycle-mapping</artifactId>
151 <version>1.0.0</version>
153 <lifecycleMappingMetadata>
156 <pluginExecutionFilter>
157 <groupId>org.apache.felix</groupId>
158 <artifactId>maven-bundle-plugin</artifactId>
159 <versionRange>[0,)</versionRange>
161 <goal>cleanVersions</goal>
163 </pluginExecutionFilter>
169 <pluginExecutionFilter>
170 <groupId>org.apache.maven.plugins</groupId>
171 <artifactId>maven-dependency-plugin</artifactId>
172 <versionRange>[0,)</versionRange>
177 </pluginExecutionFilter>
183 <pluginExecutionFilter>
184 <groupId>org.apache.karaf.tooling</groupId>
185 <artifactId>karaf-maven-plugin</artifactId>
186 <versionRange>[0,)</versionRange>
188 <goal>commands-generate-help</goal>
190 </pluginExecutionFilter>
196 <pluginExecutionFilter>
197 <groupId>org.fusesource.scalate</groupId>
198 <artifactId>maven-scalate-plugin</artifactId>
199 <versionRange>[0,)</versionRange>
203 </pluginExecutionFilter>
209 <pluginExecutionFilter>
210 <groupId>org.apache.servicemix.tooling</groupId>
211 <artifactId>depends-maven-plugin</artifactId>
212 <versionRange>[0,)</versionRange>
214 <goal>generate-depends-file</goal>
216 </pluginExecutionFilter>
222 </lifecycleMappingMetadata>
229 <artifactId>maven-resources-plugin</artifactId>
230 <version>2.6</version>
233 <id>copy-resources</id>
234 <!-- here the phase you need -->
235 <phase>prepare-package</phase>
237 <goal>copy-resources</goal>
240 <outputDirectory>${basedir}/target/assembly</outputDirectory>
243 <directory>src/main/assembly</directory>
246 <overwrite>true</overwrite>
252 <groupId>org.apache.karaf.tooling</groupId>
253 <artifactId>karaf-maven-plugin</artifactId>
254 <extensions>true</extensions>
256 <!-- no startupFeatures -->
258 <feature>standard</feature>
260 <!-- no installedFeatures -->
264 <id>populate-system</id>
265 <phase>generate-resources</phase>
267 <goal>features-add-to-repository</goal>
271 <descriptor>mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features</descriptor>
274 <feature>standard</feature>
275 <feature>config</feature>
276 <feature>package</feature>
277 <feature>kar</feature>
278 <feature>ssh</feature>
279 <feature>management</feature>
280 <feature>war</feature>
282 <repository>target/assembly/system</repository>
286 <id>process-resources</id>
288 <goal>install-kars</goal>
290 <phase>process-resources</phase>
295 <goal>instance-create-archive</goal>
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-checkstyle-plugin</artifactId>
303 <version>${checkstyle.version}</version>
305 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
309 <groupId>org.apache.maven.plugins</groupId>
310 <artifactId>maven-dependency-plugin</artifactId>
311 <version>2.8</version>
318 <!-- here the phase you need -->
319 <phase>generate-resources</phase>
323 <groupId>org.opendaylight.controller</groupId>
324 <artifactId>karaf.branding</artifactId>
325 <version>${karaf.branding.version}</version>
326 <outputDirectory>target/assembly/lib</outputDirectory>
327 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
333 <id>unpack-karaf-resources</id>
335 <goal>unpack-dependencies</goal>
337 <phase>prepare-package</phase>
339 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
340 <groupId>org.opendaylight.controller</groupId>
341 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
342 <excludes>META-INF\/**</excludes>
343 <excludeTransitive>true</excludeTransitive>
344 <ignorePermissions>false</ignorePermissions>
348 TODO: Add the execution after the Bug 4426 is fixed.
350 <id>copy-externalapps</id>
351 <phase>prepare-package</phase>
353 <goal>copy-dependencies</goal>
356 <outputDirectory>${project.build.directory}/assembly/externalapps</outputDirectory>
357 <includeArtifactIds>distribution.vtn-coordinator</includeArtifactIds>
358 <overWriteReleases>false</overWriteReleases>
359 <overWriteSnapshots>true</overWriteSnapshots>
360 <overWriteIfNewer>true</overWriteIfNewer>
361 <excludeTransitive>true</excludeTransitive>
368 <groupId>org.apache.maven.plugins</groupId>
369 <artifactId>maven-antrun-plugin</artifactId>
372 <phase>prepare-package</phase>
379 <fileset dir="${project.build.directory}/assembly/bin">
380 <include name="karaf"/>
381 <include name="instance"/>
382 <include name="start"/>
383 <include name="stop"/>
384 <include name="status"/>
385 <include name="client"/>
386 <include name="shell"/>
395 <groupId>org.opendaylight.odlparent</groupId>
396 <artifactId>karaf-plugin</artifactId>
397 <version>1.6.0-SNAPSHOT</version>
400 <id>populate-local-repo</id>
402 <goal>populate-local-repo</goal>
405 <localRepo>${project.build.directory}/assembly/system</localRepo>
413 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
414 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
416 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>