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

Christoph Läubrich commented on JENA-2343:
------------------------------------------

First of all, Felix uses BND under the hood, so it is generally better to use 
the bnd-maven- plugin at the first place.

And of course in the end it dosen't matter of course how it is generated, I 
just found that Jena seem to embedd several content from other modules what 
requires carefully crafting of what to export and thus assumed it might be 
easier to be "explicit" with a {{package-info.java}} so one don't need to find 
the correct set of exclude/include rules.

The syntax for export package is described here in details: 
[https://bnd.bndtools.org/heads/export_package.html]

If you look at my PR here you can see how to configure BND "inline":
https://github.com/apache/jena/blob/ce37ae63076a9670ef526b540435eab84dcd17e7/pom.xml#L1110-L1115

 

> Bring back OSGi support to Jena
> -------------------------------
>
>                 Key: JENA-2343
>                 URL: https://issues.apache.org/jira/browse/JENA-2343
>             Project: Apache Jena
>          Issue Type: Improvement
>            Reporter: Christoph Läubrich
>            Priority: Major
>
> With JENA-2165 and the announcement on the mailing list 
> [https://lists.apache.org/thread/20h0djofj3h3dwtm728mcclv2zply9jt] OSGi 
> support was dropped from the project due to missing expertise.
> I'd like to bring back OSGi support, hopefully in a way that is easier to 
> maintain and offer to help if questions arise later on.
> My plan would be the following:
>  # Add OSGi header to the Jena artifacts, in contrast to the previous 
> approach of generating a fat-jar, this could be done immediately and will not 
> harm as it only *enables* the use inside OSGi but users of Jena are 
> responsible to provide the missing glues their selfes.
>  # I have [proposed a new framework running 
> mode|https://github.com/osgi/osgi-test/issues/541] to the osgi-test project, 
> that will finally make test-setups much more easier and will allow to run 
> test from the current build and inside the usual Jena test-suite, so once 
> this is merged I'd like to add tests and even missing pieces to improve OSGi 
> user experience so less setup is required to actually use Jena inside OSGi
> I'll also forward this issue to some other people interested in Jean OSGi 
> support to get more feedback and attention for this feature.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to