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

Migrate from maven-bundle-plugin to bnd-maven-plugin for finer OSGi meta… #3843

Merged
merged 2 commits into from
Jan 5, 2021

Conversation

rotty3000
Copy link
Contributor

…data

fixes #3842

Signed-off-by: Raymond Augé raymond.auge@liferay.com

@rotty3000 rotty3000 changed the title Migrate from bnd-maven-plugin to bnd-maven-plugin for finer OSGi meta… Migrate from maven-bundle-plugin to bnd-maven-plugin for finer OSGi meta… Dec 18, 2020
…etadata

fixes swagger-api#3842

Signed-off-by: Raymond Augé <raymond.auge@liferay.com>
@rotty3000
Copy link
Contributor Author

fix unfortunate commit text...

Copy link
Member

@frantuma frantuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rotty3000 thanks a lot for your effort in this area. I have looked at your changes and impact on generated artifacts, and there are some possible open issues:

  1. The main one: if I am not mistaken the generated JARs manifests do not include anymore an Automatic-Module-Name entry, even if this seems to be configured in the new plugin. This would need to be fixed to consistently provide automatic module name to JDK 9+ modules based envs.

  2. There are differences in the outcome related to Export-Package, Import-Package and possibly Require-Capability for all modules; This is probably ok, and even "better" than what previously provided but I cannot at the moment do thorough tests in OSGi env for all modules to verify their correct behaviour. I guess you are more familiar and up to date with OSGi internals, and actively using swagger-core in OSGi, I would therefore ask you to confirm that all packages have been tested in OSGi env and that they correctly define imports and exports.

Thanks again for your effort, please let me know what you think

@rotty3000
Copy link
Contributor Author

Hi @frantuma thanks for reviewing :)

The main one: if I am not mistaken the generated JARs manifests do not include anymore an Automatic-Module-Name entry, even if this seems to be configured in the new plugin. This would need to be fixed to consistently provide automatic module name to JDK 9+ modules based envs.

If you perform a binary comparison of the resulting jars before and after (which I have done for all jars) you will note that the Automatic-Module-Name is correctly preserved.

There are differences in the outcome related to Export-Package, Import-Package and possibly Require-Capability for all modules; This is probably ok, and even "better" than what previously provided but I cannot at the moment do thorough tests in OSGi env for all modules to verify their correct behaviour. I guess you are more familiar and up to date with OSGi internals, and actively using swagger-core in OSGi, I would therefore ask you to confirm that all packages have been tested in OSGi env and that they correctly define imports and exports.

This is expected and desired :) I've tested the result in OSGi using the Apache JAX-RS Whiteboard project for which I wish to update the version of swagger if/when this change gets merged/released.

I'm also prepared to keep the metadata up to date and address issues (as time permits) if someone pings me.

Thanks for you time and effort on swagger.

@frantuma
Copy link
Member

frantuma commented Jan 5, 2021

If you perform a binary comparison of the resulting jars before and after (which I have done for all jars) you will note that the Automatic-Module-Name is correctly preserved.

My bad, compared with wrong manifest.. merging now, thanks!

@frantuma frantuma merged commit daf8213 into swagger-api:master Jan 5, 2021
@rotty3000 rotty3000 deleted the bnd-maven-plugin branch January 6, 2021 16:35
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

Successfully merging this pull request may close these issues.

Migrate from maven-bundle-plugin to bnd-maven-plugin for finner OSGi metadata
2 participants