How to import bare git repo into Eclipse

rapodaca

New Member
Contributor
Since I had a devil of a time getting this to work, I thought I'd document how I went from a cloned git repo to working Eclipse project.

1) Install the Groovy plugin (Help->Eclipse Marketplace)
2) Create a dummy project in a temporary directory called "Terasology"
3) Copy the following files from the dummy project into your git repo:

.classpath
.project
.settings

4) File->Import Existing Project
5) You now have a bunch of errors.
6) On OS X you may see "Access restriction: The type NotImplementedException is not accessible ...". Remove JRE System library and re-add it . See:
http://stackoverflow.com/questions/8601 ... ary-rt-jar
7) The remaining errors should be due to eclipse not knowing how to handle Groovy files. In your .project file, add the following to your <natures> element:

<nature>org.eclipse.jdt.groovy.core.groovyNature</nature>
8) Remove your project from the workspace by 'Deleting'. Don't delete the files.
9) Re-import the project. All errors should be gone.
 
Top