Hibernate Validator now works with any JPA provider, check the docs.
The issue is not that. The issue is whether I want to use it or not. If I don't use hibernate-validator at all, that means I'm wasting one library that never will be used at all in my apps.
I checked the code - there are actually four hard dependencies to Hibernate Validator:
I guess it would be *possible* to get rid of the hard dependency, but it wouldn't be simple.
Thanks gavin. I think it would be best for users just to instantiate hibernate-validator component via components.xml