Build a zip file containing the Karaf feature and legal files.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1529619 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/runtime/karaf-feature/pom.xml b/ipojo/runtime/karaf-feature/pom.xml
index 5488424..04adde6 100644
--- a/ipojo/runtime/karaf-feature/pom.xml
+++ b/ipojo/runtime/karaf-feature/pom.xml
@@ -41,6 +41,7 @@
<properties>
<ipojo.webconsole.version>1.7.0</ipojo.webconsole.version>
+ <legal.files>${project.build.directory}/maven-shared-archive-resources/META-INF</legal.files>
</properties>
<build>
@@ -89,6 +90,29 @@
</execution>
</executions>
</plugin>
+
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <attach>true</attach>
+ </configuration>
+ <executions>
+ <execution>
+ <id>build-archive</id>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <descriptors>
+ <descriptor>src/main/assembly/assembly.xml</descriptor>
+ </descriptors>
+ <appendAssemblyId>false</appendAssemblyId>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>
\ No newline at end of file
diff --git a/ipojo/runtime/karaf-feature/src/main/appended-resources/META-INF/DEPENDENCIES b/ipojo/runtime/karaf-feature/src/main/appended-resources/META-INF/DEPENDENCIES
new file mode 100644
index 0000000..05c68c0
--- /dev/null
+++ b/ipojo/runtime/karaf-feature/src/main/appended-resources/META-INF/DEPENDENCIES
@@ -0,0 +1,10 @@
+I. Included Third-Party Software
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+Licensed under the Apache License 2.0.
+
+II. Used Third-Party Software
+
+III. Overall License Summary
+- Apache License 2.0
diff --git a/ipojo/runtime/karaf-feature/src/main/assembly/assembly.xml b/ipojo/runtime/karaf-feature/src/main/assembly/assembly.xml
new file mode 100644
index 0000000..8b213dc
--- /dev/null
+++ b/ipojo/runtime/karaf-feature/src/main/assembly/assembly.xml
@@ -0,0 +1,46 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
+
+ <id>feature</id>
+
+ <formats>
+ <format>zip</format>
+ </formats>
+
+ <includeBaseDirectory>true</includeBaseDirectory>
+ <baseDirectory>/</baseDirectory>
+
+ <fileSets>
+ <fileSet>
+ <directory>${project.build.directory}</directory>
+ <includes>
+ <include>features.xml</include>
+ </includes>
+ <outputDirectory/>
+ </fileSet>
+
+ <fileSet>
+ <directory>${legal.files}</directory>
+ <outputDirectory/>
+ </fileSet>
+ </fileSets>
+</assembly>
\ No newline at end of file
diff --git a/ipojo/runtime/karaf-feature/src/main/features/features.xml b/ipojo/runtime/karaf-feature/src/main/features/features.xml
index d35997f..41f51d0 100644
--- a/ipojo/runtime/karaf-feature/src/main/features/features.xml
+++ b/ipojo/runtime/karaf-feature/src/main/features/features.xml
@@ -19,7 +19,6 @@
-->
<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0" name="${project.artifactId}">
-
<feature name="ipojo" version="${project.version}"
description="Apache Felix iPOJO Core Runtime">
<bundle>mvn:${project.groupId}/org.apache.felix.ipojo/${project.version}</bundle>