# How to install a plugin from a jar file

**URL:** <https://discuss.elastic.co/t/how-to-install-a-plugin-from-a-jar-file/22528>\
**Category:** Elasticsearch\
**Created:** [March 5, 2015, 12:54pm UTC](https://discuss.elastic.co/t/how-to-install-a-plugin-from-a-jar-file/22528 "2015-03-05T12:54:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oranit\_Dror](https://avatars.discourse-cdn.com/v4/letter/o/958977/32.png) [@Oranit\_Dror](https://discuss.elastic.co/u/Oranit_Dror)\
**Post date:** [March 5, 2015, 12:54pm UTC](https://discuss.elastic.co/t/how-to-install-a-plugin-from-a-jar-file/22528/1 "2015-03-05T12:54:11Z")

</div>

Hi,

I have written a plugin, but I cannot make ElasticSearch 1.4.4 to use it.  
Specifically, I packed the plugin as a jar file and placed the jar file  
under my ELASTIC\_SEARCH\_DIR/plugins/ directory. However, when  
I am starting ElasticSearch, the list of installed plugins is empty:

[INFO][plugins] [Ant-Man] loaded [],sites []

I should also note that when I run the 'plugin' command line with the list  
option (i.e. "bin\plugin.bat -l"), it does list my plug-in.

Any advice?

thank you,  
Oranit.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/7ae1df87-e777-4b42-96b1-050ac0ec92a2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7ae1df87-e777-4b42-96b1-050ac0ec92a2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Itamar\_Syn\_Hershko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar_syn_hershko/32/725_2.png) [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)\
**Post date:** [March 5, 2015, 12:55pm UTC](https://discuss.elastic.co/t/how-to-install-a-plugin-from-a-jar-file/22528/2 "2015-03-05T12:55:57Z")

</div>

Probably a bug in the plugin script which just looks at the folders under  
/plugins

Did you put an es.properties file in your jar as a resource?

--

Itamar Syn-Hershko  
[http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
Freelance Developer & Consultant  
[Lucene.NET](http://Lucene.NET) committer and PMC member

On Thu, Mar 5, 2015 at 2:54 PM, Oranit Dror [oranit@gmail.com](mailto:oranit@gmail.com) wrote:

> Hi,
> 
> I have written a plugin, but I cannot make Elasticsearch 1.4.4 to use it.  
> Specifically, I packed the plugin as a jar file and placed the jar file  
> under my ELASTIC\_SEARCH\_DIR/plugins/ directory. However,  
> when I am starting Elasticsearch, the list of installed plugins is empty:
> 
> [INFO][plugins] [Ant-Man] loaded ,sites
> 
> I should also note that when I run the 'plugin' command line with the  
> list option (i.e. "bin\plugin.bat -l"), it does list my plug-in.
> 
> Any advice?
> 
> thank you,  
> Oranit.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/7ae1df87-e777-4b42-96b1-050ac0ec92a2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7ae1df87-e777-4b42-96b1-050ac0ec92a2%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/7ae1df87-e777-4b42-96b1-050ac0ec92a2%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/7ae1df87-e777-4b42-96b1-050ac0ec92a2%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvxeOKZXjFrVf3%3Dfne-zW0F7iefRt%3D1SRTb%2BnhiXzsSeQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvxeOKZXjFrVf3%3Dfne-zW0F7iefRt%3D1SRTb%2BnhiXzsSeQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Austin\_Harmon](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Austin\_Harmon](https://discuss.elastic.co/u/Austin_Harmon)\
**Post date:** [March 5, 2015, 3:37pm UTC](https://discuss.elastic.co/t/how-to-install-a-plugin-from-a-jar-file/22528/3 "2015-03-05T15:37:58Z")

</div>

Hello,

This link helped me get the mapper-attachment working:

> <https://stackoverflow.com/questions/19587974/manual-install-of-elasticsearch-plugins>

The just of it is to put your commons-compress-vernum.jar and  
name-of-your-plugin-ver-num.jar into a folder with the name of your plugin  
under the plugins directory.

Hope this helps!

On Thursday, March 5, 2015 at 6:54:11 AM UTC-6, Oranit Dror wrote:

> Hi,
> 
> I have written a plugin, but I cannot make Elasticsearch 1.4.4 to use it.  
> Specifically, I packed the plugin as a jar file and placed the jar file  
> under my ELASTIC\_SEARCH\_DIR/plugins/ directory. However,  
> when I am starting Elasticsearch, the list of installed plugins is empty:
> 
> [INFO][plugins] [Ant-Man] loaded ,sites
> 
> I should also note that when I run the 'plugin' command line with the  
> list option (i.e. "bin\plugin.bat -l"), it does list my plug-in.
> 
> Any advice?
> 
> thank you,  
> Oranit.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2b3668f3-016b-4702-b41c-8e32c7e57e43%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2b3668f3-016b-4702-b41c-8e32c7e57e43%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Oranit\_Dror](https://avatars.discourse-cdn.com/v4/letter/o/958977/32.png) [@Oranit\_Dror](https://discuss.elastic.co/u/Oranit_Dror)\
**Post date:** [March 6, 2015, 7:16am UTC](https://discuss.elastic.co/t/how-to-install-a-plugin-from-a-jar-file/22528/4 "2015-03-06T07:16:01Z")

</div>

Thank you, Itamar!  
It works.

On Thursday, March 5, 2015 at 2:56:10 PM UTC+2, Itamar Syn-Hershko wrote:

> Probably a bug in the plugin script which just looks at the folders under  
> /plugins
> 
> Did you put an es.properties file in your jar as a resource?
> 
> --
> 
> Itamar Syn-Hershko  
> [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> Freelance Developer & Consultant  
> [Lucene.NET](http://Lucene.NET) committer and PMC member
> 
> On Thu, Mar 5, 2015 at 2:54 PM, Oranit Dror \<[ora...@gmail.com](mailto:ora...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > Hi,
> > 
> > I have written a plugin, but I cannot make Elasticsearch 1.4.4 to use it.  
> > Specifically, I packed the plugin as a jar file and placed the jar file  
> > under my ELASTIC\_SEARCH\_DIR/plugins/ directory. However,  
> > when I am starting Elasticsearch, the list of installed plugins is empty:
> > 
> > [INFO][plugins] [Ant-Man] loaded ,sites
> > 
> > I should also note that when I run the 'plugin' command line with the  
> > list option (i.e. "bin\plugin.bat -l"), it does list my plug-in.
> > 
> > Any advice?
> > 
> > thank you,  
> > Oranit.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/7ae1df87-e777-4b42-96b1-050ac0ec92a2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7ae1df87-e777-4b42-96b1-050ac0ec92a2%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/7ae1df87-e777-4b42-96b1-050ac0ec92a2%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/7ae1df87-e777-4b42-96b1-050ac0ec92a2%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/03414143-edf3-49f6-a147-6152b7913f6a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/03414143-edf3-49f6-a147-6152b7913f6a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:28am UTC](https://discuss.elastic.co/t/how-to-install-a-plugin-from-a-jar-file/22528/5 "2017-07-06T00:28:11Z")

</div>


