Elasticsearch 6.3.0 unavailable in maven repository

When attempting to download the elasticsearch distribution zip from the maven global repository, I am getting a 404. Is anyone else having this issue?



You can't get the distribution in Maven. URL is https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.0.zip

We have been downloading distributions from this repository for previous versions for a while now. The problem is that this particular version is broken. We use this link as a part of our build process.


You can do it for the OSS version at https://repo1.maven.org/maven2/org/elasticsearch/distribution/zip/elasticsearch-oss/6.3.0/

Thank you

@Rick_Cole Please note that the distribution only exists in maven for testing purposes, but it is possible and likely our test framework will eventually pull the distributions directly from the elastic download service. To make your downloading future proof, you should use the official download URL @dadoonet mentioned earlier.

The problem is, when using the build-tools for plugin development, the gradle run command doesn't work anymore (since it is searching for this distribution in maven).
Is there any workaround to make this work ?

gradle run command can be very practical when developing a plugin. Do you have any hint to make this work with Elasticsearch version >= 6.3.0 (it crashes because distribution is unavailable in maven repository).

Thank you in advance.

Did you try with 6.3.2? I think I read an issue about that recently.

Yes I try, unfortunately I got the same error:

> Configure project :
Elasticsearch Build Hamster says Hello!
  Gradle Version        : 4.8
  OS Info               : Mac OS X 10.13.6 (x86_64)
  JDK Version           : Oracle Corporation 10.0.1 [Java HotSpot(TM) 64-Bit Server VM 10.0.1+10]
  JAVA_HOME             : /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
  Random Testing Seed   : DFF923A345AC2D24

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':run#extract'.
> Could not resolve all files for configuration ':run_elasticsearchDistro'.
   > Could not find org.elasticsearch.distribution.zip:elasticsearch:6.3.2.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/org/elasticsearch/distribution/zip/elasticsearch/6.3.2/elasticsearch-6.3.2.pom
       - https://repo.maven.apache.org/maven2/org/elasticsearch/distribution/zip/elasticsearch/6.3.2/elasticsearch-6.3.2.zip
     Required by:
         project :

It works as expected with version < 6.3.0

Ha sorry about that. @rjernst might know then.

Try adding https://artifacts.elastic.co/maven as a repo in your build. Since in 6.3.0 we switched to the default distribution containing x-pack, only the oss version is hosted on maven central.

I've opened https://github.com/elastic/elasticsearch/pull/32549 to do this as part of the build setup.

1 Like

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