Skip to content

Instantly share code, notes, and snippets.

@vahidhedayati
Created January 20, 2015 20:03
Show Gist options
  • Save vahidhedayati/68d0133ec19e343e7b80 to your computer and use it in GitHub Desktop.
Save vahidhedayati/68d0133ec19e343e7b80 to your computer and use it in GitHub Desktop.
Grails GGTS how to overcome red exclamation mark or and red cross
Right I think its about time I put down some notes on this for an easy way of fixing plugin/war files with files missing that you may download off of git or other public places.
1. Plugins.
1.1 : Plugin missing files
If you pull in a plugin and attempt to open it in ggts sometimes it shows an incorrect folder structure and so on, a manual fix to this is to remove the project from ggts. then
1.1.1 : automatic fix:
run : grails integrate-with --eclipse
This should create the missing .project and .classpath files.
Otherwise
1.1.2 manually:
if you have an existing same project copy those two files into it otherwise create the same plugin name in another folder using
grails create-plugin samename
and then copy those two files over, the trick with manual is to have the same existing project with those files otherwise you may as well stick with 1.1.1
1.2 - Fixing Exclamation on a plugin
Number 1 thing I do is always disable Project / Build Automatically (I untick this), then if I see this issue. I go to Project / Clean
and this project should be clicked then I select only build this project.
I then goto project and do right click grails tools / refresh dependencies. I then do right click grails tools/grails command wizard and run clean
I then run project clean and repeat the first bit. Usually this fixes all of the issues. I sometimes find the exclamation persists. So go into markers and check what is saying, if it says folders are missing
1.2.1 for Plugin right click project grails tools / grails command wizard - type in: package-plugin.
1.2.2 for grails projects: right click project grails tools / grails command wizard - type in: war.
In both those cases it should all necessary files/folders.
Run a final right click grails tools / command wizard and type in clean
the problems should no longer exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment