Browse Source

Merge pull request #11637 from dadoonet/plugins/elasticsearch-provided

[build] mark elasticsearch as provided in plugins

When we build a plugin, we suppose it will be executed within elasticsearch server.
So we should mark it as `provided`.

If a java developer needs to embed the plugin and elasticsearch, it will make sense to declare both in its `pom.xml` file.
David Pilato 10 years ago
parent
commit
fbf83e3568
1 changed files with 1 additions and 0 deletions
  1. 1 0
      plugins/pom.xml

+ 1 - 0
plugins/pom.xml

@@ -42,6 +42,7 @@
         <dependency>
             <groupId>org.elasticsearch</groupId>
             <artifactId>elasticsearch</artifactId>
+            <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.elasticsearch</groupId>