0

I mistakenly added some jars to Grails dependencies using Java build path dialogue of GGTS. Now I want to remove them.

But the build path dialogue offers no chance to do so.

Burt Beckwith
  • 75,342
  • 5
  • 143
  • 156
user3647093
  • 363
  • 1
  • 6
  • 17
  • Try Grails Tools -> Refresh dependencies, that is what you'd usually use to bring the Eclipse classpath into line with changed to BuildConfig dependencies. – Ian Roberts Mar 28 '15 at 17:34
  • doing so leads to a big red '!' on the project. The project cannot be run anymore because of errors. But I don't know, where to find those errors. – user3647093 Mar 30 '15 at 08:36

1 Answers1

0

Just remove the project from eclipse, delete .project and .classpath files. regenerate eclipse files using command grails integrate-with --eclipse and import the project again and you classpath should be good.

Sudhir N
  • 4,008
  • 1
  • 22
  • 32
  • tried but failed with integrate-with --eclipse (error in looking for ant) – user3647093 Mar 30 '15 at 11:43
  • I succeeded in a similiar way: renamed my project to nameX, generated new grails project under the old name and made a simple file import of my renamed nameX project ommitting all grails/eclipse specific artefacts, that I didn't ever touch. It took me just 10 minutes and everything is working fine. – user3647093 Mar 30 '15 at 11:47