title: Grails: Very slow deploy time. 'Resolving Dependencies...' takes 10+ seconds
body: <p>Every time I make a minor change to my Grails app it takes 10-15 seconds to deploy it. The majority of the time is in 'Resolving Dependencies'...</p>
  
  <pre><code>Welcome to Grails 1.3.7 - http://grails.org/
  ...
  Resolving dependencies...
  Dependencies resolved in 9868ms.
  </code></pre>
  
  <p>Here are some details of my setup:</p>
  
  <ul>
  <li>MacBook (OS X 10.5.8) 2.4Ghz Core 2 Duo with 4GB RAM + plenty of disk space</li>
  <li>SpringSource Tool Suite - Version: 2.6.1.RELEASE Build Id: 201105041000 </li>
  <li>Grails 1.3.7</li>
  <li>A small Grails project with only a few domain models</li>
  <li>Just a few plugins: hibernate 1.3.7, mail 1.0, spring-security-core 1.1.3, spring-security-open id 1.0.2, spring-security-ui 0.1.2, webtest 3.0.1</li>
  </ul>
  
  <p>Areas Investigated Already:</p>
  
  <ul>
  <li>Deleting the .ivy2 directory and forcing a complete external refresh did bring it down by around 5 seconds.</li>
  <li>My .ivy2 directory is on my local machine so it's not <a href="http://grails.1312388.n4.nabble.com/Resolving-dependencies-takes-forever-on-my-work-machine-fine-at-home-td2713497.html" rel="nofollow">this problem</a></li>
  <li>I did have some dependency problems similar to <a href="http://grails.1312388.n4.nabble.com/spring-security-ui-depending-on-mail-plugin-gt-dependency-resolution-fails-td3238433.html" rel="nofollow">these</a> however I've now fixed them and I'm not getting any errors.</li>
  <li>I've turned the logging on in BuildConfig.groovy by setting log "info" in the grails.project.dependency.resolution section. It appears to be spending most of the time 'resolving' the dependencies rather than actually downloading items, so I don't think mavenCentral or other public Maven repositories are a problem. </li>
  </ul>
  
  <p>Extract from log...</p>
  
  <pre><code>resolution report  resolve 802ms  artifacts dl 86ms
  resolution report resolve 8492ms  artifacts dl 150ms
  Dependencies resolved in 9909ms.
  </code></pre>
  
  <hr>
  
  <p><strong>Extra Info:</strong>
  By deploy I mean using 'run-app', by redeploy I mean changing a file that forces Grails to automaticaly do a 'run-app.' I don't have any other network related performance issues and have a 32MB down, 1MB up broadband internet connection.</p>
  
  <p>For benchmarking I have worked on a similarly sized app in the past where the 'Resolving Dependencies' took around 1 second. That setup was Grails 1.3.6, Shiro security plugin, a similarly small project with a few domain models on a Windows XP service Pack 3 machine (Intel Core 2 Duo 2.2Ghz, 2GB RAM) Then I was using NetBeans 6.9.1.</p>
  
  <p><strong>Extra Info 2:</strong> The full ivy log is attached <a href="https://docs.google.com/document/d/1mqeo_FIe9zeizmC_U0O53dqDDqZ6-7Mwbdrvzas_kpI/edit?hl=en_US&amp;pli=1" rel="nofollow">here</a></p>
  
  <hr>
  
  <p>I'm changing very few files each time so it is extremely frustrating when it takes 15 seconds to do a redeploy.</p>
  
  <p><strong>Does anyone have any tips on how to reduce the time needed for 'Resolving Dependencies...'?</strong></p>