Open
Description
What is the bug?
- When attempting to compile the OpenSearch index-management 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 index-management 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: index-management 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.0-SNAPSHOT
- Change maven repo to release version instead SNAPSHOT