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>
35 <!-- We provide a newer version of Aries Proxy -->
37 <groupId>org.apache.aries.proxy</groupId>
38 <artifactId>org.apache.aries.proxy.impl</artifactId>
42 <!-- scope is runtime so the feature repo is listed in the features
43 service config file, and features may be installed using the
44 karaf-maven-plugin configuration -->
46 <groupId>org.apache.karaf.features</groupId>
47 <artifactId>standard</artifactId>
48 <version>${karaf.version}</version>
49 <classifier>features</classifier>
51 <scope>runtime</scope>
56 <groupId>org.opendaylight.controller</groupId>
57 <artifactId>karaf.branding</artifactId>
58 <version>${branding.version}</version>
59 <scope>compile</scope>
62 <!-- Resources needed -->
64 <groupId>org.opendaylight.controller</groupId>
65 <artifactId>opendaylight-karaf-resources</artifactId>
66 <version>${karaf.resources.version}</version>
69 <!-- integration feature -->
71 <artifactId>features-integration-index</artifactId>
72 <groupId>org.opendaylight.integration</groupId>
73 <version>${project.version}</version>
74 <classifier>features</classifier>
76 <scope>runtime</scope>
79 <groupId>org.opendaylight.controller</groupId>
80 <artifactId>opendaylight-karaf-empty</artifactId>
85 <!-- integration test feature -->
87 <artifactId>features-integration-test</artifactId>
88 <groupId>org.opendaylight.integration</groupId>
89 <version>${project.version}</version>
90 <classifier>features</classifier>
95 <groupId>org.opendaylight.controller</groupId>
96 <artifactId>opendaylight-karaf-empty</artifactId>
101 <!-- External application -->
103 <groupId>org.opendaylight.vtn</groupId>
104 <artifactId>distribution.vtn-coordinator</artifactId>
105 <version>6.3.0-SNAPSHOT</version>
107 <classifier>bin</classifier>
110 <groupId>com.google.code.gson</groupId>
111 <artifactId>gson</artifactId>
114 <groupId>commons-codec</groupId>
115 <artifactId>commons-codec</artifactId>
118 <groupId>org.json</groupId>
119 <artifactId>json</artifactId>
125 <groupId>org.opendaylight.vtn</groupId>
126 <artifactId>distribution.vtn-coordinator</artifactId>
127 <version>6.3.0-SNAPSHOT</version>
129 <classifier>README</classifier>
132 <groupId>com.google.code.gson</groupId>
133 <artifactId>gson</artifactId>
136 <groupId>commons-codec</groupId>
137 <artifactId>commons-codec</artifactId>
140 <groupId>org.json</groupId>
141 <artifactId>json</artifactId>
146 <!-- Aries Proxy 1.0.5 contains important bug fixes -->
147 <!-- Once we upgrade to a version of Karaf which has at least 1.0.5, this can be removed -->
149 <groupId>org.apache.aries.proxy</groupId>
150 <artifactId>org.apache.aries.proxy.impl</artifactId>
151 <version>1.0.5</version>
160 <groupId>org.eclipse.m2e</groupId>
161 <artifactId>lifecycle-mapping</artifactId>
162 <version>1.0.0</version>
164 <lifecycleMappingMetadata>
167 <pluginExecutionFilter>
168 <groupId>org.apache.felix</groupId>
169 <artifactId>maven-bundle-plugin</artifactId>
170 <versionRange>[0,)</versionRange>
172 <goal>cleanVersions</goal>
174 </pluginExecutionFilter>
180 <pluginExecutionFilter>
181 <groupId>org.apache.maven.plugins</groupId>
182 <artifactId>maven-dependency-plugin</artifactId>
183 <versionRange>[0,)</versionRange>
188 </pluginExecutionFilter>
194 <pluginExecutionFilter>
195 <groupId>org.apache.karaf.tooling</groupId>
196 <artifactId>karaf-maven-plugin</artifactId>
197 <versionRange>[0,)</versionRange>
199 <goal>commands-generate-help</goal>
201 </pluginExecutionFilter>
207 <pluginExecutionFilter>
208 <groupId>org.fusesource.scalate</groupId>
209 <artifactId>maven-scalate-plugin</artifactId>
210 <versionRange>[0,)</versionRange>
214 </pluginExecutionFilter>
220 <pluginExecutionFilter>
221 <groupId>org.apache.servicemix.tooling</groupId>
222 <artifactId>depends-maven-plugin</artifactId>
223 <versionRange>[0,)</versionRange>
225 <goal>generate-depends-file</goal>
227 </pluginExecutionFilter>
233 </lifecycleMappingMetadata>
240 <groupId>org.apache.maven.plugins</groupId>
241 <artifactId>maven-resources-plugin</artifactId>
244 <id>copy-resources</id>
245 <!-- here the phase you need -->
246 <phase>prepare-package</phase>
248 <goal>copy-resources</goal>
251 <outputDirectory>${basedir}/target/assembly</outputDirectory>
254 <directory>src/main/assembly</directory>
257 <overwrite>true</overwrite>
263 <groupId>org.apache.karaf.tooling</groupId>
264 <artifactId>karaf-maven-plugin</artifactId>
265 <extensions>true</extensions>
268 <!-- For some reason, the eventadmin bundle works fine when installed via the
269 startup.properties but doesn't work properly when installed via the
271 <feature>eventadmin</feature>
274 <feature>standard</feature>
276 <!-- no installedFeatures -->
280 <id>populate-system</id>
281 <phase>generate-resources</phase>
283 <goal>features-add-to-repository</goal>
287 <descriptor>mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features</descriptor>
290 <feature>standard</feature>
291 <feature>config</feature>
292 <feature>package</feature>
293 <feature>kar</feature>
294 <feature>ssh</feature>
295 <feature>management</feature>
296 <feature>war</feature>
298 <repository>target/assembly/system</repository>
302 <id>process-resources</id>
304 <goal>install-kars</goal>
306 <phase>process-resources</phase>
311 <goal>instance-create-archive</goal>
317 <groupId>org.apache.maven.plugins</groupId>
318 <artifactId>maven-dependency-plugin</artifactId>
325 <!-- here the phase you need -->
326 <phase>generate-resources</phase>
330 <groupId>org.opendaylight.controller</groupId>
331 <artifactId>karaf.branding</artifactId>
332 <version>${karaf.branding.version}</version>
333 <outputDirectory>target/assembly/lib</outputDirectory>
334 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
340 <id>unpack-karaf-resources</id>
342 <goal>unpack-dependencies</goal>
344 <phase>prepare-package</phase>
346 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
347 <groupId>org.opendaylight.controller</groupId>
348 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
349 <excludes>META-INF\/**</excludes>
350 <excludeTransitive>true</excludeTransitive>
351 <ignorePermissions>false</ignorePermissions>
355 <id>copy-externalapps</id>
356 <phase>prepare-package</phase>
358 <goal>copy-dependencies</goal>
361 <outputDirectory>${project.build.directory}/assembly/externalapps</outputDirectory>
362 <includeArtifactIds>distribution.vtn-coordinator</includeArtifactIds>
363 <overWriteReleases>false</overWriteReleases>
364 <overWriteSnapshots>true</overWriteSnapshots>
365 <overWriteIfNewer>true</overWriteIfNewer>
366 <excludeTransitive>true</excludeTransitive>
370 <id>copy-dependencies</id>
371 <phase>prepare-package</phase>
373 <goal>copy-dependencies</goal>
376 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
377 <includeArtifactIds>org.apache.aries.proxy.impl</includeArtifactIds>
378 <overWriteReleases>false</overWriteReleases>
379 <overWriteSnapshots>true</overWriteSnapshots>
380 <overWriteIfNewer>true</overWriteIfNewer>
381 <useRepositoryLayout>true</useRepositoryLayout>
382 <addParentPoms>true</addParentPoms>
383 <copyPom>true</copyPom>
390 <groupId>org.apache.maven.plugins</groupId>
391 <artifactId>maven-antrun-plugin</artifactId>
394 <phase>prepare-package</phase>
401 <fileset dir="${project.build.directory}/assembly/bin">
402 <include name="karaf"/>
403 <include name="instance"/>
404 <include name="start"/>
405 <include name="stop"/>
406 <include name="status"/>
407 <include name="client"/>
408 <include name="shell"/>
411 <!-- Remove this once Karaf provides a new-enough version of Aries Proxy -->
412 <replace dir="${project.build.directory}/assembly/etc"
413 token="org.apache.aries.proxy.impl/1.0.4"
414 value="org.apache.aries.proxy.impl/1.0.5">
415 <include name="startup.properties"/>
418 <!-- BUG-5917, BUG-5943: remove overrides for platform factories and neuter Xalan's services-->
419 <replace dir="${project.build.directory}/assembly/etc" token="javax.xml.parsers.DocumentBuilderFactory="
420 value="# BUG-5943: javax.xml.parsers.DocumentBuilderFactory=">
421 <include name="system.properties"/>
423 <replace dir="${project.build.directory}/assembly/etc" token="javax.xml.transform.TransformerFactory="
424 value="# BUG-5917: javax.xml.transform.TransformerFactory=">
425 <include name="system.properties"/>
427 <jar destfile="${project.build.directory}/assembly/lib/endorsed/odl-org.apache.servicemix.bundles.xalan-2.7.2_2_odl.jar">
428 <zipfileset src="${project.build.directory}/assembly/lib/endorsed/org.apache.servicemix.bundles.xalan-2.7.2_2.jar"
429 excludes="META-INF/services/javax.xml.*" erroronmissingarchive="false"/>
431 <delete file="${project.build.directory}/assembly/lib/endorsed/org.apache.servicemix.bundles.xalan-2.7.2_2.jar" />
439 <groupId>org.opendaylight.odlparent</groupId>
440 <artifactId>karaf-plugin</artifactId>
441 <version>1.7.0-SNAPSHOT</version>
444 <id>populate-local-repo</id>
446 <goal>populate-local-repo</goal>
449 <localRepo>${project.build.directory}/assembly/system</localRepo>
457 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
458 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
460 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>