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

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

Closed
juergen-albert opened this issue Jan 23, 2023 · 1 comment

Comments

@juergen-albert
Copy link

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.

@frantuma
Copy link
Member

This has been fixed in #4578 (release 2.2.20)

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

No branches or pull requests

2 participants