ml-commons icon indicating copy to clipboard operation
ml-commons copied to clipboard

Unable to Load Maven Metadata for OpenSearch Build Tools

Open surekhasangle opened this issue 8 months ago • 2 comments

What is the bug?

  • When attempting to compile the OpenSearch ml-commons Plugin using gradlew assemble, the build process fails with the following error:
  • Unable to load Maven meta-data from https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/gradle/build-tools/2.15.0.0-SNAPSHOT/maven-metadata.xml. https://ci.opensearch.org/ci/dbc/snapshots/lucene/org/opensearch/common-utils/2.15.0.0-SNAPSHOT/maven-metadata.xml.
  • This error suggests that the required Maven snapshot dependency (org.opensearch.gradle:build-tools:2.15.0.0-SNAPSHOT & common-utils:2.15.0.0-SNAPSHOT) is missing from the repository. The issue is due to the snapshot being removed from the repository.

How can one reproduce the bug?

  • Clone the OpenSearch ml-commons Plugin repository.
  • Navigate to the project directory.
  • Run the command to build the project: ./gradlew assemble
  • The build process fails with the Unable to load Maven meta-data error.

What is the expected behavior?

  • The gradlew assemble command should successfully resolve all dependencies, download the required build tools, and compile the plugin without errors.

What is your host/environment?

  • OS: [Linux, Windows]
  • OpenSearch Version: [2.15.0]
  • Java Version: [OpenJDK 21]
  • Gradle Version: [8.7]
  • Plugins Used: ml-commons Plugin
  • Build Tool: Gradle

Do you have any additional context?

  • Change opensearch version in build.gradle file to 2.15.0 instead of 2.15.0-SNAPSHOT
  • Change maven repo to release version instead SNAPSHOT

surekhasangle avatar Mar 10 '25 10:03 surekhasangle