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 <version>${karaf.version}</version>
240 <extensions>true</extensions>
242 <!-- no startupFeatures -->
244 <feature>standard</feature>
246 <!-- no installedFeatures -->
250 <id>populate-system</id>
251 <phase>generate-resources</phase>
253 <goal>features-add-to-repository</goal>
257 <descriptor>mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features</descriptor>
260 <feature>standard</feature>
261 <feature>config</feature>
262 <feature>package</feature>
263 <feature>kar</feature>
264 <feature>ssh</feature>
265 <feature>management</feature>
266 <feature>war</feature>
268 <repository>target/assembly/system</repository>
272 <id>process-resources</id>
274 <goal>install-kars</goal>
276 <phase>process-resources</phase>
281 <goal>instance-create-archive</goal>
287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-checkstyle-plugin</artifactId>
289 <version>${checkstyle.version}</version>
291 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
295 <groupId>org.apache.maven.plugins</groupId>
296 <artifactId>maven-dependency-plugin</artifactId>
297 <version>2.8</version>
304 <!-- here the phase you need -->
305 <phase>generate-resources</phase>
309 <groupId>org.opendaylight.controller</groupId>
310 <artifactId>karaf.branding</artifactId>
311 <version>${karaf.branding.version}</version>
312 <outputDirectory>target/assembly/lib</outputDirectory>
313 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
319 <id>unpack-karaf-resources</id>
321 <goal>unpack-dependencies</goal>
323 <phase>prepare-package</phase>
325 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
326 <groupId>org.opendaylight.controller</groupId>
327 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
328 <excludes>META-INF\/**</excludes>
329 <excludeTransitive>true</excludeTransitive>
330 <ignorePermissions>false</ignorePermissions>
334 <id>copy-dependencies</id>
335 <phase>prepare-package</phase>
337 <goal>copy-dependencies</goal>
340 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
341 <excludeArtifactIds>distribution.vtn-coordinator</excludeArtifactIds>
342 <overWriteReleases>false</overWriteReleases>
343 <overWriteSnapshots>true</overWriteSnapshots>
344 <overWriteIfNewer>true</overWriteIfNewer>
345 <useRepositoryLayout>true</useRepositoryLayout>
346 <addParentPoms>true</addParentPoms>
347 <copyPom>true</copyPom>
351 <id>copy-externalapps</id>
352 <phase>prepare-package</phase>
354 <goal>copy-dependencies</goal>
357 <outputDirectory>${project.build.directory}/assembly/externalapps</outputDirectory>
358 <includeArtifactIds>distribution.vtn-coordinator</includeArtifactIds>
359 <overWriteReleases>false</overWriteReleases>
360 <overWriteSnapshots>true</overWriteSnapshots>
361 <overWriteIfNewer>true</overWriteIfNewer>
362 <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"/>
397 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
398 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
400 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>