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/26 13:51:00 UTC

[jira] [Comment Edited] (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:comment-tabpanel&focusedCommentId=17571439#comment-17571439 ] 

Jean-Baptiste Onofré edited comment on SM-5218 at 7/26/22 1:50 PM:
-------------------------------------------------------------------

{{org.apache.lucene.search.spans}} is already exported by queryparser bundle:

[https://github.com/apache/servicemix-bundles/blob/master/lucene-queryparser-9.2.0/pom.xml#L67]


was (Author: jbonofre):
`org.apache.lucene.search.spans` is already exported by queryparser bundle:

https://github.com/apache/servicemix-bundles/blob/master/lucene-queryparser-9.2.0/pom.xml#L67

> 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
>             Fix For: bundles-2022.07
>
>
> 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)