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 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
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's zip file and unzip it and build that.