# Elasticsearch Compilation issues on Linux

**URL:** <https://discuss.elastic.co/t/elasticsearch-compilation-issues-on-linux/327096>\
**Category:** Elasticsearch\
**Created:** [March 6, 2023, 3:03pm UTC](https://discuss.elastic.co/t/elasticsearch-compilation-issues-on-linux/327096 "2023-03-06T15:03:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![markchennai](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@markchennai](https://discuss.elastic.co/u/markchennai)\
**Post date:** [March 6, 2023, 3:03pm UTC](https://discuss.elastic.co/t/elasticsearch-compilation-issues-on-linux/327096/1 "2023-03-06T15:03:06Z")

</div>

Team,

I am facing issues while compiling Elasticsearch 8.5.1, the source code is allowed to pull the files from the in-house repo,

FAILURE: Build failed with an exception.

- What went wrong:  
**A problem occurred configuring project ':build-tools'.**  
**\> Could not determine the dependencies of null.**

> Could not resolve all task dependencies for configuration ':build-tools:classpath'.  
> Could not resolve org.apache.maven:maven-model:3.6.2.  
> Required by:  
> project :build-tools \> project :build-conventions  
> Could not resolve org.apache.maven:maven-model:3.6.2.  
> Could not get resource '[https://plugins.gradle.org/m2/org/apache/maven/maven-model/3.6.2/maven-model-3.6.2.pom](https://plugins.gradle.org/m2/org/apache/maven/maven-model/3.6.2/maven-model-3.6.2.pom)'.  
> Could not HEAD '[https://plugins.gradle.org/m2/org/apache/maven/maven-model/3.6.2/maven-model-3.6.2.pom](https://plugins.gradle.org/m2/org/apache/maven/maven-model/3.6.2/maven-model-3.6.2.pom)'.  
> Connect to [plugins.gradle.org:443](http://plugins.gradle.org:443/) [[plugins.gradle.org/104.17.46.54](http://plugins.gradle.org/104.17.46.54), [plugins.gradle.org/104.17.10.66](http://plugins.gradle.org/104.17.10.66)] failed: Connection refused  
> Could not resolve gradle.plugin.com.github.johnrengelman:shadow:7.1.2.  
> Required by:  
> project :build-tools \> project :build-conventions  
> Could not resolve gradle.plugin.com.github.johnrengelman:shadow:7.1.2.  
> Could not get resource '[https://plugins.gradle.org/m2/gradle/plugin/com/github/johnrengelman/shadow/7.1.2/shadow-7.1.2.pom](https://plugins.gradle.org/m2/gradle/plugin/com/github/johnrengelman/shadow/7.1.2/shadow-7.1.2.pom)'.  
> Could not HEAD '[https://plugins.gradle.org/m2/gradle/plugin/com/github/johnrengelman/shadow/7.1.2/shadow-7.1.2.pom](https://plugins.gradle.org/m2/gradle/plugin/com/github/johnrengelman/shadow/7.1.2/shadow-7.1.2.pom)'.  
> Connect to [plugins.gradle.org:443](http://plugins.gradle.org:443/) [[plugins.gradle.org/104.17.46.54](http://plugins.gradle.org/104.17.46.54), [plugins.gradle.org/104.17.10.66](http://plugins.gradle.org/104.17.10.66)] failed: Connection refused  
> Could not resolve org.apache.rat:apache-rat:0.11.  
> Required by:  
> project :build-tools \> project :build-conventions  
> Could not resolve org.apache.rat:apache-rat:0.11.  
> Could not get resource '[https://plugins.gradle.org/m2/org/apache/rat/apache-rat/0.11/apache-rat-0.11.pom](https://plugins.gradle.org/m2/org/apache/rat/apache-rat/0.11/apache-rat-0.11.pom)'.  
> Could not HEAD '[https://plugins.gradle.org/m2/org/apache/rat/apache-rat/0.11/apache-rat-0.11.pom](https://plugins.gradle.org/m2/org/apache/rat/apache-rat/0.11/apache-rat-0.11.pom)'.  
> Connect to [plugins.gradle.org:443](http://plugins.gradle.org:443/) [[plugins.gradle.org/104.17.46.54](http://plugins.gradle.org/104.17.46.54), [plugins.gradle.org/104.17.10.66](http://plugins.gradle.org/104.17.10.66)] failed: Connection refused  
> Could not resolve com.diffplug.spotless:spotless-plugin-gradle:6.7.2.  
> Required by:  
> project :build-tools \> project :build-conventions  
> Could not resolve com.diffplug.spotless:spotless-plugin-gradle:6.7.2.  
> Could not get resource '[https://plugins.gradle.org/m2/com/diffplug/spotless/spotless-plugin-gradle/6.7.2/spotless-plugin-gradle-6.7.2.pom](https://plugins.gradle.org/m2/com/diffplug/spotless/spotless-plugin-gradle/6.7.2/spotless-plugin-gradle-6.7.2.pom)'.  
> Could not HEAD '[https://plugins.gradle.org/m2/com/diffplug/spotless/spotless-plugin-gradle/6.7.2/spotless-plugin-gradle-6.7.2.pom](https://plugins.gradle.org/m2/com/diffplug/spotless/spotless-plugin-gradle/6.7.2/spotless-plugin-gradle-6.7.2.pom)'.  
> Connect to [plugins.gradle.org:443](http://plugins.gradle.org:443/) [[plugins.gradle.org/104.17.46.54](http://plugins.gradle.org/104.17.46.54), [plugins.gradle.org/104.17.10.66](http://plugins.gradle.org/104.17.10.66)] failed: Connection refused

**Issues I face are as below**  
When i run the build-conventions, it compiles perfectly, but the build-tools is not compiling.

Is there any way that i can pull the required software bundles locally and complete the compilation?  
can i keep all the jar's from "build.versions.toml" locally

**I am using Elasticsearch 8.5.1, Gradle 7.5.1, jdk 17**

please let me know, the next steps

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [March 6, 2023, 3:15pm UTC](https://discuss.elastic.co/t/elasticsearch-compilation-issues-on-linux/327096/2 "2023-03-06T15:15:56Z")

</div>

The 8.5 branch became unmaintained with the release of 8.6.0 on January 10. Try using the 8.6 or later branches.

---

<div class="post-metadata">

**Author:** ![markchennai](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@markchennai](https://discuss.elastic.co/u/markchennai)\
**Post date:** [March 6, 2023, 3:19pm UTC](https://discuss.elastic.co/t/elasticsearch-compilation-issues-on-linux/327096/3 "2023-03-06T15:19:47Z")

</div>

Thank You, will change the branch and try

---

<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:** [April 3, 2023, 3:20pm UTC](https://discuss.elastic.co/t/elasticsearch-compilation-issues-on-linux/327096/4 "2023-04-03T15:20:24Z")

</div>

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