# Install non-site plugin, get "IllegalArgumentException: Plugin installation assumed to be site plugin, but contains source code, aborting installation"

**URL:** <https://discuss.elastic.co/t/install-non-site-plugin-get-illegalargumentexception-plugin-installation-assumed-to-be-site-plugin-but-contains-source-code-aborting-installation/14393>\
**Category:** Elasticsearch\
**Created:** [November 14, 2013, 1:51am UTC](https://discuss.elastic.co/t/install-non-site-plugin-get-illegalargumentexception-plugin-installation-assumed-to-be-site-plugin-but-contains-source-code-aborting-installation/14393 "2013-11-14T01:51:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Guo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_guo/32/1725_2.png) [@Daniel\_Guo](https://discuss.elastic.co/u/Daniel_Guo)\
**Post date:** [November 14, 2013, 1:51am UTC](https://discuss.elastic.co/t/install-non-site-plugin-get-illegalargumentexception-plugin-installation-assumed-to-be-site-plugin-but-contains-source-code-aborting-installation/14393/1 "2013-11-14T01:51:19Z")

</div>

I try to install a plugin from github, for example:  
[https://github.com/medcl/elasticsearch-analysis-string2int](https://github.com/medcl/elasticsearch-analysis-string2int),  
the command is: $ bin/plugin --install  
medcl/elasticsearch-analysis-string2int , but I get the exception:  
"IllegalArgumentException: Plugin installation assumed to be site plugin,  
but contains source code, aborting installation"  
I tried with version following plugin name, but it doesn't work either.  
Could anybody tell me how to install such type of plugins? Thanks.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [November 14, 2013, 2:05am UTC](https://discuss.elastic.co/t/install-non-site-plugin-get-illegalargumentexception-plugin-installation-assumed-to-be-site-plugin-but-contains-source-code-aborting-installation/14393/2 "2013-11-14T02:05:57Z")

</div>

You can no longer install non-site plugins directly from github. You would  
need to clone the project and build it yourself. It appears they created a  
jar for it, but you would still need to create the directories:  
[https://github.com/medcl/elasticsearch-rtf/tree/master/elasticsearch/plugins/analysis-string2int](https://github.com/medcl/elasticsearch-rtf/tree/master/elasticsearch/plugins/analysis-string2int)

On Wed, Nov 13, 2013 at 5:51 PM, Daniel Guo [daniel5hbs@gmail.com](mailto:daniel5hbs@gmail.com) wrote:

> I try to install a plugin from github, for example:  
> [GitHub - medcl/elasticsearch-analysis-string2int: string2integer analysis for elasticsearch,save your memory and reduce the size of your index,the size of the filedcache can be reduced from giga to mega,and also the query time can be reduced from minutes to millionseconds.](https://github.com/medcl/elasticsearch-analysis-string2int),  
> the command is: $ bin/plugin --install  
> medcl/elasticsearch-analysis-string2int , but I get the exception:  
> "IllegalArgumentException: Plugin installation assumed to be site plugin,  
> but contains source code, aborting installation"  
> I tried with version following plugin name, but it doesn't work either.  
> Could anybody tell me how to install such type of plugins? Thanks.
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:07am UTC](https://discuss.elastic.co/t/install-non-site-plugin-get-illegalargumentexception-plugin-installation-assumed-to-be-site-plugin-but-contains-source-code-aborting-installation/14393/3 "2017-07-06T02:07:19Z")

</div>


