Getting source code for elasticsearch

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

--

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

BTW, you should use 0.20.2.

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

Le 13 janv. 2013 à 06:13, JD 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

--

--

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

--

Sorry Dave, one more question on that.
When I go to home page and click on downloads it gets me
to 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

--

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

--

You can also browse it online: https://github.com/elasticsearch/elasticsearch/tags

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

Le 14 janv. 2013 à 02:02, JD 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

--

--

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

--