diff --git a/pom.xml b/pom.xml index 2aa27dc42..5bc8fd851 100644 --- a/pom.xml +++ b/pom.xml @@ -106,12 +106,8 @@ SPDX-License-Identifier: MIT 5.3.2 2.1.8 ${project.parent.version} - - 10.0.26 - 9.10.0 + + 10.0.0-SNAPSHOT - org.eclipse.jetty.ee10 - jetty-ee10-bom - 12.0.31 - pom - import - org.geotools gt-bom @@ -309,28 +296,6 @@ SPDX-License-Identifier: MIT org.apache.solr solr-solrj ${solr.version} - - - org.apache.solr - solr-solrj-zookeeper - - - org.apache.solr - solr-solrj-streaming - - - org.apache.httpcomponents - httpmime - - - org.apache.httpcomponents - httpclient - - - org.apache.httpcomponents - httpcore - - org.flywaydb @@ -646,6 +611,14 @@ SPDX-License-Identifier: MIT Releases hosted by OSGeo https://repo.osgeo.org/repository/release/ + + + true + + Apache Snapshots + Apache Snapshot Repository + https://repository.apache.org/snapshots/ + diff --git a/src/main/java/org/tailormap/api/solr/SolrHelper.java b/src/main/java/org/tailormap/api/solr/SolrHelper.java index acead0969..703f6fb98 100644 --- a/src/main/java/org/tailormap/api/solr/SolrHelper.java +++ b/src/main/java/org/tailormap/api/solr/SolrHelper.java @@ -28,7 +28,7 @@ import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.SolrResponse; import org.apache.solr.client.solrj.SolrServerException; -import org.apache.solr.client.solrj.impl.BaseHttpSolrClient; +import org.apache.solr.client.solrj.impl.RemoteExecutionException; import org.apache.solr.client.solrj.request.schema.FieldTypeDefinition; import org.apache.solr.client.solrj.request.schema.SchemaRequest; import org.apache.solr.client.solrj.response.QueryResponse; @@ -527,7 +527,7 @@ private boolean checkSchemaIfFieldExists(String fieldName) { SchemaResponse.FieldResponse isField = fieldCheck.process(solrClient); logger.debug("Field {} exists", isField.getField()); return true; - } catch (SolrServerException | BaseHttpSolrClient.RemoteSolrException e) { + } catch (SolrServerException | RemoteExecutionException e) { logger.debug("Field {} does not exist or could not be retrieved. Assuming it does not exist.", fieldName); } catch (IOException e) { logger.error("Tried getting field: {}, but failed.", fieldName, e); @@ -574,7 +574,7 @@ private void createGeometryFieldTypeIfNotExists() throws SolrServerException, IO SchemaResponse.FieldTypeResponse isFieldType = fieldTypeCheck.process(solrClient); logger.debug("Field type {} exists", isFieldType.getFieldType()); return; - } catch (SolrServerException | BaseHttpSolrClient.RemoteSolrException e) { + } catch (SolrServerException | RemoteExecutionException e) { logger.debug( "Field type {} does not exist or could not be retrieved. Assuming it does not exist.", SOLR_SPATIAL_FIELDNAME);