You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2012/09/13 14:52:35 UTC

[Bug 53866] New: Please add OSGI information to the MANIFEST.MF

https://issues.apache.org/bugzilla/show_bug.cgi?id=53866

          Priority: P2
            Bug ID: 53866
          Assignee: dev@poi.apache.org
           Summary: Please add OSGI information to the MANIFEST.MF
          Severity: normal
    Classification: Unclassified
          Reporter: sebarod@ifrance.com
          Hardware: PC
            Status: NEW
           Version: 3.8
         Component: POI Overall
           Product: POI

Please add OSGI metadata to the MANIFEST.MF of POI jars so that they can be
used directly in an OSGI runtime

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 53866] Please add OSGI information to the MANIFEST.MF

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53866

--- Comment #3 from Nick Burch <ap...@gagravarr.org> ---
Would we be better therefore to produce one "POI OSGi" jar that contains the
contents of all the others rolled into it?

If you'd like to come up with a patch that uses a tool like bnd to wrap it up,
we can certainly look at adding that to the build process. However, I'm not
sure we have any OSGi experts on the project, so someone who's interested in
seeing OSGi support will need to do the bulk of the work!

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 53866] Please add OSGI information to the MANIFEST.MF

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53866

Nick Burch <ap...@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 OS|                            |All

--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
I'm not sure we have any OSGi experts in the project. Could you please suggest
what we should be adding, and how we can test it's working?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 53866] Please add OSGI information to the MANIFEST.MF

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53866

Angelo <an...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |angelo.zerr@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 53866] Please add OSGI information to the MANIFEST.MF

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53866

--- Comment #5 from Nick Burch <ap...@gagravarr.org> ---
I've made a quick start in r1602846, but I don't know enough about the bnd tool
to know what options / parameters are needed to make it do the right thing

If someone who knows more OSGi fancies having a go at finishing that off,
please attach a patch!

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 53866] Please add OSGI information to the MANIFEST.MF

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53866

--- Comment #2 from pascal leclercq <pa...@gmail.com> ---
It should be fairly easy bing using bnd (or maven-bundle-plugin if you use
maven).

see :
http://www.aqute.biz/Code/Bnd


The problem I see here is you have the same package into different jars for
example : "org.apache.poi" into poi-ooxml.jar and poi.jar.

This doesn't behave well under OSGi.


Let me know if I can help....

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 53866] Please add OSGI information to the MANIFEST.MF

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53866

--- Comment #4 from Sebastien Arod <se...@ifrance.com> ---
Apache servicemix is publishing an osgified version of POI but they are
generally one or two versions behind latest poi version.

They build one single "poi-osgi" bundle that include poi, poi-contrib,
poi-ooxml, and poi-scratchpad. It seems to confirm Pascal comment's.

The maven pom.xml they used to build version 3.9 is available at
http://svn.apache.org/repos/asf/servicemix/smx4/bundles/trunk/poi-3.9
They use shade to build a single jar and bnd to generate the osgi manifest.

The problem is that poi build uses ant for the build and not maven however I
think it should be possible to use bnd from ant.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org