I've checked out an existing Grails project and I want to import it into STS. However, STS refuses to recognize the source tree as a project, presumably because it can't find a .project file. So is there a 'grails' command that will create new .project (and .classpath and .settings/*) for this source tree?
The Eclipse IDE has great support for the Grails applications. The update site is Eclipse version dependent, see Groovy/Grails Tool Suite™ Downloads if you use a different release than Eclipse 4.4.
Then in Eclipse, visit the Windows menu Preferences item, find Groovy item and then Grails in the list, click the Add button on the right side, and finally use the Brows button to browse to where Grails was unpacked. Finishing this action will allow full use of the STS Grails tools!
Adding the Grails framework To make the plug-ins work we also need to download the Grails framework. In Eclipse, go to Preferences/Groovy/Grails and Add… Enter Grails in the Name field.
use
grails integrate-with --eclipse
I think this command has been added in Grails 1.2.1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With