# Plugin installation assumed to be site plugin, but contains source code, aborting installation

**URL:** <https://discuss.elastic.co/t/plugin-installation-assumed-to-be-site-plugin-but-contains-source-code-aborting-installation/10700>\
**Category:** Elasticsearch\
**Created:** [February 11, 2013, 8:24pm UTC](https://discuss.elastic.co/t/plugin-installation-assumed-to-be-site-plugin-but-contains-source-code-aborting-installation/10700 "2013-02-11T20:24:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinicius\_Carvalho](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinicius_carvalho/32/770_2.png) [@Vinicius\_Carvalho](https://discuss.elastic.co/u/Vinicius_Carvalho)\
**Post date:** [February 11, 2013, 8:24pm UTC](https://discuss.elastic.co/t/plugin-installation-assumed-to-be-site-plugin-but-contains-source-code-aborting-installation/10700/1 "2013-02-11T20:24:02Z")

</div>

Well, I'm writing a new plugin (in case anyone may one day need, its a  
newrelic plugin to send ES node/cluster info to  
newrelic) [https://github.com/viniciusccarvalho/elasticsearch-newrelic](https://github.com/viniciusccarvalho/elasticsearch-newrelic)

There's nothing useful there yet. Just that we need it here at [emusic.com](http://emusic.com)  
to monitor our ES cluster.

But, I noticed that if by any reason my plugin contains java files, I get  
this error:

line 246 of PluginManager class

if (FileSystemUtils.hasExtensions(extractLocation, ".java")) {

Just wondering why the presence of java files would classify a plugin as a  
site with code, not getting it. First I was trying to get a river actually.

I had to debug the code to figure out, as the real reason was the fact that  
the newrelic-api jar contained java files along with classes.

Would be nice to have a better message for that, should I open a ticket for  
that?

Regards

--  
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:** ![Bruno\_Miranda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bruno_miranda/32/746_2.png) [@Bruno\_Miranda](https://discuss.elastic.co/u/Bruno_Miranda)\
**Post date:** [February 13, 2013, 11:56pm UTC](https://discuss.elastic.co/t/plugin-installation-assumed-to-be-site-plugin-but-contains-source-code-aborting-installation/10700/2 "2013-02-13T23:56:34Z")

</div>

+1

On Monday, February 11, 2013 12:24:02 PM UTC-8, Vinicius Carvalho wrote:

> Well, I'm writing a new plugin (in case anyone may one day need, its a  
> newrelic plugin to send ES node/cluster info to newrelic)  
> [GitHub - viniciusccarvalho/elasticsearch-newrelic: Plugin to push elasticsearch data to newrelic](https://github.com/viniciusccarvalho/elasticsearch-newrelic)
> 
> There's nothing useful there yet. Just that we need it here at emusic.comto monitor our ES cluster.
> 
> But, I noticed that if by any reason my plugin contains java files, I get  
> this error:
> 
> line 246 of PluginManager class
> 
> if (FileSystemUtils.hasExtensions(extractLocation, ".java")) {
> 
> Just wondering why the presence of java files would classify a plugin as a  
> site with code, not getting it. First I was trying to get a river actually.
> 
> I had to debug the code to figure out, as the real reason was the fact  
> that the newrelic-api jar contained java files along with classes.
> 
> Would be nice to have a better message for that, should I open a ticket  
> for that?
> 
> Regards

--  
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:51am UTC](https://discuss.elastic.co/t/plugin-installation-assumed-to-be-site-plugin-but-contains-source-code-aborting-installation/10700/3 "2017-07-06T02:51:30Z")

</div>

Closed on July 6, 2017, 2:51am UTC


