# Elasticsearch 2.0 - Custom JAVA Native Script Plugin

**URL:** https://discuss.elastic.co/t/elasticsearch-2-0-custom-java-native-script-plugin/34154
**Category:** Elasticsearch
**Created:** [November 9, 2015, 2:06pm UTC](https://discuss.elastic.co/t/elasticsearch-2-0-custom-java-native-script-plugin/34154 "2015-11-09T14:06:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ricky\_sht](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@ricky\_sht](https://discuss.elastic.co/u/ricky_sht)
#### Post date: [November 9, 2015, 2:06pm UTC](https://discuss.elastic.co/t/elasticsearch-2-0-custom-java-native-script-plugin/34154/1 "2015-11-09T14:06:48Z")

</div>

I did custom plugins in elastichsearch 1.7 but i can't do the same in the 2.0 version. Anyone have an example? I tried to do it with the elasticsearch example [https://github.com/elastic/elasticsearch/tree/2.0/plugins/jvm-example](https://github.com/elastic/elasticsearch/tree/2.0/plugins/jvm-example) but was built with 2.0.1-SNAPSHOT version and didn't have the plugin-descriptor.properties" file. [https://www.elastic.co/guide/en/elasticsearch/plugins/2.0/plugin-authors.html#\_plugin\_descriptor\_file](https://www.elastic.co/guide/en/elasticsearch/plugins/2.0/plugin-authors.html#_plugin_descriptor_file)

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [November 9, 2015, 2:20pm UTC](https://discuss.elastic.co/t/elasticsearch-2-0-custom-java-native-script-plugin/34154/2 "2015-11-09T14:20:09Z")

</div>

The trouble is that there is lots of magic going on in the maven build to make it "simpler". If you are fond of your build system and don't want to just copy what we do then your best bet is to download [jvm-example](http://search.maven.org/#artifactdetails%7Corg.elasticsearch.plugin%7Cjvm-example%7C2.0.0%7Cjar)'s zip file and unzip it and build that.

---

<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 5, 2017, 11:39pm UTC](https://discuss.elastic.co/t/elasticsearch-2-0-custom-java-native-script-plugin/34154/4 "2017-07-05T23:39:09Z")

</div>


