Skip to content

Commit 9cd8606

Browse files
committed
HTM-1797: Update SolrJ from 9.10.0 to 10.0.0-SNAPSHOT
1 parent fd252d1 commit 9cd8606

File tree

2 files changed

+14
-40
lines changed

2 files changed

+14
-40
lines changed

pom.xml

Lines changed: 11 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,8 @@ SPDX-License-Identifier: MIT
106106
<okhttp.version>5.3.2</okhttp.version>
107107
<greenmail.version>2.1.7</greenmail.version>
108108
<spring.boot.version>${project.parent.version}</spring.boot.version>
109-
<!-- solr and jetty versions may need to match to prevent errors such as
110-
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/client/util/InputStreamResponseListener
111-
because Solr uses http libraries from the Jetty project
112-
-->
113-
<jetty.version>10.0.26</jetty.version>
114-
<solr.version>9.10.0</solr.version>
109+
<!-- Solr 10 snapshots have not been published since 2025-10-15, 11.0.0-SNAPSHOT are current-->
110+
<solr.version>10.0.0-SNAPSHOT</solr.version>
115111
<!--
116112
Spring Boot version overrides.
117113
@@ -129,6 +125,7 @@ SPDX-License-Identifier: MIT
129125
<flyway.version>11.17.1</flyway.version>
130126
<!-- <hamcrest.version>3.0</hamcrest.version>-->
131127
<hibernate.version>6.6.37.Final</hibernate.version>
128+
<!-- <jackson-bom.version>2.20.1</jackson-bom.version>-->
132129
<json-path.version>2.10.0</json-path.version>
133130
<junit-jupiter.version>6.0.1</junit-jupiter.version>
134131
<logback.version>1.5.19</logback.version>
@@ -183,15 +180,6 @@ SPDX-License-Identifier: MIT
183180
</properties>
184181
<dependencyManagement>
185182
<dependencies>
186-
<dependency>
187-
<!-- override the jetty-ee10-bom import so we can downgrade jetty to a solrj compatible version,
188-
our spring-boot parent provides this import -->
189-
<groupId>org.eclipse.jetty.ee10</groupId>
190-
<artifactId>jetty-ee10-bom</artifactId>
191-
<version>12.0.30</version>
192-
<type>pom</type>
193-
<scope>import</scope>
194-
</dependency>
195183
<dependency>
196184
<groupId>org.geotools</groupId>
197185
<artifactId>gt-bom</artifactId>
@@ -308,28 +296,6 @@ SPDX-License-Identifier: MIT
308296
<groupId>org.apache.solr</groupId>
309297
<artifactId>solr-solrj</artifactId>
310298
<version>${solr.version}</version>
311-
<exclusions>
312-
<exclusion>
313-
<groupId>org.apache.solr</groupId>
314-
<artifactId>solr-solrj-zookeeper</artifactId>
315-
</exclusion>
316-
<exclusion>
317-
<groupId>org.apache.solr</groupId>
318-
<artifactId>solr-solrj-streaming</artifactId>
319-
</exclusion>
320-
<exclusion>
321-
<groupId>org.apache.httpcomponents</groupId>
322-
<artifactId>httpmime</artifactId>
323-
</exclusion>
324-
<exclusion>
325-
<groupId>org.apache.httpcomponents</groupId>
326-
<artifactId>httpclient</artifactId>
327-
</exclusion>
328-
<exclusion>
329-
<groupId>org.apache.httpcomponents</groupId>
330-
<artifactId>httpcore</artifactId>
331-
</exclusion>
332-
</exclusions>
333299
</dependency>
334300
<dependency>
335301
<groupId>org.flywaydb</groupId>
@@ -645,6 +611,14 @@ SPDX-License-Identifier: MIT
645611
<name>Releases hosted by OSGeo</name>
646612
<url>https://repo.osgeo.org/repository/release/</url>
647613
</repository>
614+
<repository>
615+
<snapshots>
616+
<enabled>true</enabled>
617+
</snapshots>
618+
<id>Apache Snapshots</id>
619+
<name>Apache Snapshot Repository</name>
620+
<url>https://repository.apache.org/snapshots/</url>
621+
</repository>
648622
</repositories>
649623
<pluginRepositories />
650624
<build>

src/main/java/org/tailormap/api/solr/SolrHelper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.apache.solr.client.solrj.SolrQuery;
2929
import org.apache.solr.client.solrj.SolrResponse;
3030
import org.apache.solr.client.solrj.SolrServerException;
31-
import org.apache.solr.client.solrj.impl.BaseHttpSolrClient;
31+
import org.apache.solr.client.solrj.impl.RemoteExecutionException;
3232
import org.apache.solr.client.solrj.request.schema.FieldTypeDefinition;
3333
import org.apache.solr.client.solrj.request.schema.SchemaRequest;
3434
import org.apache.solr.client.solrj.response.QueryResponse;
@@ -527,7 +527,7 @@ private boolean checkSchemaIfFieldExists(String fieldName) {
527527
SchemaResponse.FieldResponse isField = fieldCheck.process(solrClient);
528528
logger.debug("Field {} exists", isField.getField());
529529
return true;
530-
} catch (SolrServerException | BaseHttpSolrClient.RemoteSolrException e) {
530+
} catch (SolrServerException | RemoteExecutionException e) {
531531
logger.debug("Field {} does not exist or could not be retrieved. Assuming it does not exist.", fieldName);
532532
} catch (IOException e) {
533533
logger.error("Tried getting field: {}, but failed.", fieldName, e);
@@ -574,7 +574,7 @@ private void createGeometryFieldTypeIfNotExists() throws SolrServerException, IO
574574
SchemaResponse.FieldTypeResponse isFieldType = fieldTypeCheck.process(solrClient);
575575
logger.debug("Field type {} exists", isFieldType.getFieldType());
576576
return;
577-
} catch (SolrServerException | BaseHttpSolrClient.RemoteSolrException e) {
577+
} catch (SolrServerException | RemoteExecutionException e) {
578578
logger.debug(
579579
"Field type {} does not exist or could not be retrieved. Assuming it does not exist.",
580580
SOLR_SPATIAL_FIELDNAME);

0 commit comments

Comments
 (0)