[Java-API] Conflict with jetty, and elasticsearch

Hey guys!

It seems Jetty has problems with the Elasticsearch 2 java api, because both of them use Netty underneath. So, do you have any ideas on how to make it run?

I had no problems to run this way with ES 1, but now that I've upgraded it seems is hard to make them work together.

Is there a way to solve this?

Thanks in advance.

You could potentially try to shade netty in Elasticsearch or in your project.

Read: https://www.elastic.co/blog/to-shade-or-not-to-shade