-
Notifications
You must be signed in to change notification settings - Fork 127
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
[1.9.x] [MRESOLVER-572] Export internal packages in OSGi metadata as x-internal #510
[1.9.x] [MRESOLVER-572] Export internal packages in OSGi metadata as x-internal #510
Conversation
Please rebase |
49f313f
to
4a39991
Compare
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.
Please rebase
Done.
353b3c9
to
ddcf0ad
Compare
ddcf0ad
to
cf895a4
Compare
@gnodet can we proceed with this one? Thanks in advance. |
This makes maven-resolver-supplier usable as bundle in an OSGi runtime. At the moment the bundle cannot resolve because the internal.impl packages it uses and imports in its OSGi metadata are not exported by maven-resolver-impl. Simply exporting internal packages fixes that and, although it is discouraged to use internal/impl packages, gives consumers that can accept no API-compatibility guarantees the ability to access these packages. Adding the directive 'x-internal' is a convention that, at least when using Eclipse PDE, shows a corresponding warning at call-sides. Fixes https://issues.apache.org/jira/browse/MRESOLVER-572
84cee96
to
1fe422f
Compare
Are snapshots deployed for the |
I've deployed one manually. |
Thank you! |
This makes maven-resolver-supplier usable as bundle in an OSGi runtime.
At the moment the bundle cannot resolve because the
internal.impl
packages it uses and imports in its OSGi metadata are not exported bymaven-resolver-impl
.Just exporting internal packages fixes that and, although it is discouraged to use internal/impl packages, gives consumers that can
accept no API-compatibility guarantees the ability to access these packages.
Adding the directive
x-internal
is a convention that, at least when using Eclipse PDE, shows a corresponding warning at call-sides.Fixes https://issues.apache.org/jira/browse/MRESOLVER-572
This PR is currently a draft since it contains as first commit the build unification of #509 and is built on top of that.