Guava version confliction


(Paul Alles) #1

in my projec i used elasticsearch 0.20.6. recently i upgraded my project to elasticsearch version 2.2.0. compiler time i didnt get any errors but at runtime im getting errors like methodnotfound, ClassNotFound. i found out reason for these error is guava version problem.
in my project my component use guava version 11.0 but elasticsearch version 2.2.0 use guava version 18.0. i cant change guava version of my project(11.0).
how can i use elasticsearch v 2.2.0 in my project without changing project guava version? what kind of solution i can apply?


(David Pilato) #2

You can read that: https://www.elastic.co/blog/to-shade-or-not-to-shade

David.


(Paul Alles) #3

thanks david


(system) #4