karishma-tirthani / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

OSGi Support for odata4j #62

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Implement OSGi support for odata4j library.

----

I suggest to generate the manifest file by using felix maven plugin:

Change packaging of pom to bundle:

  <packaging>bundle</packaging>

Add felix plugin to plugins section:

<plugin>
    <groupId>org.apache.felix</groupId>
    <artifactId>maven-bundle-plugin</artifactId>
    <version>2.0.1</version>
    <extensions>true</extensions>
    <configuration>
        <instructions>
            <Import-Package>
                com.sun.net.httpserver.*;resolution:=optional,
                com.sun.jersey.*;resolution:=optional,
                    *
                </Import-Package>
            <Export-Package>
                org.odata4j.*;version=${project.version},
            </Export-Package>
                <Bundle-DocURL>${project.url}</Bundle-DocURL>
                <Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy>
        </instructions>
    </configuration>
</plugin>

As result the odata4j-0.5-SNAPSHOT.jar will get an OSGi manifest.mf file and 
can be used within a OSGi runtime.

WDYT?

Regards,
Stephan

Original issue reported on code.google.com by stephan....@googlemail.com on 7 Sep 2011 at 3:44

GoogleCodeExporter commented 8 years ago

Original comment by stephan....@googlemail.com on 25 Sep 2011 at 9:24

GoogleCodeExporter commented 8 years ago
I'll handle this one.

Original comment by stephan....@googlemail.com on 25 Sep 2011 at 9:26

GoogleCodeExporter commented 8 years ago
fixed with http://code.google.com/p/oda

Original comment by stephan....@googlemail.com on 27 Sep 2011 at 11:14

GoogleCodeExporter commented 8 years ago

Original comment by stephan....@googlemail.com on 27 Sep 2011 at 11:15