# ES Build failure - resolve all task dependencies

**URL:** <https://discuss.elastic.co/t/es-build-failure-resolve-all-task-dependencies/322823>\
**Category:** Elasticsearch\
**Created:** [January 10, 2023, 11:23am UTC](https://discuss.elastic.co/t/es-build-failure-resolve-all-task-dependencies/322823 "2023-01-10T11:23:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kvmprashanth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvmprashanth/32/97680_2.png) [@kvmprashanth](https://discuss.elastic.co/u/kvmprashanth)\
**Post date:** [January 10, 2023, 11:23am UTC](https://discuss.elastic.co/t/es-build-failure-resolve-all-task-dependencies/322823/1 "2023-01-10T11:23:17Z")

</div>

I am trying to build Elasticsearch from scratch using `./gradlew localDistro` command on one of the latest releases. When I build on master it works. However, when I try to build from one of the tagged (v8.5.3 or even v7.11.8) versions it fails. I see the following output.

```auto
./gradlew localDistro

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':x-pack:plugin:ml:explodedBundlePlugin'.
> Could not resolve all task dependencies for configuration ':x-pack:plugin:ml:nativeBundle'.
   > Could not find org.elasticsearch.ml:ml-cpp:8.5.3-SNAPSHOT.
     Searched in the following locations:
       - https://artifacts-snapshot.elastic.co/ml-cpp/8.5.3-SNAPSHOT/downloads/ml-cpp/ml-cpp-8.5.3-SNAPSHOT-deps.zip
     Required by:
         project :x-pack:plugin:ml

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 15s
19 actionable tasks: 6 executed, 13 up-to-date

```

Trying to access the above dependency URL returns this

```auto
NoSuchKeyThe specified key does not exist.

```

Can anyone share why this occurs or how to fix it?

---

<div class="post-metadata">

**Author:** ![1\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/1_2/32/116066_2.png) [@1\_2](https://discuss.elastic.co/u/1_2)\
**Post date:** [January 18, 2023, 8:06am UTC](https://discuss.elastic.co/t/es-build-failure-resolve-all-task-dependencies/322823/2 "2023-01-18T08:06:33Z")

</div>

The file under the URL is not available anymore. Latest ml-cpp release is 8.6.0 so the correct URL is now: `https://artifacts-snapshot.elastic.co/ml-cpp/8.6.0-SNAPSHOT/downloads/ml-cpp/ml-cpp-8.6.0-SNAPSHOT-deps.zip`

---

<div class="post-metadata">

**Author:** ![kvmprashanth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvmprashanth/32/97680_2.png) [@kvmprashanth](https://discuss.elastic.co/u/kvmprashanth)\
**Post date:** [January 18, 2023, 11:53am UTC](https://discuss.elastic.co/t/es-build-failure-resolve-all-task-dependencies/322823/3 "2023-01-18T11:53:56Z")

</div>

Thank you for your reply. I appreciate it.

---

<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:** [February 15, 2023, 11:54am UTC](https://discuss.elastic.co/t/es-build-failure-resolve-all-task-dependencies/322823/4 "2023-02-15T11:54:15Z")

</div>

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