# Where are plugins in Maven now?

**URL:** <https://discuss.elastic.co/t/where-are-plugins-in-maven-now/72238>\
**Category:** Elasticsearch\
**Created:** [January 20, 2017, 12:33am UTC](https://discuss.elastic.co/t/where-are-plugins-in-maven-now/72238 "2017-01-20T00:33:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![trejkaz](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@trejkaz](https://discuss.elastic.co/u/trejkaz)\
**Post date:** [January 20, 2017, 12:33am UTC](https://discuss.elastic.co/t/where-are-plugins-in-maven-now/72238/1 "2017-01-20T00:33:41Z")

</div>

We were fetching plugins from Maven using the zip artifacts in our build:

```
  elasticsearch_analysis_icu: [
    'org.elasticsearch.plugin:analysis-icu:2.4.1@zip',
  ],

  elasticsearch_analysis_kuromoji: [
    'org.elasticsearch.plugin:analysis-kuromoji:2.4.1@zip',
  ],

```

Now we're using elasticsearch 5.1.2. I have checked a few Maven repositories and I don't see a 5.1.2 release for the plugins.

I assume that the group has changed or something but I can't seem to find the new group.

Could someone point me in the right direction?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 20, 2017, 7:22am UTC](https://discuss.elastic.co/t/where-are-plugins-in-maven-now/72238/2 "2017-01-20T07:22:56Z")

</div>

ZIP files are now published on elasticsearch download service but not anymore on maven central nor on elastic maven repository.

You will find the exact URL in the plugin doc page. Like [https://www.elastic.co/guide/en/elasticsearch/plugins/5.1/analysis-icu.html#analysis-icu-install](https://www.elastic.co/guide/en/elasticsearch/plugins/5.1/analysis-icu.html#analysis-icu-install)

The url is [https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-icu/analysis-icu-5.1.2.zip](https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-icu/analysis-icu-5.1.2.zip)

---

<div class="post-metadata">

**Author:** ![trejkaz](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@trejkaz](https://discuss.elastic.co/u/trejkaz)\
**Post date:** [January 23, 2017, 12:13am UTC](https://discuss.elastic.co/t/where-are-plugins-in-maven-now/72238/3 "2017-01-23T00:13:17Z")

</div>

Eww. That's unfortunate... ☹

I guess I'll just copy them into the artifact server on our side, into the position they used to be at. But this increases the amount of work to do each update.

---

<div class="post-metadata">

**Author:** ![trejkaz](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@trejkaz](https://discuss.elastic.co/u/trejkaz)\
**Post date:** [January 24, 2017, 1:22am UTC](https://discuss.elastic.co/t/where-are-plugins-in-maven-now/72238/4 "2017-01-24T01:22:50Z")

</div>

... Actually, now that I have cleared that barrier, the jars also seem to be missing from Maven. ☹

Can't we just get the artifacts deployed?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 24, 2017, 7:14am UTC](https://discuss.elastic.co/t/where-are-plugins-in-maven-now/72238/5 "2017-01-24T07:14:26Z")

</div>

Yeah. That's what I said previously. You can only use elastic download service for plugins. Some plugins are available on Maven central but they are only the ones which are required by the Java Transport Client.

When the Transport Client will be deprecated (then removed), probably those plugins won't be published anymore.

As a workaround you can use a similar recipe I explained in:

> [@Integration test for ingest-attachment plugin](https://discuss.elastic.co/t/integration-test-for-ingest-attachment-plugin/72510/2):
>
> You need to create a real integration test server. I wrote something about this here: [http://david.pilato.fr/blog/2016/10/18/elasticsearch-real-integration-tests-updated-for-ga/](http://david.pilato.fr/blog/2016/10/18/elasticsearch-real-integration-tests-updated-for-ga/) A bit complicated but at least really realistic. May be download the artifact with [http://www.mojohaus.org/wagon-maven-plugin/](http://www.mojohaus.org/wagon-maven-plugin/) like: \<plugin\> \<groupId\>org.codehaus.mojo\</groupId\> \<artifactId\>wagon-maven-plugin\</artifactId\> \<version\>1.0\</version\> \<executions\> \<execution\> \<id\>downloa…

---

<div class="post-metadata">

**Author:** ![Pyppe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pyppe/32/3531_2.png) [@Pyppe](https://discuss.elastic.co/u/Pyppe)\
**Post date:** [February 8, 2017, 1:13pm UTC](https://discuss.elastic.co/t/where-are-plugins-in-maven-now/72238/6 "2017-02-08T13:13:55Z")

</div>

Gotta say I am disappointed by this; this complicates how custom "builds" can be made. We have our own "sbt pipeline" of building services (Elasticsearch being one of them).

In 2.x we could simply create our own "fat JAR" and define the dependencies we needed (e.g. `"org.elasticsearch.plugin" % "analysis-icu" % "2.32"`). How is this supposed to work, if we were to upgrade to 5.x? There's a good reason why Maven exists, why not utilize it?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 8, 2017, 1:44pm UTC](https://discuss.elastic.co/t/where-are-plugins-in-maven-now/72238/7 "2017-02-08T13:44:38Z")

</div>

Normally you don't need to embed analysis plugin in your application. It's a plugin which must be used only in elasticsearch (the server).

What are you trying to do?

---

<div class="post-metadata">

**Author:** ![Pyppe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pyppe/32/3531_2.png) [@Pyppe](https://discuss.elastic.co/u/Pyppe)\
**Post date:** [February 8, 2017, 2:13pm UTC](https://discuss.elastic.co/t/where-are-plugins-in-maven-now/72238/8 "2017-02-08T14:13:39Z")

</div>

The service we build with the sbt is "the Elasticsearch server". Currently our dependencies are (elasticsearch-wise):

```auto
"org.elasticsearch" % "elasticsearch" % "2.3.2"
"org.elasticsearch.plugin" % "analysis-icu" % "2.3.2"

```

We have maany different services, and like to bootstrap and release them right thru the sbt in a similar manner.

This enables us to update our custom Elasticsearch-plugins right thru the sbt, and bundle them in one JAR-file (i.e. the elasticsearch server including custom plugins).

I know this isn't how most users use the server, and I guess most just download the "server ZIP file". But we build most of our services on JVM (Scala), and would like to take advantage of that by including elasticsearch as a Maven-dependency just like everything else.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 8, 2017, 4:26pm UTC](https://discuss.elastic.co/t/where-are-plugins-in-maven-now/72238/9 "2017-02-08T16:26:11Z")

</div>

It's not supported. It means that you are probably on your own.

So basically, download the Zip from our service then unzip and repackage.

But I'm sure there are plenty of other way to distribute a full elasticsearch version with all the plugins you need.

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [February 9, 2017, 5:05pm UTC](https://discuss.elastic.co/t/where-are-plugins-in-maven-now/72238/10 "2017-02-09T17:05:00Z")

</div>

I used to work on a project that used span queries, which does not analyze  
term. To get around this issue, we would recreate the analysis server  
locally and analyze the terms. Worked perfectly. Sadly elasticsearch is  
becoming less flexible.

---

<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:** [March 9, 2017, 5:05pm UTC](https://discuss.elastic.co/t/where-are-plugins-in-maven-now/72238/11 "2017-03-09T17:05:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
