# How to avoid X-pack from getting compiled while compiling elasticsearch source code

**URL:** <https://discuss.elastic.co/t/how-to-avoid-x-pack-from-getting-compiled-while-compiling-elasticsearch-source-code/168555>\
**Category:** Elasticsearch\
**Created:** [February 15, 2019, 9:25am UTC](https://discuss.elastic.co/t/how-to-avoid-x-pack-from-getting-compiled-while-compiling-elasticsearch-source-code/168555 "2019-02-15T09:25:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)\
**Post date:** [February 15, 2019, 9:25am UTC](https://discuss.elastic.co/t/how-to-avoid-x-pack-from-getting-compiled-while-compiling-elasticsearch-source-code/168555/1 "2019-02-15T09:25:44Z")

</div>

I am trying to run elasticsearch source code in eclipse.  
But I want to exclude x-pack in the compilation process.  
I am just getting started with elasticsearch open source, so any help from you guys will be appreciated.  
Thank you.

---

<div class="post-metadata">

**Author:** ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)\
**Post date:** [February 18, 2019, 4:13am UTC](https://discuss.elastic.co/t/how-to-avoid-x-pack-from-getting-compiled-while-compiling-elasticsearch-source-code/168555/2 "2019-02-18T04:13:40Z")

</div>

Any suggestions how to achieve this.  
I tried commenting out the line, **addSubProjects(‘’, new File(rootProject.projectDir, ‘x-pack’))**  
in **setings.gradle** but it gave me the following error:

FAILURE: Build failed with an exception.

\*\*\* Where:\*\*  
**Build file 'C:\Users\mkumaru\Desktop\elasticsearch-master\elasticsearch-master\build.gradle' line: 275**

\*\*\* What went wrong:\*\*  
**A problem occurred configuring root project 'elasticsearch-master'.**  
**\> Project :x-pack:test:feature-aware not found.**

---

<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:** [March 18, 2019, 4:13am UTC](https://discuss.elastic.co/t/how-to-avoid-x-pack-from-getting-compiled-while-compiling-elasticsearch-source-code/168555/3 "2019-03-18T04:13:44Z")

</div>

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