# Elastic Maven Repository Down?

**URL:** <https://discuss.elastic.co/t/elastic-maven-repository-down/301589>\
**Category:** Elasticsearch\
**Created:** [April 5, 2022, 6:23am UTC](https://discuss.elastic.co/t/elastic-maven-repository-down/301589 "2022-04-05T06:23:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jshyun](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jshyun](https://discuss.elastic.co/u/jshyun)\
**Post date:** [April 5, 2022, 6:23am UTC](https://discuss.elastic.co/t/elastic-maven-repository-down/301589/1 "2022-04-05T06:23:47Z")

</div>

Is the Maven repository at [https://artifacts.elastic.co/maven](https://artifacts.elastic.co/maven) still functioning? Index pages do not get served and maven can't seem to use it as a valid repository. From other community board posts it seems Elasticsearch used jcenter bintray as their artifact hosting provider, but that service was announced to be shut down in Feb 2021 with the final shut down date some time in Feb or March 2022. My company still has some old Elasticsearch components that depend on artifacts from the Elasticsearch repo that are not available in Maven Central. Does anyone know if Elasticsearch plans on somehow restoring the old repository or moving older artifacts to Maven Central?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 5, 2022, 6:59am UTC](https://discuss.elastic.co/t/elastic-maven-repository-down/301589/2 "2022-04-05T06:59:55Z")

</div>

Hey,

it's in use (for example debian/rpm packages). It would help show, what is not reachable right now, but has been earlier, so we can take a look.

Thanks!

--Alex

---

<div class="post-metadata">

**Author:** ![jshyun](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jshyun](https://discuss.elastic.co/u/jshyun)\
**Post date:** [April 6, 2022, 12:38am UTC](https://discuss.elastic.co/t/elastic-maven-repository-down/301589/3 "2022-04-06T00:38:37Z")

</div>

The repo in question is the maven repo and not the debian or rpm repo. Here is a minimal maven pom.xml that demonstrates the problem:

```auto
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>
    <groupId>com.foo</groupId>
    <artifactId>elastic-repo-test</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>Elastic Repository Test</name>

    <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.elasticsearch.plugin</groupId>
            <artifactId>license</artifactId>
            <version>2.4.6</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <scope>provided</scope>
            </plugin>
        </plugins>
    </build>

    <repositories>
        <repository>
          <id>elasticsearch-releases</id>
          <name>Elasticsearch Releases</name>
          <url>https://artifacts.elastic.co/maven</url>
        </repository>
    </repositories>

</project>

```

The resulting error is:

> [ERROR] Failed to execute goal on project elastic-repo-test: Could not resolve dependencies for project com.foo:elastic-repo-test:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at org.elasticsearch.plugin:license:jar:2.4.6: Failed to read artifact descriptor for org.elasticsearch.plugin:license:jar:2.4.6: Could not find artifact org.elasticsearch:license:pom:2.4.6 in elasticsearch-releases ([https://artifacts.elastic.co/maven](https://artifacts.elastic.co/maven)) -\> [Help 1]

It looks like it can find the org.elasticsearch.plugin:license artifact, but that artifact refers to the org.elasticsearch:license artifact (without -plugin) and can't find it. Also, fyi, it looks like the web editor is always capitalising elasticsearch.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 7, 2022, 7:09am UTC](https://discuss.elastic.co/t/elastic-maven-repository-down/301589/4 "2022-04-07T07:09:56Z")

</div>

This release is from almost 5 years ago, so it's supported anymore. You can get the jars by downloading the plugin (`bin/plugin install license`) and extract it manually.

Even though I'd rather recommend upgrading, than working on anything that old (think of security reasons).

---

<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:** [May 5, 2022, 7:10am UTC](https://discuss.elastic.co/t/elastic-maven-repository-down/301589/5 "2022-05-05T07:10:26Z")

</div>

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