# Gradle build for eclipse failed

**URL:** https://discuss.elastic.co/t/gradle-build-for-eclipse-failed/44818
**Category:** Elasticsearch
**Created:** [March 18, 2016, 9:15am UTC](https://discuss.elastic.co/t/gradle-build-for-eclipse-failed/44818 "2016-03-18T09:15:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ttjslbz](https://avatars.discourse-cdn.com/v4/letter/t/73ab20/32.png) [@ttjslbz](https://discuss.elastic.co/u/ttjslbz)
#### Post date: [March 18, 2016, 9:15am UTC](https://discuss.elastic.co/t/gradle-build-for-eclipse-failed/44818/1 "2016-03-18T09:15:28Z")

</div>

Hi all：  
I just download elasticsearch master branch. Previously, i use the following command to compile and setup environment for eclipse:  
gradle cleanEclipse eclipse.

But , i just find i can't upgrade my .classpath file.  
Does any body meet the same issue.  
Hopes you reply

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [March 18, 2016, 3:24pm UTC](https://discuss.elastic.co/t/gradle-build-for-eclipse-failed/44818/2 "2016-03-18T15:24:18Z")

</div>

Usually `gradle eclipse` is good. It will do the clean on its own. I run that command all the time and I don't recall it not working for me lately.

---

<div class="post-metadata">

### Author: ![ttjslbz](https://avatars.discourse-cdn.com/v4/letter/t/73ab20/32.png) [@ttjslbz](https://discuss.elastic.co/u/ttjslbz)
#### Post date: [June 1, 2016, 7:56am UTC](https://discuss.elastic.co/t/gradle-build-for-eclipse-failed/44818/3 "2016-06-01T07:56:13Z")

</div>

Hi Nik  
I just try it again. I i try to run gradle eclipse under t the project folder in command line. It success. But , as i perspect, it will help me upgrade a eclipse project, which can be import to eclipse directly.  
But the .classpath file not created and .project file not update.

I a newer to gradle,

Thanks.

---

<div class="post-metadata">

### Author: ![ttjslbz](https://avatars.discourse-cdn.com/v4/letter/t/73ab20/32.png) [@ttjslbz](https://discuss.elastic.co/u/ttjslbz)
#### Post date: [June 1, 2016, 8:02am UTC](https://discuss.elastic.co/t/gradle-build-for-eclipse-failed/44818/4 "2016-06-01T08:02:21Z")

</div>

An other thing i should mentioned is if i import elk by eclipse gradle plugin, an exception appears always:  
": is an invalid character in resource name 'elasticsearch.:core'.“

 ![](https://us1.discourse-cdn.com/elastic/original/2X/4/449a7aadd62b733445f9406ec1f09629c5cb7b7b.JPG)

If you can share me a blog to setup elasticsearch step by step, i will be appreciated of it. And i think there will be lots of people will expect it.

---

<div class="post-metadata">

### Author: ![ttjslbz](https://avatars.discourse-cdn.com/v4/letter/t/73ab20/32.png) [@ttjslbz](https://discuss.elastic.co/u/ttjslbz)
#### Post date: [June 1, 2016, 10:37am UTC](https://discuss.elastic.co/t/gradle-build-for-eclipse-failed/44818/5 "2016-06-01T10:37:15Z")

</div>

Hi Nik  
I found classpath under core folder have no been update correctly, so i copy the .classpath file from test folder. After that, the compile almost success.  
But an dependency conflict occur on that time ![](https://us1.discourse-cdn.com/elastic/original/2X/b/b0978fac7ade3a3152134f179aad30915e1e7099.JPG)

that make me confused

---

<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: [July 5, 2017, 10:47pm UTC](https://discuss.elastic.co/t/gradle-build-for-eclipse-failed/44818/6 "2017-07-05T22:47:19Z")

</div>


