This post is for myself more than anything else, just because I keep forgetting the steps involved.
I’m using SpringSource Tool Suite 2.9.1.RELEASE, which is based on Eclipse 3.7.2 (Indigo). I have the egit and m2e Eclipse plugins installed.
The scenario
You have a brand new, pretty-much-empty GitHub project (other than the README, say—but no Maven stuff yet), and you want to import it into Eclipse as a Maven project.
The steps
- Add the remote GitHub repo to your list of Git repos in Eclipse.
- In Eclipse, go to File → Import → Git → Projects from Git. (I’m on a Mac; the menu may be a little different for other platforms.)
- On the “Select Repository Source”, choose “URI”.
- On the “Source Git Repository” pane, enter the URI info. It might be something like
ssh://git@github.com/williewheeler/sip11.git, for example. - On the “Branch Selection” pane, choose the master branch.
- On the “Local Destination” pane, decide where you want the local copy to live.
- Where it asks you to select an import wizard, choose “Use the New Project wizard” and click “Finish”.
- Now you have to choose a New Project wizard. Choose Maven → Maven Project.
- From here just create the project like you would any other new Maven project. Once you’re done, it will show up in your list of projects in the Package Explorer view, and sharing should be activated.

By Atul S. Khot October 27, 2012 - 1:42 am
Dear Willie,
I tried out – with STS (Version: 3.0.0.RELEASE).
However, at the point where we create a new maven project things go wrong…
It would be good if you specify (or give a pointer) for the same…
I tried various archetypes – but none seem to work… STS gives some error and fails…
(I tried using the appfuse-basic-spring/appfuse-modular-spring – but none works…
By Ojitha April 20, 2013 - 5:35 am
Hi
I have created new blog in my blog site http://ojitha.blogspot.com.au/2013/04/how-to-github-projects-in-spring-tool.html which simply explain how to create spring uitlity (shake of simplicity) without pain. Hope this will be really helpful.
regards
OJ