[ 
https://issues.apache.org/jira/browse/SOLR-17324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17855561#comment-17855561
 ] 

Thomas Wöckinger edited comment on SOLR-17324 at 6/17/24 9:24 AM:
------------------------------------------------------------------

So, just to have the work around documented, add following to dependency 
managment section of your project (prevents scope change due to circular 
dependency over solr-solrj-zookeeper):

````

<{color:#268bd2}dependencyManagement{color}>

<{color:#268bd2}dependencies{color}>

<{color:#268bd2}dependency{color}>
<{color:#268bd2}groupId{color}>org.apache.solr</{color:#268bd2}groupId{color}>

<{color:#268bd2}artifactId{color}>solr-solrj</{color:#268bd2}artifactId{color}>

<{color:#268bd2}version{color}>9.6.1</{color:#268bd2}version{color}>

<{color:#268bd2}scope{color}>compile</{color:#268bd2}scope{color}>

</{color:#268bd2}dependency{color}>

</{color:#268bd2}dependencies{color}>

````

 

 

</{color:#268bd2}dependencyManagement{color}>
----


was (Author: thomas.woeckinger):
So, just to have the work around documented, add following to dependency 
managment section of your project (prevents scope change due to circular 
dependency over solr-solrj-zookeeper):

----
<{color:#268bd2}dependencyManagement{color}>

<{color:#268bd2}dependencies{color}>

<{color:#268bd2}dependency{color}>
<{color:#268bd2}groupId{color}>org.apache.solr</{color:#268bd2}groupId{color}>

<{color:#268bd2}artifactId{color}>solr-solrj</{color:#268bd2}artifactId{color}>

<{color:#268bd2}version{color}>9.6.1</{color:#268bd2}version{color}>

<{color:#268bd2}scope{color}>compile</{color:#268bd2}scope{color}>

</{color:#268bd2}dependency{color}>

</{color:#268bd2}dependencies{color}>

</{color:#268bd2}dependencyManagement{color}>
----

> Weird SolrJ Dependency Tree 
> ----------------------------
>
>                 Key: SOLR-17324
>                 URL: https://issues.apache.org/jira/browse/SOLR-17324
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrJ
>    Affects Versions: 9.6.1
>            Reporter: Thomas Wöckinger
>            Priority: Major
>
> Currently solr-solrj-zookeeper depends on solr-solrj, which itself depends on 
> solr-solrj-zookeeper.
> This should be avoided!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to