Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make dbus-java OSGi ready #32

Closed
svagionitis opened this issue Dec 6, 2018 · 9 comments
Closed

Make dbus-java OSGi ready #32

svagionitis opened this issue Dec 6, 2018 · 9 comments

Comments

@svagionitis
Copy link

Hi David,

First of all thanks for this library, it is very helpful if you want to connect to DBus.

Now, checking the MANIFEST file of v3.0.0 jar file in the maven repository, I could see that there are not any metadata specific for an OSGi bundle, like Import-Package, Export-Package, etc. Are you considering to add them in a later release?

Regards,

Stavros

@hypfvieh
Copy link
Owner

hypfvieh commented Dec 6, 2018

Hi,

I'm not familiar with all this OSGi stuff (always looked very confusing to me), so no I have no plans to add this.

Anyways, if you want to provide the required manifest entries and stuff needed for OSGi compatibility, please feel free to send me a pull request.

@svagionitis
Copy link
Author

Cool thanks David for the quick response. I am not so familiar with OSGi myself, but I will try to create a pull request with necessary changes.

@cdealti
Copy link

cdealti commented Mar 21, 2019

@svagionitis are you still working on this? If not I can do that.

@stack-head
Copy link

I've put out two PRs that might be suitable-you wouldn't want to merge both of them, either one or the other:
#66
#67

@hypfvieh
Copy link
Owner

hypfvieh commented Jun 6, 2019

Thanks for your PRs.
As I'm not familiar with that OSGi stuff, I'm not sure which PR would be "the better one".

If I understand correctly, using #66 would not be suitable as the required dependencies are not OSGi compliant. I don't think that we have the chance to convince every project to make there stuff OSGi compliant.

Using #67 will in deed create a very large bundle.
I hate those fat-jars providing old versions of some libraries which were messing up other ones projects.

If my observations are correct, some kind of "hybrid" model would be great.

I would like to provide two different versions, one "fat" version which is OSGi ready (e.g. dbus-java-osgi), and the regular version we have right now (dbus-java).
Any idea on how to do this in one deployment step?

@stack-head
Copy link

stack-head commented Jun 7, 2019 via email

@hypfvieh
Copy link
Owner

hypfvieh commented Jun 7, 2019

What I was thinking about was some kind of additional module.

dbus-java already is a maven multi-module project, so I created a third module which builds an OSGi bundle.

Changes pushed, maybe you can have a look if this is working for you.

@stack-head
Copy link

stack-head commented Jun 7, 2019 via email

@hypfvieh
Copy link
Owner

I guess the OSGi stuff is now solved. I'll close this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants