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

[1.9.x] [MRESOLVER-572] Export internal packages in OSGi metadata as x-internal #510

Merged

Conversation

HannesWell
Copy link
Contributor

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.

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.

@gnodet
Copy link
Contributor

gnodet commented Jun 21, 2024

Please rebase

@HannesWell HannesWell marked this pull request as ready for review June 21, 2024 07:31
Copy link
Contributor Author

@HannesWell HannesWell left a comment

Choose a reason for hiding this comment

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

Please rebase

Done.

pom.xml Outdated Show resolved Hide resolved
@HannesWell
Copy link
Contributor Author

@gnodet can we proceed with this one? Thanks in advance.

@gnodet gnodet changed the title [MRESOLVER-572] Export internal packages in OSGi metadata as x-internal [1.9.x] [MRESOLVER-572] Export internal packages in OSGi metadata as x-internal Jun 27, 2024
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
@gnodet gnodet merged commit 5b8f47a into apache:maven-resolver-1.9.x Jul 1, 2024
11 checks passed
@HannesWell HannesWell deleted the maven-resolver-1.9.x-572 branch July 1, 2024 07:33
@HannesWell
Copy link
Contributor Author

Are snapshots deployed for the maven-resolver-1.9.x branch too?
I see master is deployed to https://repository.apache.org/content/repositories/snapshots, but I don't see it happening for maven-resolver-1.9.x

@gnodet
Copy link
Contributor

gnodet commented Jul 1, 2024

Are snapshots deployed for the maven-resolver-1.9.x branch too? I see master is deployed to https://repository.apache.org/content/repositories/snapshots, but I don't see it happening for maven-resolver-1.9.x

I've deployed one manually.

@HannesWell
Copy link
Contributor Author

Thank you!

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.

3 participants