Skip to content

spring-boot-starter-validation has dependency hibernate-validator:8.0.0.Final which does not work #36357

@Stefan4112

Description

@Stefan4112

Recently added spring-boot-starter-validation to my project and it stopped starting. In stacktrace I found a problem with jboss logging and after some investigation I found that hibernate is the problem.

Dependency:

org.springframework.boot:spring-boot-starter-validation:3.1.1
\--- org.hibernate.validator:hibernate-validator:8.0.0.Final

I had to exclude hibernate-validator, because version 8 does not work. Then I added the version from release note:

org.hibernate.validator:hibernate-validator:6.2.5.Final
\--- jakarta.validation:jakarta.validation-api:2.0.2

Now it includes an old version of jakarta.validation-api... so I had to manually add jakarta.validation-api:3.0.2 to use annotations again.
It was very difficult to find the error because of the first error with jboss logging.

Please use working dependency version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions