I trying to use Maven Shade and wrap ElasticSearch jar.
The reason, why I doing it is because I have a conflict between Lucene version in my project.
But I found problem, when I using Shade. It doesn't change name of file in META-INF/services
and also doesn't change FQN in that particular files.
I need to change org.apache.lucene.codecs.Codec
file and its content. Because if this file keep its name, then I get error
"Caused by: java.lang.IllegalArgumentException: An SPI class of type shaded_lucene_4_10_4.org.apache.lucene.codecs.Codec with name 'Lucene410' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: []"
Is it possible to wrap up ElasticSearch with Maven Shade plugin?