You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2022/07/23 05:49:00 UTC
[jira] [Assigned] (SM-5218) lucene-queryparser-9.2.0 has incorrect import on org.apache.lucene.search.spans
[ https://issues.apache.org/jira/browse/SM-5218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré reassigned SM-5218:
----------------------------------------
Assignee: Jean-Baptiste Onofré
> lucene-queryparser-9.2.0 has incorrect import on org.apache.lucene.search.spans
> -------------------------------------------------------------------------------
>
> Key: SM-5218
> URL: https://issues.apache.org/jira/browse/SM-5218
> Project: ServiceMix
> Issue Type: Improvement
> Components: bundles
> Reporter: Robert Munteanu
> Assignee: Jean-Baptiste Onofré
> Priority: Major
>
> When trying to use the servicemix lucene bundles at version 9.2.0 in an OSGi app the queryparser bundle fails to resolve:
> [bundle-packages] org.apache.servicemix.bundles:org.apache.servicemix.bundles.lucene-queryparser:9.2.0_1: is importing package(s) org.apache.lucene.search.spans in start level 0 but no bundle is exporting these for that start level
> It seems that the o.a.l.search.spans package is no longer present in lucene 9.2.0 ( https://github.com/apache/lucene/tree/releases/lucene/9.2.0/lucene/core/src/java/org/apache/lucene/search ) and is not exported from any of the servicemix lucene bundles.
> A trivial patch to fix this is
> {noformat}
> diff --git a/lucene-queryparser-9.2.0/pom.xml b/lucene-queryparser-9.2.0/pom.xml
> index 85249ce7a..515d75b0e 100644
> --- a/lucene-queryparser-9.2.0/pom.xml
> +++ b/lucene-queryparser-9.2.0/pom.xml
> @@ -64,7 +64,6 @@
> org.apache.lucene.queries.payloads,
> org.apache.lucene.sandbox.queries,
> org.apache.lucene.search,
> - org.apache.lucene.search.spans,
> org.apache.lucene.util,
> org.apache.lucene.util.automaton,
> org.w3c.dom,
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)