# Current module dependent es6.3.2,but other module dependent current module show it's dependency is es2.4.4

**URL:** https://discuss.elastic.co/t/current-module-dependent-es6-3-2-but-other-module-dependent-current-module-show-its-dependency-is-es2-4-4/158852
**Category:** Elasticsearch
**Created:** [November 30, 2018, 5:53am UTC](https://discuss.elastic.co/t/current-module-dependent-es6-3-2-but-other-module-dependent-current-module-show-its-dependency-is-es2-4-4/158852 "2018-11-30T05:53:07Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![verachenwp](https://avatars.discourse-cdn.com/v4/letter/v/58956e/32.png) [@verachenwp](https://discuss.elastic.co/u/verachenwp)
#### Post date: [November 30, 2018, 5:53am UTC](https://discuss.elastic.co/t/current-module-dependent-es6-3-2-but-other-module-dependent-current-module-show-its-dependency-is-es2-4-4/158852/1 "2018-11-30T05:53:07Z")

</div>

![FE51CDD7-80EB-4446-A961-31CAF822E589](https://us1.discourse-cdn.com/elastic/original/3X/1/5/1588f75b71a879ddb2a861ffa91c503789d02213.jpeg)

---

<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: [November 30, 2018, 6:09am UTC](https://discuss.elastic.co/t/current-module-dependent-es6-3-2-but-other-module-dependent-current-module-show-its-dependency-is-es2-4-4/158852/2 "2018-11-30T06:09:27Z")

</div>

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

Check your pom.xml file. Run the dependency tree plugin. Should tell you details hopefully.  
Probably you have another dependency which is using another version.

---

<div class="post-metadata">

### Author: ![verachenwp](https://avatars.discourse-cdn.com/v4/letter/v/58956e/32.png) [@verachenwp](https://discuss.elastic.co/u/verachenwp)
#### Post date: [November 30, 2018, 6:24am UTC](https://discuss.elastic.co/t/current-module-dependent-es6-3-2-but-other-module-dependent-current-module-show-its-dependency-is-es2-4-4/158852/4 "2018-11-30T06:24:40Z")

</div>

Thanks for your fast reply . es2.4.4 is not in my dependency. the dependency tree like this.  
[INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @ exam-dal ---  
[INFO] com.exam:exam-dal:jar:1.0-SNAPSHOT  
[INFO] - org.elasticsearch:elasticsearch:jar:6.3.2:compile  
[INFO]  
[INFO] ------------------------------------------------------------------------  
[INFO] Building exam-manager 1.0-SNAPSHOT  
[INFO] ------------------------------------------------------------------------  
[INFO]  
[INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @ exam-manager ---  
[INFO] com.exam:exam-manager:jar:1.0-SNAPSHOT  
[INFO] - com.exam:exam-dal:jar:1.0-SNAPSHOT:compile  
[INFO] - org.elasticsearch:elasticsearch:jar:2.4.4:compile

---

<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: [November 30, 2018, 7:34am UTC](https://discuss.elastic.co/t/current-module-dependent-es6-3-2-but-other-module-dependent-current-module-show-its-dependency-is-es2-4-4/158852/5 "2018-11-30T07:34:07Z")

</div>

I'm pretty sure you defined in your `com.exam:exam-manager` a direct dependency to `org.elasticsearch:elasticsearch:jar:2.4.4:compile`. Could you share your `pom.xml` if you did not?

---

<div class="post-metadata">

### Author: ![verachenwp](https://avatars.discourse-cdn.com/v4/letter/v/58956e/32.png) [@verachenwp](https://discuss.elastic.co/u/verachenwp)
#### Post date: [November 30, 2018, 9:04am UTC](https://discuss.elastic.co/t/current-module-dependent-es6-3-2-but-other-module-dependent-current-module-show-its-dependency-is-es2-4-4/158852/6 "2018-11-30T09:04:07Z")

</div>

Thanks. I'm sure there is not any direct dependency es2.4.4 in this pom.

---

<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: [November 30, 2018, 9:26am UTC](https://discuss.elastic.co/t/current-module-dependent-es6-3-2-but-other-module-dependent-current-module-show-its-dependency-is-es2-4-4/158852/7 "2018-11-30T09:26:18Z")

</div>

Can you reproduce it with a simple pom.xml I can use?

---

<div class="post-metadata">

### Author: ![verachenwp](https://avatars.discourse-cdn.com/v4/letter/v/58956e/32.png) [@verachenwp](https://discuss.elastic.co/u/verachenwp)
#### Post date: [November 30, 2018, 10:30am UTC](https://discuss.elastic.co/t/current-module-dependent-es6-3-2-but-other-module-dependent-current-module-show-its-dependency-is-es2-4-4/158852/8 "2018-11-30T10:30:41Z")

</div>

Certainly.Here is the pom.

```
    <dependency>
        <groupId>org.elasticsearch.client</groupId>
        <artifactId>elasticsearch-rest-high-level-client</artifactId>
        <version>6.3.2</version>
    </dependency>
    <dependency>
        <groupId>org.elasticsearch.client</groupId>
        <artifactId>elasticsearch-rest-client</artifactId>
        <version>6.3.2</version>
    </dependency>
    <dependency>
        <groupId>org.elasticsearch</groupId>
        <artifactId>elasticsearch</artifactId>
        <version>6.3.2</version>
    </dependency>
    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.5.2</version>
    </dependency>
    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpcore</artifactId>
        <version>4.4.5</version>
    </dependency>
    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpasyncclient</artifactId>
        <version>4.1.2</version>
    </dependency>
    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpcore-nio</artifactId>
        <version>4.4.5</version>
    </dependency>
    <dependency>
        <groupId>commons-codec</groupId>
        <artifactId>commons-codec</artifactId>
        <version>1.10</version>
    </dependency>
    <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.1.3</version>
    </dependency>
```

---

<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: [November 30, 2018, 4:50pm UTC](https://discuss.elastic.co/t/current-module-dependent-es6-3-2-but-other-module-dependent-current-module-show-its-dependency-is-es2-4-4/158852/9 "2018-11-30T16:50:26Z")

</div>

This is only one part of the `pom.xml`. Not a full one.

And BTW I don't think you need to declare all those deps.  
Only:

```auto
    <dependency>
        <groupId>org.elasticsearch.client</groupId>
        <artifactId>elasticsearch-rest-high-level-client</artifactId>
        <version>6.5.1</version>
    </dependency>

```

Should be enough. I recommend using 6.5.1 BTW.

---

<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: [December 28, 2018, 4:50pm UTC](https://discuss.elastic.co/t/current-module-dependent-es6-3-2-but-other-module-dependent-current-module-show-its-dependency-is-es2-4-4/158852/10 "2018-12-28T16:50:29Z")

</div>

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