[ 
https://issues.apache.org/jira/browse/MATH-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717102#action_12717102
 ] 

Niall Pemberton commented on MATH-275:
--------------------------------------

Commons uses the maven-bundle-plugin which is a wrapper for the Bnd tool and 
this is the default behaviour. This issue has been raised a few times before, 
I'm not an OSGi expert but we took advice from the Apache Felix project who 
maintain the maven plugin - in the words of Peter Kriens who is one of the 
leading OSGi experts and author of the Bnd tool:

"Bnd automatically imports all exports to allow substitutability. If  you do 
not do this, you create all kinds of standalone class spaces  and things will 
not work together. It is generally bad practice to  only export a package."

http://commons.markmail.org/message/lgmj7srrxhld42tp


> MANIFEST.MF contains incorrect "Import-Package" OSGi header (makes it 
> unusable for OSGi)
> ----------------------------------------------------------------------------------------
>
>                 Key: MATH-275
>                 URL: https://issues.apache.org/jira/browse/MATH-275
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: Paul Field
>
> The MANIFEST.MF file contains this OSGi header:
> Import-Package: org.apache.commons.discovery.tools,
>  org.apache.commons.math;version=1.2,
>  org.apache.commons.math.analysis;version=1.2,
>  org.apache.commons.math.complex;version=1.2,
> ...
> This header defines what the bundle requires from the OSGi runtime and so it 
> shouldn't include the packages defined in the bundle (i.e. all the 
> org.apache.commons packages). I suspect it shouldn't include the 
> org.apache.commons.discovery.tools package either as I can't see that math 
> has a dependency on that (I could be wrong :-) ).
> The presence of this header causes the Math library to be unusable as an OSGi 
> bundle in Eclipse RCP development (and I suspect in any OSGI container).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to