Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

SHINDIG-1225 Make Shindig jars available as OSGi bundles. #3

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extras/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<artifactId>shindig-extras</artifactId>
<version>2.5.1-SNAPSHOT</version>
<packaging>jar</packaging>
<packaging>bundle</packaging>

<name>Apache Shindig Extra Modules</name>
<description>Provides extra, deprecated or extended functionality. The items here have unstable APIs and could change at any time.</description>
Expand Down
2 changes: 1 addition & 1 deletion features/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<artifactId>shindig-features</artifactId>
<version>2.5.1-SNAPSHOT</version>
<packaging>jar</packaging>
<packaging>bundle</packaging>

<name>Apache Shindig Features</name>
<description>Packages all the features that shindig provides into a single jar file to allow
Expand Down
14 changes: 13 additions & 1 deletion java/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<artifactId>shindig-common</artifactId>
<version>2.5.1-SNAPSHOT</version>
<packaging>jar</packaging>
<packaging>bundle</packaging>

<name>Apache Shindig Common Code</name>
<description>Common java code for Shindig</description>
Expand All @@ -39,6 +39,18 @@
<url>http://svn.apache.org/viewvc/shindig/trunk/java/common</url>
</scm>

<properties>
<osgi.export>
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,
</osgi.export>
</properties>

<build>
<resources>
<resource>
Expand Down
16 changes: 15 additions & 1 deletion java/gadgets/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<artifactId>shindig-gadgets</artifactId>
<version>2.5.1-SNAPSHOT</version>
<packaging>jar</packaging>
<packaging>bundle</packaging>

<name>Apache Shindig Gadget Renderer</name>
<description>Renders gadgets, provides the gadget metadata service, and serves
Expand All @@ -40,6 +40,20 @@
<url>http://svn.apache.org/viewvc/shindig/trunk/java/gadgets</url>
</scm>

<properties>
<osgi.export>
org.apache.shindig.gadgets*,
</osgi.export>
<osgi.import>
com.sun.imageio.plugins.jpeg;resolution:=optional,
org.apache.shindig.common.logging.i18n,
org.kohsuke.args4j,
org.json.simple,
org.xmlpull.v1,
*
</osgi.import>
</properties>

<build>
<plugins>
<plugin>
Expand Down
9 changes: 8 additions & 1 deletion java/sample-container/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<artifactId>shindig-sample-container</artifactId>
<version>2.5.1-SNAPSHOT</version>
<packaging>jar</packaging>
<packaging>bundle</packaging>

<name>Apache Shindig Sample Container</name>
<description>Default Shindig Sample Container module</description>
Expand All @@ -39,6 +39,13 @@
<url>http://svn.apache.org/viewvc/shindig/trunk/java/server</url>
</scm>

<properties>
<osgi.export>
org.apache.shindig.sample.container*,
org.apache.shindig.sample.shiro*
</osgi.export>
</properties>

<dependencies>
<!-- project dependencies -->
<dependency>
Expand Down
21 changes: 20 additions & 1 deletion java/social-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<artifactId>shindig-social-api</artifactId>
<version>2.5.1-SNAPSHOT</version>
<packaging>jar</packaging>
<packaging>bundle</packaging>

<name>Apache Shindig Social API</name>
<description>Serves OpenSocial Data and the RESTful APIs.</description>
Expand All @@ -39,6 +39,25 @@
<url>http://svn.apache.org/viewvc/shindig/trunk/java/social-api</url>
</scm>

<properties>
<osgi.import>
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.*,
*
</osgi.import>
<osgi.export>
org.apache.shindig.social.core*,
org.apache.shindig.social.opensocial*,
org.apache.shindig.social.sample*,
</osgi.export>
</properties>

<build>
<resources>
<resource>
Expand Down
19 changes: 19 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
<shindig.jdk.version>1.6</shindig.jdk.version>
<shindig.jdk.javadoc>1.6.0</shindig.jdk.javadoc>
<shindig.jdk.classifier />

<osgi.import>*</osgi.import>
<osgi.export></osgi.export>
</properties>

<prerequisites>
Expand Down Expand Up @@ -1256,6 +1259,11 @@
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.26</version>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
</plugin>
<plugin>
<groupId>org.apache.geronimo.genesis.plugins</groupId>
<artifactId>tools-maven-plugin</artifactId>
Expand Down Expand Up @@ -1393,6 +1401,17 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<Import-Package>${osgi.import}</Import-Package>
<Export-Package>${osgi.export}</Export-Package>
</instructions>
</configuration>
<extensions>true</extensions>
</plugin>

<plugin>
<groupId>org.apache.rat</groupId>
Expand Down