# Getting source code for elasticsearch

**URL:** https://discuss.elastic.co/t/getting-source-code-for-elasticsearch/10324
**Category:** Elasticsearch
**Created:** [January 13, 2013, 5:13am UTC](https://discuss.elastic.co/t/getting-source-code-for-elasticsearch/10324 "2013-01-13T05:13:37Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Janusz\_Dalecki](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Janusz\_Dalecki](https://discuss.elastic.co/u/Janusz_Dalecki)
#### Post date: [January 13, 2013, 5:13am UTC](https://discuss.elastic.co/t/getting-source-code-for-elasticsearch/10324/1 "2013-01-13T05:13:37Z")

</div>

Hi,

I got the elasticsearch version elasticsearch-0.20.1, I added it to my  
Eclipse project and I am trying to add Java docs to it under my Eclipse  
project. For that I need source code.

The documentation says - execute “mvn package – DskipTests” - but under  
0.20.1 there is no pom.xml – so the mvn command fails. What do I need to  
download first to execute the mvn command to get the source code?

Regards,

Janusz

--

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [January 13, 2013, 8:01am UTC](https://discuss.elastic.co/t/getting-source-code-for-elasticsearch/10324/2 "2013-01-13T08:01:04Z")

</div>

How did you add ES to your project?  
If you use maven and add ES as a dependency in your pom.xml, you just have to choose Download Source / Javadocs in M2E settings.

If you added ES without maven, just download sources and attach it to the jar (you don't have to build javadoc once you have sources).

If you really need to build yourself the 0.20.1 version, download sources from: [https://github.com/elasticsearch/elasticsearch/archive/v0.20.1.zip](https://github.com/elasticsearch/elasticsearch/archive/v0.20.1.zip)

BTW, you should use 0.20.2.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 13 janv. 2013 à 06:13, JD [jdalecki@tycoint.com](mailto:jdalecki@tycoint.com) a écrit :

Hi,

I got the elasticsearch version elasticsearch-0.20.1, I added it to my Eclipse project and I am trying to add Java docs to it under my Eclipse project. For that I need source code.

The documentation says - execute “mvn package – DskipTests” - but under 0.20.1 there is no pom.xml – so the mvn command fails. What do I need to download first to execute the mvn command to get the source code?

Regards,

Janusz

--

--

---

<div class="post-metadata">

### Author: ![Janusz\_Dalecki](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Janusz\_Dalecki](https://discuss.elastic.co/u/Janusz_Dalecki)
#### Post date: [January 13, 2013, 8:59am UTC](https://discuss.elastic.co/t/getting-source-code-for-elasticsearch/10324/3 "2013-01-13T08:59:55Z")

</div>

Thanks David, I used the second method.  
I got the src from your link.  
Thanks,  
Regards,  
Janusz

On Sunday, January 13, 2013 4:13:37 PM UTC+11, JD wrote:

> Hi,
> 
> I got the elasticsearch version elasticsearch-0.20.1, I added it to my  
> Eclipse project and I am trying to add Java docs to it under my Eclipse  
> project. For that I need source code.
> 
> The documentation says - execute “mvn package – DskipTests” - but under  
> 0.20.1 there is no pom.xml – so the mvn command fails. What do I need to  
> download first to execute the mvn command to get the source code?
> 
> Regards,
> 
> Janusz

--

---

<div class="post-metadata">

### Author: ![Janusz\_Dalecki](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Janusz\_Dalecki](https://discuss.elastic.co/u/Janusz_Dalecki)
#### Post date: [January 14, 2013, 12:45am UTC](https://discuss.elastic.co/t/getting-source-code-for-elasticsearch/10324/4 "2013-01-14T00:45:59Z")

</div>

Sorry Dave, one more question on that.  
When I go to home page and click on downloads it gets me  
to [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/download/) - where I can download only  
binaries - but they don't include source folder. The only zip that contains  
sources is the link you provided. Is there any page from which I can  
navigate to sources of specific elasticsearch version?  
Regards,  
Janusz

On Sunday, January 13, 2013 4:13:37 PM UTC+11, JD wrote:

> Hi,
> 
> I got the elasticsearch version elasticsearch-0.20.1, I added it to my  
> Eclipse project and I am trying to add Java docs to it under my Eclipse  
> project. For that I need source code.
> 
> The documentation says - execute “mvn package – DskipTests” - but under  
> 0.20.1 there is no pom.xml – so the mvn command fails. What do I need to  
> download first to execute the mvn command to get the source code?
> 
> Regards,
> 
> Janusz

--

---

<div class="post-metadata">

### Author: ![Janusz\_Dalecki](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Janusz\_Dalecki](https://discuss.elastic.co/u/Janusz_Dalecki)
#### Post date: [January 14, 2013, 1:02am UTC](https://discuss.elastic.co/t/getting-source-code-for-elasticsearch/10324/5 "2013-01-14T01:02:03Z")

</div>

I think I have answered my question.  
I connected with the Tortois to elasticsearch repository and then I can go  
to specific tag.  
All OK.  
Regards,  
Janusz

On Sunday, January 13, 2013 4:13:37 PM UTC+11, JD wrote:

> Hi,
> 
> I got the elasticsearch version elasticsearch-0.20.1, I added it to my  
> Eclipse project and I am trying to add Java docs to it under my Eclipse  
> project. For that I need source code.
> 
> The documentation says - execute “mvn package – DskipTests” - but under  
> 0.20.1 there is no pom.xml – so the mvn command fails. What do I need to  
> download first to execute the mvn command to get the source code?
> 
> Regards,
> 
> Janusz

--

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [January 14, 2013, 3:24am UTC](https://discuss.elastic.co/t/getting-source-code-for-elasticsearch/10324/6 "2013-01-14T03:24:19Z")

</div>

You can also browse it online: [Tags · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/tags)

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 14 janv. 2013 à 02:02, JD [jdalecki@tycoint.com](mailto:jdalecki@tycoint.com) a écrit :

I think I have answered my question.  
I connected with the Tortois to elasticsearch repository and then I can go to specific tag.  
All OK.  
Regards,  
Janusz

On Sunday, January 13, 2013 4:13:37 PM UTC+11, JD wrote:

> Hi,
> 
> I got the elasticsearch version elasticsearch-0.20.1, I added it to my Eclipse project and I am trying to add Java docs to it under my Eclipse project. For that I need source code.
> 
> The documentation says - execute “mvn package – DskipTests” - but under 0.20.1 there is no pom.xml – so the mvn command fails. What do I need to download first to execute the mvn command to get the source code?
> 
> Regards,
> 
> Janusz

--

--

---

<div class="post-metadata">

### Author: ![Janusz\_Dalecki](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Janusz\_Dalecki](https://discuss.elastic.co/u/Janusz_Dalecki)
#### Post date: [January 14, 2013, 5:34am UTC](https://discuss.elastic.co/t/getting-source-code-for-elasticsearch/10324/7 "2013-01-14T05:34:29Z")

</div>

Thanks David, that's very useful.  
Regards,  
Janusz

On Sunday, January 13, 2013 4:13:37 PM UTC+11, JD wrote:

> Hi,
> 
> I got the elasticsearch version elasticsearch-0.20.1, I added it to my  
> Eclipse project and I am trying to add Java docs to it under my Eclipse  
> project. For that I need source code.
> 
> The documentation says - execute “mvn package – DskipTests” - but under  
> 0.20.1 there is no pom.xml – so the mvn command fails. What do I need to  
> download first to execute the mvn command to get the source code?
> 
> Regards,
> 
> Janusz

--

---

<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 6, 2017, 2:56am UTC](https://discuss.elastic.co/t/getting-source-code-for-elasticsearch/10324/8 "2017-07-06T02:56:41Z")

</div>


