Grails cleanouts issues and how to resolve them

Sometimes your grails applications comes to a state where they don't refresh as they should. Just now I ran into an issue where adding new domain objects /controllers wouldnt make any difference when starting the application. 

 

To clean out grails applications: 

  • Remove the %users_home%/.grails/* directories (not the .grails itself though) 
  • do a 'grails clean' 
  • If this doesn't help, try removing the grails.xml file in the WEB-INF directory which lists resources. I had an issue with this and it was probably not writeable or so, but removing the file solved my problems and I could see my newly generated controllers /domains

 

 
Svenska (Sverige)English (United Kingdom)