Hi,

It looks like the Maven POM for SolrJ in Solr 10 deliberately no longer 
includes transitive dependencies for Jetty HttpClient, ZooKeeper, etc. I found 
a reference in the changelog:

"Starting in 10, the Maven POM for SolrJ does not refer to SolrJ modules like 
ZooKeeper. If you require such functionality, you need to add additional 
dependencies."

The problem is not with the SolrJ module, but solr-core. As I wrote in my previous post the dependency trees look different between solr-core-9.10.1 and solr-core.10.0.0: With 10.0.0 all (!) the (transitive) dependencies are missing in the tree, although they seem to be contained in the pom, and I don't see a good reason why.

This is why I manually have to add them to my own IT test module and what I'd like to avoid.


Maybe add:
<dependency>
     <groupId>org.apache.solr</groupId>
     <artifactId>solr-solrj-jetty</artifactId>
     <version>${solr.version}</version>
</dependency>

And possibly if you're using CloudSolrClient with ZooKeeper:

<dependency>
     <groupId>org.apache.solr</groupId>
     <artifactId>solr-solrj-zookeeper</artifactId>
     <version>${solr.version}</version>
</dependency>

Thanks, but this didn't help and only let the Solr server startup output one more ClassNotFoundException for a class contained in another dependency (OpenTelemetry, Lucene or something similar)...

This took me lots of rounds and adding one dependency after another until I had the full list of (hopefully all) needed dependencies so that my IT test module could be build without further errors.

Still the question remains: why? :)


Regards

Thorsten

Attachment: OpenPGP_0x5A54BBB878225E08.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to