OpenSearch/plugins
Christoph Büscher 8454d49552 Plugins: Add 'name' property to plugin descriptor file to determine plugin name
At the moment, when installing from an url, a user provides the plugin name on
the command line like:

* bin/plugin install [plugin-name] --url [url]

This can lead to problems when picking an already existing name from another
plugin, and can potentially overwrite plugins already installed with that name.

This, this PR introduces a mandatory `name` property to the plugin descriptor
file which replaces the name formerly provided by the user.

With the addition of the `name` property to the plugin descriptor file, the user
does not need to specify the plugin name any longer when installing from a file
or url. Because of this, all arguments to `plugin install` command are now
either treated as a symbolic name, a URL or a file without the need to specify
this with an explicit option.

The new syntax for `plugin install` is now:

bin/plugin install [name or url]

* downloads official plugin
bin/plugin install analysis-kuromoji

* downloads github plugin
bin/plugin install lmenezes/elasticsearch-kopf

* install from URL or file
bin/plugin install http://link.to/foo.zip
bin/plugin install file:/path/to/foo.zip

If the argument does not parse to a valid URL, it is assumed to be a name and the
download location is resolved like before. Regardless of the source location of
the plugin, it is extracted to a temporary directory and the `name` property from
the descriptor file is used to determine the final install location.

Relates to #12715
2015-08-19 12:13:01 +02:00
..
analysis-icu Merge branch 'master' into construct_it_yourself 2015-08-18 09:50:47 -07:00
analysis-kuromoji Merge branch 'master' into construct_it_yourself 2015-08-18 09:50:47 -07:00
analysis-phonetic Merge branch 'master' into construct_it_yourself 2015-08-18 09:50:47 -07:00
analysis-smartcn Merge branch 'master' into construct_it_yourself 2015-08-18 09:50:47 -07:00
analysis-stempel Merge branch 'master' into construct_it_yourself 2015-08-18 09:50:47 -07:00
cloud-aws Merge branch 'master' into construct_it_yourself 2015-08-18 14:15:08 -07:00
cloud-azure Merge branch 'master' into construct_it_yourself 2015-08-18 14:15:08 -07:00
cloud-gce Merge branch 'master' into construct_it_yourself 2015-08-18 09:50:47 -07:00
delete-by-query Merge branch 'master' into construct_it_yourself 2015-08-18 09:50:47 -07:00
jvm-example Merge branch 'master' into construct_it_yourself 2015-08-18 09:50:47 -07:00
lang-javascript Merge branch 'master' into construct_it_yourself 2015-08-18 09:50:47 -07:00
lang-python Merge branch 'master' into construct_it_yourself 2015-08-18 09:50:47 -07:00
mapper-murmur3 Remove leftover class and fix compile issues from master merge 2015-08-18 14:28:03 -07:00
mapper-size Merge branch 'master' into construct_it_yourself 2015-08-18 09:50:47 -07:00
site-example [maven] rename artifactIds from `elasticsearch-something` to `something` 2015-08-18 13:38:48 +02:00
pom.xml Plugins: Add 'name' property to plugin descriptor file to determine plugin name 2015-08-19 12:13:01 +02:00