[ 
https://issues.apache.org/jira/browse/STANBOL-774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13475661#comment-13475661
 ] 

Rupert Westenthaler commented on STANBOL-774:
---------------------------------------------

using the "-provider-policy" and "-consumer-policy" as described would require 
to add the following instructions for the configuration of the 
"maven-bundle-plugin" in the parent POM.

    
<_provider-policy>[$(version;===;$(@)),$(version;=+;$(@)))</_provider-policy>   
 
    <_consumer-policy>[$(version;===;$(@)),$(version;+;$(@)))</_consumer-policy>
                
> Stanbol Bundels that export packages containing service interfaces or classes 
> that are referenced in service interfaces need also import those packages
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: STANBOL-774
>                 URL: https://issues.apache.org/jira/browse/STANBOL-774
>             Project: Stanbol
>          Issue Type: Sub-task
>            Reporter: Rupert Westenthaler
>
> Host Applications that do run Stanbol in an embedded OSGI environment need to 
> export all packages of used Interfaces (and all Classes used in those 
> Interfaces). This is required to ensure that the java Classes used by Stanbol 
> (running within the embedded OSGI environment) are the same as the one 
> available to the Host application (see [1] for details).
> However Bundles that do not explicitly import packages they export will 
> rather user their internal version instead of the version exported by the 
> Host application causing the Class version to become incompatible (see [2] 
> for details).
> [1] 
> http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-hostserviceusage
> [2] 
> http://felix.apache.org/site/apache-felix-osgi-faq.html#ApacheFelixOSGiFAQ-Shouldabundleimportitsownexportedpackages?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to