# ElasticSearch 6.4.2 high level rest client jar hell issue with Ant build tool

**URL:** <https://discuss.elastic.co/t/elasticsearch-6-4-2-high-level-rest-client-jar-hell-issue-with-ant-build-tool/162158>\
**Category:** Elasticsearch\
**Created:** [December 26, 2018, 3:16pm UTC](https://discuss.elastic.co/t/elasticsearch-6-4-2-high-level-rest-client-jar-hell-issue-with-ant-build-tool/162158 "2018-12-26T15:16:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Kosambi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_kosambi/32/37621_2.png) [@Rahul\_Kosambi](https://discuss.elastic.co/u/Rahul_Kosambi)\
**Post date:** [December 26, 2018, 3:16pm UTC](https://discuss.elastic.co/t/elasticsearch-6-4-2-high-level-rest-client-jar-hell-issue-with-ant-build-tool/162158/1 "2018-12-26T15:16:48Z")

</div>

Hello,

I am in the process of upgrading our ES cluster from v 1.4.4 to v 6.4.2.  
I have used ES high level rest client v 6.4.2 extensively for CRUD and search operations in our project but am facing a roadblock in deployment due to jar hell issue.

Ours is an Ant project so have no option of shading like in maven ☹  
The conflicting library is lucene-core-7.4.0 which is need by ES high level rest client. However, some functionality in our project requires lucene-core-3.6.0.  
Any idea how I can package elastic high level rest client 6.4.2 along with its dependencies so that jar hell is avoided.

I am afraid I will have to rewrite most of my code to use Http API and remove HLRC altogether.  
This is a pretty late stage to re-write code to use Http. Request you to please help me in this.

~Thanks!  
Rahul

---

<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:** [January 23, 2019, 3:16pm UTC](https://discuss.elastic.co/t/elasticsearch-6-4-2-high-level-rest-client-jar-hell-issue-with-ant-build-tool/162158/2 "2019-01-23T15:16:50Z")

</div>

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