# Jest mvn package running error!

**URL:** https://discuss.elastic.co/t/jest-mvn-package-running-error/79986
**Category:** Elasticsearch
**Created:** [March 25, 2017, 1:21pm UTC](https://discuss.elastic.co/t/jest-mvn-package-running-error/79986 "2017-03-25T13:21:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![laoyang360](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@laoyang360](https://discuss.elastic.co/u/laoyang360)
#### Post date: [March 25, 2017, 1:21pm UTC](https://discuss.elastic.co/t/jest-mvn-package-running-error/79986/1 "2017-03-25T13:21:43Z")

</div>

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](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!

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [March 25, 2017, 3:28pm UTC](https://discuss.elastic.co/t/jest-mvn-package-running-error/79986/2 "2017-03-25T15:28:17Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 22, 2017, 3:28pm UTC](https://discuss.elastic.co/t/jest-mvn-package-running-error/79986/3 "2017-04-22T15:28:21Z")

</div>

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