Skip to content

Conversation

@siegfriedweber
Copy link
Member

@siegfriedweber siegfriedweber commented Feb 2, 2026

Description

The build of OpenSearch 3.1.0 failed with the following error:

A problem occurred configuring root project 'opensearch-security'.
> Could not resolve all artifacts for configuration 'classpath'.
   > Could not resolve org.opensearch.gradle:build-tools:3.1.0-SNAPSHOT.
     Required by:
         root project :
      > Could not resolve org.opensearch.gradle:build-tools:3.1.0-SNAPSHOT.
         > Unable to load Maven meta-data from https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/gradle/build-tools/3.1.0-SNAPSHOT/maven-metadata.xml.
            > Could not GET 'https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/gradle/build-tools/3.1.0-SNAPSHOT/maven-metadata.xml'. Received status code 402 from server: Payment Required
      > Could not resolve org.opensearch.gradle:build-tools:3.1.0-SNAPSHOT.
         > Unable to load Maven meta-data from https://artifacts.opensearch.org/snapshots/lucene/org/opensearch/gradle/build-tools/3.1.0-SNAPSHOT/maven-metadata.xml.
            > Could not GET 'https://artifacts.opensearch.org/snapshots/lucene/org/opensearch/gradle/build-tools/3.1.0-SNAPSHOT/maven-metadata.xml'. Received status code 403 from server: Forbidden

The OpenSearch Security Plugin 3.1.0.0 uses SNAPSHOT artifacts for the build. These artifacts are downloaded from Sonatype. Sonatype changed its policy to remove snapshot artifacts after 30 days which resulted in the error above. Therefore, in OpenSearch 3.4.0 the Sonatype Maven repository was replaced with the one from OpenSearch (opensearch-project/opensearch-build#5360). This change was backported to OpenSearch 3.3.0, but not to 3.1.0. This pull request backports opensearch-project/security#5711 and solves the issue.

Definition of Done Checklist

Note

Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant.

Please make sure all these things are done and tick the boxes

  • Changes are OpenShift compatible
TIP: Running integration tests with a new product image

The image can be built and uploaded to the kind cluster with the following commands:

boil build <IMAGE> --image-version <RELEASE_VERSION> --strip-architecture --load
kind load docker-image <MANIFEST_URI> --name=<name-of-your-test-cluster>

See the output of boil to retrieve the image manifest URI for <MANIFEST_URI>.

@siegfriedweber siegfriedweber requested a review from a team February 2, 2026 11:55
@siegfriedweber siegfriedweber self-assigned this Feb 2, 2026
@siegfriedweber siegfriedweber moved this to Development: Waiting for Review in Stackable Engineering Feb 2, 2026
@Techassi Techassi moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Feb 2, 2026
@siegfriedweber siegfriedweber added this pull request to the merge queue Feb 2, 2026
Merged via the queue into main with commit a0f4009 Feb 2, 2026
3 checks passed
@siegfriedweber siegfriedweber deleted the fix/opensearch-3.1.0-build branch February 2, 2026 12:01
@Techassi Techassi moved this from Development: In Review to Development: Done in Stackable Engineering Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: Done

Development

Successfully merging this pull request may close these issues.

3 participants