From 5ce9de6fa50dc789251d45e15ab1237f05a1c1ec Mon Sep 17 00:00:00 2001 From: Lukasz Dywicki Date: Fri, 20 Dec 2013 20:17:14 +0100 Subject: [PATCH] SHINDIG-1225 Make Shindig jars available as OSGi bundles. --- extras/pom.xml | 2 +- features/pom.xml | 2 +- java/common/pom.xml | 14 +++++++++++++- java/gadgets/pom.xml | 16 +++++++++++++++- java/sample-container/pom.xml | 9 ++++++++- java/social-api/pom.xml | 21 ++++++++++++++++++++- pom.xml | 19 +++++++++++++++++++ 7 files changed, 77 insertions(+), 6 deletions(-) diff --git a/extras/pom.xml b/extras/pom.xml index ded96562d..a408eacb0 100644 --- a/extras/pom.xml +++ b/extras/pom.xml @@ -28,7 +28,7 @@ shindig-extras 2.5.1-SNAPSHOT - jar + bundle Apache Shindig Extra Modules Provides extra, deprecated or extended functionality. The items here have unstable APIs and could change at any time. diff --git a/features/pom.xml b/features/pom.xml index 5f904b074..e34de7e8b 100644 --- a/features/pom.xml +++ b/features/pom.xml @@ -29,7 +29,7 @@ shindig-features 2.5.1-SNAPSHOT - jar + bundle Apache Shindig Features Packages all the features that shindig provides into a single jar file to allow diff --git a/java/common/pom.xml b/java/common/pom.xml index f09ed6c84..e4172aa90 100644 --- a/java/common/pom.xml +++ b/java/common/pom.xml @@ -28,7 +28,7 @@ shindig-common 2.5.1-SNAPSHOT - jar + bundle Apache Shindig Common Code Common java code for Shindig @@ -39,6 +39,18 @@ http://svn.apache.org/viewvc/shindig/trunk/java/common + + + org.apache.shindig.auth*, + org.apache.shindig.common*, + org.apache.shindig.config*, + org.apache.shindig.expressions*, + org.apache.shindig.protocol*, + org.apache.shindig.common.cache.ehcache*, + org.apache.shindig.common.logging.i18n, + + + diff --git a/java/gadgets/pom.xml b/java/gadgets/pom.xml index a5429439a..7710f5f25 100644 --- a/java/gadgets/pom.xml +++ b/java/gadgets/pom.xml @@ -28,7 +28,7 @@ shindig-gadgets 2.5.1-SNAPSHOT - jar + bundle Apache Shindig Gadget Renderer Renders gadgets, provides the gadget metadata service, and serves @@ -40,6 +40,20 @@ http://svn.apache.org/viewvc/shindig/trunk/java/gadgets + + + org.apache.shindig.gadgets*, + + + com.sun.imageio.plugins.jpeg;resolution:=optional, + org.apache.shindig.common.logging.i18n, + org.kohsuke.args4j, + org.json.simple, + org.xmlpull.v1, + * + + + diff --git a/java/sample-container/pom.xml b/java/sample-container/pom.xml index f6e002a57..613ac4705 100644 --- a/java/sample-container/pom.xml +++ b/java/sample-container/pom.xml @@ -28,7 +28,7 @@ shindig-sample-container 2.5.1-SNAPSHOT - jar + bundle Apache Shindig Sample Container Default Shindig Sample Container module @@ -39,6 +39,13 @@ http://svn.apache.org/viewvc/shindig/trunk/java/server + + + org.apache.shindig.sample.container*, + org.apache.shindig.sample.shiro* + + + diff --git a/java/social-api/pom.xml b/java/social-api/pom.xml index b0bfd7e93..eb9338b31 100644 --- a/java/social-api/pom.xml +++ b/java/social-api/pom.xml @@ -28,7 +28,7 @@ shindig-social-api 2.5.1-SNAPSHOT - jar + bundle Apache Shindig Social API Serves OpenSocial Data and the RESTful APIs. @@ -39,6 +39,25 @@ http://svn.apache.org/viewvc/shindig/trunk/java/social-api + + + org.joda.time, + org.joda.time.format, + com.thoughtworks.xstream*, + com.thoughtworks.xstream.converters, + com.thoughtworks.xstream.converters.enums, + com.thoughtworks.xstream.converters.basic, + com.thoughtworks.xstream.converters.extended, + com.thoughtworks.xstream.converters.*, + * + + + org.apache.shindig.social.core*, + org.apache.shindig.social.opensocial*, + org.apache.shindig.social.sample*, + + + diff --git a/pom.xml b/pom.xml index f0baa2023..9731030eb 100644 --- a/pom.xml +++ b/pom.xml @@ -50,6 +50,9 @@ 1.6 1.6.0 + + * + @@ -1256,6 +1259,11 @@ maven-jetty-plugin 6.1.26 + + org.apache.felix + maven-bundle-plugin + 2.3.7 + org.apache.geronimo.genesis.plugins tools-maven-plugin @@ -1393,6 +1401,17 @@ org.apache.maven.plugins maven-site-plugin + + org.apache.felix + maven-bundle-plugin + + + ${osgi.import} + ${osgi.export} + + + true + org.apache.rat