Hibernate Validator - Bean Validation 2.0 (JSR 380) Reference Implementation


License: Other

Language: Java

Keywords: bean-validation, hibernate, java

Hibernate Validator

Version: 6.1.0.Alpha2 - 19-12-2018

What is it?

This is the reference implementation of JSR-380 - Bean Validation 2.0. Bean Validation defines a metadata model and API for JavaBean as well as method validation. The default metadata source are annotations, with the ability to override and extend the metadata through the use of XML validation descriptors.


The documentation for this release is included in the docs directory of the distribution package or can be accessed online.

Release Notes

The full list of changes for this release can be found in changelog.txt.

System Requirements

JDK 8 or above.

Using Hibernate Validator

  • In case you use the distribution archive from the download site, copy dist/hibernate-validator-<version>.jar together with all jar files from dist/lib/required into the classpath of your application. For the purposes of logging, Hibernate Validator uses the JBoss Logging API, an abstraction layer which supports several logging solutions such (e.g. log4j or the logging framework provided by the JDK) as implementation. Just add a supported logging library to the classpath (e.g. log4j-<version>.jar) and JBoss Logging will delegate any log requests to that provider.

  • Add the following artifact to your Maven/Ivy/Gradle dependency list:


    You also need an API and implementation of the Unified Expression Language. These dependencies must be explicitly added in an SE environment. In an EE environment they are often already provided.

  • Bean Validation defines integration points with CDI. If your application runs in an environment which does not provide this integration out of the box, you may use the Hibernate Validator CDI portable extension by adding the following dependency:

  • hibernate-validator-annotation-processor-<version>.jar is an optional jar which can be integrated with your build environment respectively IDE to verify that constraint annotations are correctly used. Refer to the online documentation for more information.


Hibernate Validator itself as well as the Bean Validation API and TCK are all provided and distributed under the Apache Software License 2.0. Refer to license.txt for more information.

Build from Source

You can build Hibernate Validator from source by cloning the git repository git://github.com/hibernate/hibernate-validator.git. You will also need a JDK 8+ and Maven 3 (>= 3.3.1). With these prerequisites in place you can compile the source via:

mvn clean install

There are more build options available as well. For more information refer to Contributing to Hibernate Validator.

Continuous Integration

The official Continuous Integration service for the project is hosted on ci.hibernate.org.

We provide a .travis.yml file so that you can enable CI for your GitHub fork by enabling the build in your Travis CI account.

Hibernate Validator URLs

Project Statistics

Sourcerank 19
Repository Size 27.5 MB
Stars 641
Forks 384
Watchers 50
Open issues disabled
Dependencies 125
Contributors 60
Tags 85
Last updated
Last pushed

Top Contributors See all

Hardy Ferentschik Gunnar Morling Guillaume Smet Kevin Pollet marko-bekhta Emmanuel Bernard Pete Muir George Gastaldi Yoann Rodière Davide D'Alto Khalid Alqinyah Sanne Grinovero Victor Rezende dos Santos Matthias Kurz Jan-Willem Willebrands Ahmed Al Hafoudh HillmerCh shahramgoodarzi dernasherbrezon Brent Douglas

Packages Referencing this Repo

Hibernate's Bean Validation (JSR-380) reference implementation.
Latest release 6.1.0.Alpha4 - Updated - 641 stars
Hibernate Validator - Bean Validation 2.0 (JSR 380) Reference Implementation
Latest release 5.3.6.Final - Updated - 641 stars
Hibernate's Bean Validation (JSR-303) reference implementation.
Latest release 6.1.0.Alpha2 - Updated - 641 stars
Hibernate Validator CDI Portable Extension
Latest release 6.1.0.Alpha2 - Updated - 641 stars
Hibernate Validator - Bean Validation 2.0 (JSR 380) Reference Implementation
Latest release 6.1.0.Alpha2 - Updated - 641 stars
Aggregator of the Hibernate Validator modules.
Latest release 5.3.6.Final - Updated - 641 stars
Aggregator of the Hibernate Validator modules.
Latest release 5.0.0.Alpha1 - Updated - 641 stars
Hibernate Validator OSGi modules aggregator
Latest release 5.3.6.Final - Updated - 641 stars
Aggregates dependencies and runs the JSR-303 TCK
Latest release 4.3.2.Final - Updated - 641 stars
Hibernate Validator features for Apache Karaf
Latest release 6.0.10.Final - Updated - 641 stars
Aggregator of the Hibernate Validator modules.
Latest release 6.0.13.Final - Updated - 641 stars

Recent Tags See all

6.0.14.Final January 04, 2019
6.1.0.Alpha2 December 19, 2018
6.1.0.Alpha1 December 11, 2018
6.0.13.Final August 22, 2018
6.0.12.Final August 10, 2018
6.0.11.Final July 18, 2018
4.3.4.Final May 29, 2018
6.0.10.Final May 15, 2018
6.0.9.Final March 27, 2018
6.0.8.Final March 07, 2018
6.0.7.Final December 20, 2017
6.0.6.Final December 14, 2017
6.0.5.Final November 15, 2017
6.0.4.Final October 25, 2017
6.0.4.Final October 25, 2017

Interesting Forks See all

Hibernate Validator - Bean Validation (JSR 303) Reference Implementation
Java - Other - Last pushed - 1 stars
Hibernate Validator - Bean Validation 2.0 (JSR 380) Reference Implementation
Java - Updated - 1 stars
Hibernate Validator - Bean Validation 1.1 (JSR 349) Reference Implementation
Java - Apache-2.0 - Updated - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2019-01-05 18:57:46 UTC

Login to resync this repository