
Originally Posted by
lhotari
I got dependencies working after I removed the project from the current workspace and imported it back again. Before doing this I was receiving strange error messages:
An internal error occurred during: "Updating source folders on project 'P/myproject'".
java.lang.IllegalArgumentException: Element not found: /.org.eclipse.jdt.core.external.folders/.link1/projects/myproject/plugins/tomcat-1.2-M3/src/groovy.
This time this solution didn't work.
I tried removing and re-creating the WORKSPACE_DIR/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.jdt.core.external.folders directory and that worked.
Code:
rm -rf .metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.jdt.core.external.folders
mkdir .metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.jdt.core.external.folders
The directory contained these files before removing:
Code:
.location
.markers.snap
.syncinfo.snap
I think that the .location file was corrupted.
The problem might also be in a corrupted .metadata/.plugins/org.eclipse.jdt.core/.org.eclipse.jdt.core.external.folders/.project file which contains the link information to the grails working directory (~/.grails/1.2.0.RC1 in my case).