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.3.0-SNAPSHOT</version>
8 <relativePath>../../</relativePath>
10 <artifactId>distribution-karaf</artifactId>
11 <packaging>pom</packaging>
14 <branding.version>1.1.0-SNAPSHOT</branding.version>
15 <karaf.resources.version>1.5.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 <!-- integration test feature -->
76 <artifactId>features-integration-test</artifactId>
77 <groupId>org.opendaylight.integration</groupId>
78 <version>${project.version}</version>
79 <classifier>features</classifier>
84 <!-- External application -->
86 <groupId>org.opendaylight.vtn</groupId>
87 <artifactId>distribution.vtn-coordinator</artifactId>
88 <version>6.0.0.0-SNAPSHOT</version>
90 <classifier>bin</classifier>
93 <groupId>com.google.code.gson</groupId>
94 <artifactId>gson</artifactId>
97 <groupId>commons-codec</groupId>
98 <artifactId>commons-codec</artifactId>
101 <groupId>org.json</groupId>
102 <artifactId>json</artifactId>
108 <groupId>org.opendaylight.vtn</groupId>
109 <artifactId>distribution.vtn-coordinator</artifactId>
110 <version>6.0.0.0-SNAPSHOT</version>
112 <classifier>README</classifier>
115 <groupId>com.google.code.gson</groupId>
116 <artifactId>gson</artifactId>
119 <groupId>commons-codec</groupId>
120 <artifactId>commons-codec</artifactId>
123 <groupId>org.json</groupId>
124 <artifactId>json</artifactId>
134 <groupId>org.eclipse.m2e</groupId>
135 <artifactId>lifecycle-mapping</artifactId>
136 <version>1.0.0</version>
138 <lifecycleMappingMetadata>
141 <pluginExecutionFilter>
142 <groupId>org.apache.felix</groupId>
143 <artifactId>maven-bundle-plugin</artifactId>
144 <versionRange>[0,)</versionRange>
146 <goal>cleanVersions</goal>
148 </pluginExecutionFilter>
154 <pluginExecutionFilter>
155 <groupId>org.apache.maven.plugins</groupId>
156 <artifactId>maven-dependency-plugin</artifactId>
157 <versionRange>[0,)</versionRange>
162 </pluginExecutionFilter>
168 <pluginExecutionFilter>
169 <groupId>org.apache.karaf.tooling</groupId>
170 <artifactId>karaf-maven-plugin</artifactId>
171 <versionRange>[0,)</versionRange>
173 <goal>commands-generate-help</goal>
175 </pluginExecutionFilter>
181 <pluginExecutionFilter>
182 <groupId>org.fusesource.scalate</groupId>
183 <artifactId>maven-scalate-plugin</artifactId>
184 <versionRange>[0,)</versionRange>
188 </pluginExecutionFilter>
194 <pluginExecutionFilter>
195 <groupId>org.apache.servicemix.tooling</groupId>
196 <artifactId>depends-maven-plugin</artifactId>
197 <versionRange>[0,)</versionRange>
199 <goal>generate-depends-file</goal>
201 </pluginExecutionFilter>
207 </lifecycleMappingMetadata>
214 <artifactId>maven-resources-plugin</artifactId>
215 <version>2.6</version>
218 <id>copy-resources</id>
219 <!-- here the phase you need -->
220 <phase>prepare-package</phase>
222 <goal>copy-resources</goal>
225 <outputDirectory>${basedir}/target/assembly</outputDirectory>
228 <directory>src/main/assembly</directory>
231 <overwrite>true</overwrite>
237 <groupId>org.apache.karaf.tooling</groupId>
238 <artifactId>karaf-maven-plugin</artifactId>
239 <extensions>true</extensions>
241 <!-- no startupFeatures -->
243 <feature>standard</feature>
245 <!-- no installedFeatures -->
249 <id>populate-system</id>
250 <phase>generate-resources</phase>
252 <goal>features-add-to-repository</goal>
256 <descriptor>mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features</descriptor>
259 <feature>standard</feature>
260 <feature>config</feature>
261 <feature>package</feature>
262 <feature>kar</feature>
263 <feature>ssh</feature>
264 <feature>management</feature>
265 <feature>war</feature>
267 <repository>target/assembly/system</repository>
271 <id>process-resources</id>
273 <goal>install-kars</goal>
275 <phase>process-resources</phase>
280 <goal>instance-create-archive</goal>
286 <groupId>org.apache.maven.plugins</groupId>
287 <artifactId>maven-checkstyle-plugin</artifactId>
288 <version>${checkstyle.version}</version>
290 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
294 <groupId>org.apache.maven.plugins</groupId>
295 <artifactId>maven-dependency-plugin</artifactId>
296 <version>2.8</version>
303 <!-- here the phase you need -->
304 <phase>generate-resources</phase>
308 <groupId>org.opendaylight.controller</groupId>
309 <artifactId>karaf.branding</artifactId>
310 <version>${karaf.branding.version}</version>
311 <outputDirectory>target/assembly/lib</outputDirectory>
312 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
318 <id>unpack-karaf-resources</id>
320 <goal>unpack-dependencies</goal>
322 <phase>prepare-package</phase>
324 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
325 <groupId>org.opendaylight.controller</groupId>
326 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
327 <excludes>META-INF\/**</excludes>
328 <excludeTransitive>true</excludeTransitive>
329 <ignorePermissions>false</ignorePermissions>
333 <id>copy-dependencies</id>
334 <phase>prepare-package</phase>
336 <goal>copy-dependencies</goal>
339 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
340 <excludeArtifactIds>distribution.vtn-coordinator</excludeArtifactIds>
341 <overWriteReleases>false</overWriteReleases>
342 <overWriteSnapshots>true</overWriteSnapshots>
343 <overWriteIfNewer>true</overWriteIfNewer>
344 <useRepositoryLayout>true</useRepositoryLayout>
345 <addParentPoms>true</addParentPoms>
346 <copyPom>true</copyPom>
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>
367 <groupId>org.apache.maven.plugins</groupId>
368 <artifactId>maven-antrun-plugin</artifactId>
371 <phase>prepare-package</phase>
378 <fileset dir="${project.build.directory}/assembly/bin">
379 <include name="karaf"/>
380 <include name="instance"/>
381 <include name="start"/>
382 <include name="stop"/>
383 <include name="status"/>
384 <include name="client"/>
385 <include name="shell"/>
396 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
397 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
399 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>