-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[marytts] Add bnd to make serviceloader aware of marytts impl #14064
Conversation
I am not enough expert in that stuff to review and merge that change but I already ask the question if this is something to include in the future 3.4 patch ? |
From my perspective: should be included, as users experience it during install of the add-on via UI. But still we need someone with deeper knowledge in OSGI to check if this is the correct way to do it. |
@wborn The PR no longer adds the file Line 143 in 23cfec7
it seems to work. We have some duplication of code now. I did not manage to configure any of the mvn plugins to do it right. Bnd SPI annotation works fine for my PR for KNX to create the metadata file for the service loader. |
d0f60cb
to
c50e91d
Compare
@wborn I introduced a variable for Bnd defaults in main pom.xml. This can be used for all plugins which need to extend the Bnd configuration, e.g. for SPI. Hope it does not break anything else. |
This is required to for the Java serviceloader to work in OSGI environment. Allows for properly reloading the binding without issues. Fixes openhab#14056. Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Instructions for bnd now part of pom.xml. Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
418cd2f
to
db4aa58
Compare
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
db4aa58
to
9f5e4cf
Compare
9f5e4cf
to
ad3e27a
Compare
ad3e27a
to
bb5a165
Compare
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
bb5a165
to
36ca7ab
Compare
Comment above still valid, my suggestion would be to merge it the way it is implemented now. Any other suggestions for improvement? |
I'll have a look if it is possible to reduce the amount of bnd instruction duplication. |
@wborn this issue is still open, may I ask you to look into it again? Maybe we should go with the suggested approach, as currently MaryTTS (since 3.4) and KNX binding (for the coming 4.0M1) are affected by the SPI issue. If you see a better way using annotations which does not need additional Bnd configuration in pom, this of course would be better. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember seeing some duplication. But it seems gone now. 🙂 Let's give it a test. 🚀
Thanks, @wborn! We will see.... |
…b#14064) Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
…b#14064) Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
…b#14064) Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This is required to for the Java serviceloader to work in OSGI environment. Allows for properly reloading the binding without issues.
Fixes #14056.
Signed-off-by: Holger Friedrich mail@holger-friedrich.de