HADOOP-17650. Bump solr to unblock build failure with Maven 3.8.1 (#2939)
Reviewed-by: Siyao Meng <siyao@apache.org> Contributed by Viraj Jasani
This commit is contained in:
parent
af3558d61a
commit
caecec45f5
|
@ -208,7 +208,7 @@
|
|||
<assertj.version>3.12.2</assertj.version>
|
||||
<jline.version>3.9.0</jline.version>
|
||||
<powermock.version>1.5.6</powermock.version>
|
||||
<solr.version>7.7.0</solr.version>
|
||||
<solr.version>8.8.2</solr.version>
|
||||
<openssl-wildfly.version>1.0.7.Final</openssl-wildfly.version>
|
||||
<woodstox.version>5.3.0</woodstox.version>
|
||||
<json-smart.version>2.4.7</json-smart.version>
|
||||
|
|
|
@ -110,6 +110,18 @@
|
|||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-http</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-client</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-io</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
|
@ -134,6 +146,10 @@
|
|||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-http</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-client</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
@ -159,6 +175,10 @@
|
|||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-http</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-client</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
|
|
@ -82,12 +82,10 @@ public final class EmbeddedSolrServerFactory {
|
|||
solrHomeDir.mkdirs();
|
||||
}
|
||||
|
||||
final SolrResourceLoader loader = new SolrResourceLoader(
|
||||
solrHomeDir.toPath());
|
||||
final Path configSetPath = Paths.get(configSetHome).toAbsolutePath();
|
||||
|
||||
final NodeConfig config = new NodeConfig.NodeConfigBuilder(
|
||||
"embeddedSolrServerNode", loader)
|
||||
"embeddedSolrServerNode", solrHomeDir.toPath())
|
||||
.setConfigSetBaseDirectory(configSetPath.toString()).build();
|
||||
|
||||
final EmbeddedSolrServer embeddedSolrServer = new EmbeddedSolrServer(config,
|
||||
|
|
|
@ -47,7 +47,7 @@ public class TestAppCatalogSolrClient {
|
|||
String targetLocation = EmbeddedSolrServerFactory.class
|
||||
.getProtectionDomain().getCodeSource().getLocation().getFile() + "/..";
|
||||
|
||||
String solrHome = targetLocation + "/solr";
|
||||
String solrHome = targetLocation.split("/test-classes")[0] + "/solr";
|
||||
solrClient = EmbeddedSolrServerFactory.create(solrHome, CONFIGSET_DIR,
|
||||
"exampleCollection");
|
||||
spy = PowerMockito.spy(new AppCatalogSolrClient());
|
||||
|
|
Loading…
Reference in New Issue