GITHUB Projects and Eclipse

cs.irfan@upesh.edu.pk:

Is there any tutorial or method for loading github projects into
eclipse so that one can work on it. e.g., How ScrutMyDocs project can
be loaded into Eclipse and integrated with Elasticsearch cluster, so
that one can customize it for his/her needs.

I do it this way:

  1. install m2e in eclipse, http://www.eclipse.org/m2e/download/
  2. install egit in eclipse, EGit - Download | The Eclipse Foundation
  3. clone the github projects in a directory outside the workspace
    mkdir ~/git
    cd ~/git/
    git clone GitHub - spinscale/elasticsearch-river-streaming-json: A sample elasticsearch river able to stream json data in
  4. in eclipse, do File->Import...
  5. in the dialog "Import":
  6. open Maven->Existing Maven Projects
  7. click the "Next" button
  8. click "Browse..." button
  9. in the "Select Root Folder" dialog
    1. open ~/git/elasticsearch-river-streaming-json
    2. click the "OK" button
  10. select the projects found in that directory
  11. click the "Finish" button
  12. in the "Package Explorer", open the right mouse button menu on the
    elasticsearch-river-streaming-json project, and select Team->Share Project...
  13. in the "Share Project" dialog:
  14. select "git"
  15. click on the "Next" button
  16. check the option "Use or create repository in parent folder of project"
  17. select the git repo in the "." directory (or the closest parent in
    the case of nested projects)
  18. click on the "Finish" button

That's it!

If you need to just add a subproject of a large tree, you can decide to
import only that project into eclipse.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.