Skip to content

jaxrs-ri OSGI import-package on org.glassfish.hk2.osgiresourcelocator seems incorrect. #5946

@jkevan

Description

@jkevan

Hi,

Looking at import-package generated in the MANIFEST.MF for jaxrs-ri. I think the following jaxrs-ri import-package is not correct: org.glassfish.hk2.osgiresourcelocator {version=[2.5,4)}

It's actually caused by this clause: ${hk2.osgi.version}, which refer to: <hk2.osgi.version>org.glassfish.hk2.*;version="[2.5,4)"</hk2.osgi.version>

But org.glassfish.hk2.osgiresourcelocator is not following same versioning as other org.glassfish.hk2 projects. Also according to repacked bundles that are declaring it, they are declaring it as dynamic import, for example:
from: jakarta.xml.bind-api:2.3.3

                            <Import-Package>
                                !org.glassfish.hk2.osgiresourcelocator,
                                javax.activation;version=!,
                                *
                            </Import-Package>
                            <DynamicImport-Package>org.glassfish.hk2.osgiresourcelocator</DynamicImport-Package>

Or it's not matching the expected verson, from jersery-common:2.47: org.glassfish.hk2.osgiresourcelocator {version=[1.0,2)}

I will try to provide a PR for this.

Best regards,
Kevan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions