Elastic Maven Repository Down?

Is the Maven repository at 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?

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

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:

<?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) -> [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.

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).

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