HADOOP-17650. Bump solr to unblock build failure with Maven 3.8.1 (#2939)

Reviewed-by: Siyao Meng <siyao@apache.org>
This commit is contained in:
Viraj Jasani 2021-04-26 12:18:39 +05:30 committed by GitHub
parent 66dda86fec
commit 538ce9c354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 5 deletions

View File

@ -206,7 +206,7 @@
<assertj.version>3.12.2</assertj.version> <assertj.version>3.12.2</assertj.version>
<jline.version>3.9.0</jline.version> <jline.version>3.9.0</jline.version>
<powermock.version>1.5.6</powermock.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> <openssl-wildfly.version>1.0.7.Final</openssl-wildfly.version>
<jsonschema2pojo.version>1.0.2</jsonschema2pojo.version> <jsonschema2pojo.version>1.0.2</jsonschema2pojo.version>
<woodstox.version>5.3.0</woodstox.version> <woodstox.version>5.3.0</woodstox.version>

View File

@ -110,6 +110,18 @@
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
</exclusion> </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> </exclusions>
</dependency> </dependency>
@ -134,6 +146,10 @@
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-http</artifactId> <artifactId>jetty-http</artifactId>
</exclusion> </exclusion>
<exclusion>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-client</artifactId>
</exclusion>
</exclusions> </exclusions>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
@ -159,6 +175,10 @@
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-http</artifactId> <artifactId>jetty-http</artifactId>
</exclusion> </exclusion>
<exclusion>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-client</artifactId>
</exclusion>
</exclusions> </exclusions>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>

View File

@ -82,12 +82,10 @@ public final class EmbeddedSolrServerFactory {
solrHomeDir.mkdirs(); solrHomeDir.mkdirs();
} }
final SolrResourceLoader loader = new SolrResourceLoader(
solrHomeDir.toPath());
final Path configSetPath = Paths.get(configSetHome).toAbsolutePath(); final Path configSetPath = Paths.get(configSetHome).toAbsolutePath();
final NodeConfig config = new NodeConfig.NodeConfigBuilder( final NodeConfig config = new NodeConfig.NodeConfigBuilder(
"embeddedSolrServerNode", loader) "embeddedSolrServerNode", solrHomeDir.toPath())
.setConfigSetBaseDirectory(configSetPath.toString()).build(); .setConfigSetBaseDirectory(configSetPath.toString()).build();
final EmbeddedSolrServer embeddedSolrServer = new EmbeddedSolrServer(config, final EmbeddedSolrServer embeddedSolrServer = new EmbeddedSolrServer(config,

View File

@ -47,7 +47,7 @@ public class TestAppCatalogSolrClient {
String targetLocation = EmbeddedSolrServerFactory.class String targetLocation = EmbeddedSolrServerFactory.class
.getProtectionDomain().getCodeSource().getLocation().getFile() + "/.."; .getProtectionDomain().getCodeSource().getLocation().getFile() + "/..";
String solrHome = targetLocation + "/solr"; String solrHome = targetLocation.split("/test-classes")[0] + "/solr";
solrClient = EmbeddedSolrServerFactory.create(solrHome, CONFIGSET_DIR, solrClient = EmbeddedSolrServerFactory.create(solrHome, CONFIGSET_DIR,
"exampleCollection"); "exampleCollection");
spy = PowerMockito.spy(new AppCatalogSolrClient()); spy = PowerMockito.spy(new AppCatalogSolrClient());