title: Grails Dependency Resolution
body: <p>I'm a bit of a Grails newbie. I have an app which works fine in Eclipse but when I deploy in production falls over because of missing dependencies.</p>
  
  <p>When I run the dependency report it shows all the dependencies are automatically present for 'build' but absent for 'runtime'.</p>
  
  <p>What's the neatest way to migrate the dependencies from to runtime so (I hope) they get copied into my war file?</p>
  
  <p>Also, I'm using the sanitizer plugin. This runs fine in development but has the dependencies missing from 'runtime' so falls over. If I manually add, for example, one of the dependencies into BuildConfig.groovy ("org.owasp.antisamy:antisamy:1.4.3") then grails falls over with this error:</p>
  
  <p>loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "org/xml/sax/SAXParseException"</p>
  
  <p>I'm assuming that this is a classpath issue but I'm not sure why this only happens when I manually add the dependency - surely it's present all the time?</p>