FELIX-1261: Install/uninstall features from web console

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@790920 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/karaf/webconsole/pom.xml b/karaf/webconsole/pom.xml
index 432c9ef..857fadf 100644
--- a/karaf/webconsole/pom.xml
+++ b/karaf/webconsole/pom.xml
@@ -32,7 +32,7 @@
   <artifactId>org.apache.felix.karaf.webconsole</artifactId>
   <packaging>bundle</packaging>
   <version>1.2.0-SNAPSHOT</version>
-  <name>Apache Felix Karaf :: Web Console</name>
+  <name>Apache Felix Karaf :: Web Console Features Plugin</name>
   
   <dependencies>
     <dependency>
@@ -56,6 +56,11 @@
       <scope>provided</scope>
     </dependency>
     <dependency>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging</artifactId>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
       <groupId>org.apache.felix.karaf.gshell</groupId>
       <artifactId>org.apache.felix.karaf.gshell.features</artifactId>
     </dependency>
@@ -64,6 +69,13 @@
       <artifactId>org.apache.servicemix.bundles.junit</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>org.json</groupId>
+      <artifactId>json</artifactId>
+      <version>20070829</version>
+      <scope>compile</scope>
+      <optional>true</optional>
+    </dependency>
   </dependencies>
   
   <build>
@@ -73,7 +85,12 @@
         <artifactId>maven-bundle-plugin</artifactId>
         <configuration>
           <instructions>
-            <Private-Package>org.apache.felix.karaf.webconsole*</Private-Package>
+            <Export-Package>org.apache.felix.karaf.webconsole;version=${pom.version}</Export-Package>
+            <Embed-Dependency>
+               <!-- Required for JSON data transfer -->
+               <!-- TODO: this needs to be put in a common place for reuse. -->
+               json
+            </Embed-Dependency>
           </instructions>
         </configuration>
       </plugin>