Jest mvn package running error!

Hello,
My es version is 2.3.4,
I download the jest from github, and changed the pom.xml as below:

<groupId>io.searchbox</groupId>
    <artifactId>jest-parent</artifactId>
    <packaging>pom</packaging>
    <version>2.0.0-SNAPSHOT</version>
    <name>Jest Parent POM</name>
    <description>Parent POM for Jest - ElasticSearch Java rest client</description>
    <url>https://github.com/searchbox-io/Jest</url>
.......
<dependency>
                <groupId>io.searchbox</groupId>
                <artifactId>jest-common</artifactId>
                <version>2.0.0-SNAPSHOT</version>
            </dependency>


    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        <elasticsearch.version>2.3.4</elasticsearch.version>

        <lucene.version>5.5.0</lucene.version>
        <hamcrest.version>1.3</hamcrest.version>
        <randomizedtesting.version>2.4.0</randomizedtesting.version>
        <mustache.version>0.8.13</mustache.version>

        <httpcore.version>4.4.4</httpcore.version>
        <httpclient.version>4.5.2</httpclient.version>
        <httpAsyncClient.version>4.1.1</httpAsyncClient.version>
        <httpclientandroid.version>4.3.5.1</httpclientandroid.version>

        <slf4j.version>1.7.21</slf4j.version>
        <log4j.version>2.7</log4j.version>

        <guava.version>19.0</guava.version>
        <gson.version>2.6.2</gson.version>
        <mockito.version>1.10.19</mockito.version>

        <commonsLang.version>3.4</commonsLang.version>
        <commons-io.version>2.5</commons-io.version>
        <junit.version>4.12</junit.version>
        <jsonassert.version>1.4.0</jsonassert.version>

        <plugin.surefire.version>2.19.1</plugin.surefire.version>
        <plugin.sonatype.version>1.6.7</plugin.sonatype.version>
        <plugin.gpg.version>1.6</plugin.gpg.version>
    </properties>

But when I running mvn package, the follow errors below:

Running io.searchbox.search.aggregation.TopHitsAggregationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in io.searchbox.search.aggregation.TopHitsAggregationTest
Running io.searchbox.action.AbstractActionTest
Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec - in io.searchbox.action.AbstractActionTest

Results :

Failed tests:
RerouteTest.reroute:35 commands[2] Could not find match for element {"allocate":{"node":"node3","index":"index3","allow_primary":false,"shard":1}}
RerouteAllocateReplicaTest.allowPrimaryFalse:27 expected:<allocate[_replica]> but was:<allocate[]>
RerouteAllocateReplicaTest.allowPrimaryTrue:16 expected:<allocate[_replica]> but was:<allocate[]>

Tests run: 357, Failures: 3, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Jest Parent POM ................................... SUCCESS [0.994s]
[INFO] Jest Common Jar ................................... FAILURE [6.791s]
[INFO] Jest Apache HC Jar ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.788s
[INFO] Finished at: Sat Mar 25 21:16:29 CST 2017
[INFO] Final Memory: 33M/593M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project jest-common: There are test failures.
[ERROR]
[ERROR] Please refer to /home/es2017/Jest-master/jest-common/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :jest-common

I don't konw how to fix it , any help would be sincerely appreciate!

Not why you do this.

But I'd ask that question on Jest project not here.
More chance to get an answer in their repo IMO.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.