Skip to content

jakarta version of core claims wrong jakarta.validation as dependent package #4354

@juergen-albert

Description

@juergen-albert

The Manifest of io.swagger.v3.core states that it requires the package jakarta.validation.constraints with at least version 1.1 with a range that explicitly excludes 3.0 and above. The first jakarta version however is 3.0.

The Version jakarta Version is build using the transformer plugin together with bnd. Not sure where the issue ocures here, but maybe @bjhargrave can help here, as I have never used the transformer.

As a workaround, the following could help:
Put a bnd.bnd file next to the pom.xml of the jakarta core pom.xml with the follwing content:

Import-Package:\
     jakarta.validation.constraints;version="[3,4)",\
     *

This should cause bnd to overwrite the version requirement for you.

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