Importing Grails project in Git repo into GGTS 3.1.0
Is there an easy way to import Grails projects in a Git repository into GGTS 3.1.0? The Git repositories do not contain Eclipse project metadata (.project, .settings, and .classpath are in .gitignore). Also, I'd like the imported project files to live inside the workspace directory rather than being linked to an external location.
In GGTS 3.0, I could do something like this:
- Importů > Projects from Git.
- On "Local Destination" page, use defaults. Git repo is cloned inside workspace directory.
- Outside eclipse, run "grails integrate-with --eclipse".
- Back in Eclipse, do New Project > Grails Project. Use same project name and "new" changes to "import".
In GGTS 3.1.0, when I try to import (or do new project on) the project that EGit clones inside the workspace, I get the error: "<name> overlays the location of another project: <name".
It does work GGTS 3.1.0 when I tell EGit to clone outside the workspace, but the subsequent Grails project import does not have the option to copy into the workspace, so the project files wind up outside the workspace.
It seems like there should be an easier way to do this :)
Example of set up, push and pull Git repo of Grails project
I can not figure out how to set up a Git repo from my STS 3.1.0 Grails project, push to a remote and then clone from the remote on my colleague's machine. Is there an example somewhere of how to do this and end up with a copy of the repo that is still connected to the remote for push/pull?
Git is configured and working on the remote. In my project folder, I manually created a repository after adding a few things to .gitignore like target-eclipse and .project and I pushed that to the remote. I cloned from the remote to my colleague's machine but the instructions above do not work.
"Import existing projects" says "no project found to import"
"Use existing project" creates a project but it's not integrated with git on my colleague's machine!
"Import as general Project" says "overlaps the location of another project"