title: Why is Grails taking the jar dependencies instead of the existing maven project dependencies?
body: <p>I'm using IntelliJ IDEA 10.0.2 (with groovy/grails support), maven 2.2.1 and grails 1.3.6.</p>
  
  <p>We have a big maven project, which depends on many other maven projects. Let's say the workspace structure looks as follows:</p>
  
  <ul>
  <li>backend-project (Java project, without further project dependencies)</li>
  <li>output-project (Java project, without further project dependencies)</li>
  <li>frontend-project (Grails project, which dependes on both, backend and output)</li>
  </ul>
  
  <p>That means, within my frontend-project's pom.xml I have defined 2 Project Dependencies:</p>
  
  <p>e.g.</p>
  
  <pre><code>&lt;dependency&gt;
     &lt;groupId&gt;com.company.project&lt;/groupId&gt;
     &lt;artifactId&gt;backend-project&lt;/artifactId&gt;
     &lt;version&gt;${project.version}&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
     &lt;groupId&gt;com.company.project&lt;/groupId&gt;
     &lt;artifactId&gt;output-project&lt;/artifactId&gt;
     &lt;version&gt;${project.version}&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Let's assume that I change some Java Source within the output or backend project. When I 
  run the grails application now, then it won't consider the changes. I have to publish the changed artifact locally and then resolve it again by the grails project before running the application in order to take effect.
  This tells me that the grails project just depends on the project dependency jars within the maven repository and does not care about any existing project dependency "sources" within the workspace.</p>
  
  <p>Does it have to be that complicated and if so, why? </p>
  
  <p>Note that if my frontend project was a spring web project, the changes will be seen in IDEA and tomcat will even reload the change dynamically. </p>
  
  <p>Note that when IDEA recognizes a mavenized grails project, it won't run the grails project with: "grail run-app" anymore but with a more complicated version of: "mvn grails:exec -Dcommand=run-app". Don't know if this is of any relevance..</p>
  
  <p>Thanks!
  Mr. Slash</p>