Duplicate classes from Maven transitive dependencies (incompatible version of solr-lucene-core)

Description

solr-core is depending on solr-lucene-core, which contains an outdated version of Lucene.
An effect of this problem is gettin errors like

Caused by: java.lang.NoSuchFieldError: ANALYZED
at org.hibernate.search.engine.DocumentBuilderContainedEntity.getIndex(DocumentBuilderContainedEntity.java:538)

As such a field is contained in the Lucene version of org.apache.lucene.document.Field.INDEX
but not in the (same package name!) version of solr-lucene-core.

Because of classloaders normally working in alphabetical order this works "most of the time", but deployments having unusual
library positions are failing with an hard to debug error.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Fix versions

Affects versions

3.1.1.GA
3.1.0.GA

Priority

Critical