Provide Karaf feature and Karaf archive with RAP bundles.
- Create p2 repository with feature content
- Include Karaf kar packager and provide module definition
diff --git a/features/org.eclipse.rap.osgi-packaging.karaf.feature/kar/pom.xml b/features/org.eclipse.rap.osgi-packaging.karaf.feature/kar/pom.xml
new file mode 100644
index 0000000..5e16014
--- /dev/null
+++ b/features/org.eclipse.rap.osgi-packaging.karaf.feature/kar/pom.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (C) 2012 EclipseSource and others
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+
+ Contributors:
+ EclipseSource - initial implementation
+-->
+<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">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.eclipse.rap.incubator</groupId>
+ <artifactId>org.eclipse.rap.incubator-parent</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <relativePath>../../../../org.eclipse.rap.incubator.releng/releng/org.eclipse.rap.incubator.releng/parent</relativePath>
+ </parent>
+
+ <artifactId>org.eclipse.rap.osgi-packaging.karaf.kar</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <packaging>kar</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.eclipsesource.tycho.karaf.bridge</groupId>
+ <artifactId>kar-packager</artifactId>
+ <version>0.6.0</version>
+ <extensions>true</extensions>
+ <configuration>
+ <bundlesFolder>${basedir}/../target/site/plugins</bundlesFolder>
+ <featureName>rap</featureName>
+ <featureVersion>2.0.0</featureVersion>
+ <featureDescription>Eclipse RAP bundles</featureDescription>
+ <karFile>rap-${project.version}</karFile>
+ <featureDependencies>
+ <featureDependency>
+ <name>http</name>
+ <versionRange>(2.0.0,4.0.0]</versionRange>
+ </featureDependency>
+ </featureDependencies>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/features/org.eclipse.rap.osgi-packaging.karaf.feature/pom.xml b/features/org.eclipse.rap.osgi-packaging.karaf.feature/pom.xml
index b4dcad8..68dd386 100644
--- a/features/org.eclipse.rap.osgi-packaging.karaf.feature/pom.xml
+++ b/features/org.eclipse.rap.osgi-packaging.karaf.feature/pom.xml
@@ -24,5 +24,31 @@
<artifactId>org.eclipse.rap.osgi-packaging.karaf.feature</artifactId>
<version>2.0.0-SNAPSHOT</version>
<packaging>eclipse-feature</packaging>
+
+ <repositories>
+ <repository>
+ <id>base-platform-repository</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/rt/rap/nightly/runtime</url>
+ </repository>
+ <repository>
+ <id>simultaneous-release-repository</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/releases/kepler</url>
+ </repository>
+ </repositories>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-packaging-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <deployableFeature>true</deployableFeature>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/releng/org.eclipse.rap.osgi-packaging.build/pom.xml b/releng/org.eclipse.rap.osgi-packaging.build/pom.xml
index 2d6d3b5..6558d5a 100644
--- a/releng/org.eclipse.rap.osgi-packaging.build/pom.xml
+++ b/releng/org.eclipse.rap.osgi-packaging.build/pom.xml
@@ -27,6 +27,7 @@
<modules>
<module>../../features/org.eclipse.rap.osgi-packaging.karaf.feature</module>
+ <module>../../features/org.eclipse.rap.osgi-packaging.karaf.feature/kar</module>
</modules>
</project>