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

Jersey 2.29 : duplicated bean validation api library #4295

Closed
ghusta opened this issue Oct 17, 2019 · 1 comment · Fixed by #4296
Closed

Jersey 2.29 : duplicated bean validation api library #4295

ghusta opened this issue Oct 17, 2019 · 1 comment · Fixed by #4296
Labels
bug Something isn't working

Comments

@ghusta
Copy link

ghusta commented Oct 17, 2019

When importing Bean Validation for Jersey with org.glassfish.jersey.ext:jersey-bean-validation (as of 2.29), it seems that there are duplicated libraries :

  • javax.validation:validation-api
  • jakarta.validation:jakarta.validation-api

IMO the first one should be excluded.

As an example, look at how Spring Boot 2.2 managed this problem in spring-boot-starter-validation :
Source pom.xml

@jansupol
Copy link
Contributor

Agree, the javax comes from org.hibernate.validator:hibernate-validator:jar:6.0.17.Final and should be excluded in POM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants