Replace Apache BVal with Hibernate Validator in validation.xml

MSAL

Bean Validation 2.0 and later use the Hibernate Validator implementation instead of the Apache BVal implementation which was used for Bean Validation 1.0 and 1.1. This recipe points the default provider, message interpolator, traversable resolver and constraint validator factory in validation.xml deployment descriptors at their Hibernate Validator implementations, and removes the parameter name provider.

org.openrewrite.java.migrate.javaee8.ApacheDefaultProvider
mod run . --recipe=org.openrewrite.java.migrate.javaee8.ApacheDefaultProvider

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change XML tag value
  2. Change XML tag value
  3. Change XML tag value
  4. Change XML tag value
  5. Remove XML tag /validation-config/parameter-name-provider