[hibernate-dev] HSEARCH-851 Make Avro an optional dependency, good idea?
Hardy Ferentschik
hardy at hibernate.org
Mon Aug 22 08:21:31 EDT 2011
On Fri, 19 Aug 2011 18:50:34 +0200, Emmanuel Bernard
<emmanuel at hibernate.org> wrote:
> There are unforeseen consequences to making Avro an optional dependency.
> By doing that, I must make the SerializerProvider build process lazy or
> tolerant at Runtime if Avro is not here.
> The problem with this approach is that if a user forgets to add Avro as
> a dependency, his system will fail the first time a message ought to be
> (de)serialized *at runtime*
Is this
> It forces us to introduce an explicit flag to be set y the user to know
> whether or not the SerializationProvider is required
>
> hibernate.search.indexname.serializer required
>
> I find that quite error prone and am inclined to think that leaving Avro
> a required dependency is the less of two evils.
Right. That no good option at all. Then I rather have Avro required.
However, this also means that if someone uses an alternative/homegrown
SerializerProvider, he still ends up w/ Avro as well (at least from a
maven point of view)
More information about the hibernate-dev
mailing list