-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[MNG-7345] Fix exported packages #618
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
Conversation
rmannibucau
left a comment
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.
For o.a.m.f it looks ok but I don't think we should export org.eclipse.sisu., it is internal details which shouldn't leak IMHO since it is not an API - and far from being one IMHO, no?
Do you have a workaround for using |
|
@gnodet no difference should be the target but guess it can be a build time metadata of sisu instead of a runtime annotation - or we do it by reflection and provide it in the bundle, but by the past we got a lot of troubles leaking internal IoC details so hope we don't go back there - not blaming, I know where you went from, just explaining the reasoning. edit: Do we have a list of @priority usages, i didnt see any in core and since it is not exported it is not really a feature so can also lead to just use an API for that (public int priority();) |
No problem with this idea, however anything we may need internally for maven may also be needed by users. I'd rather avoid relying on non supported apis, so maybe we could rely on I'll investigate to see if I can come up with a solution what could bridge classloaders. A custom |
Using |
|
I've removed the export of the sisu package. |
|
Resolve #8094 |
Packages not exported from maven-core:
Packages not exported from dependencies
the above one is required for @priority, but there may be others needed, not sure.
Packages that should not be exported
My commit only fixes
o.a.m.feature,org.eclipse.sisuando.a.m.rtinfo.internal.