Skip to content

desp0916/es-shaded

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shaded Jar for ElasticSearch 2.3.4

What is this?

This is the shaded jar for ElasticSearch 2.3.4. I embed this jar to my Storm uber jar. I encountered the shaded problem about ElasticSearch 2.3.2 for several days, and after many try-and-errors, I have finally figured out the solution.

If you are facing the same problem I met, this project might help you. You can modify pom.xml for your needs or resolve the problem about dependency conflicts.

I recommend you to use JDK 8, which can save you a lot of time .

You are also encouraged to read the following references:

How to use?

Just clone the project, edit the pom.xml(if needed), build with Maven, and install to your local repository (I use Maven 3.2.5):

git clone https://github.com/desp0916/es-shaded.git
cd es-shaded
mvn clean install

The jar file will be installed to your local repository (~/.m2/repository/my/elasticsearch/test/es-shaded/). Then you can embeded it to your uber jar's pom.xml by inserting the following block:

<dependency>
	<groupId>my.elasticsearch.test</groupId>
	<artifactId>es-shaded</artifactId>
	<version>1.0-SNAPSHOT</version>
</dependency>

Finally, rebuild your uber jar again like this:

maven clean package

Happy Enjoying!

About

Shaded Jar for ElasticSearch 2.2.1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages