title: org.apache.tools.ant.BuildException java.lang.NoClassDefFoundError: org/springframework/beans/factory/Aware
body: <p>In my maven build, I get the below error</p>
  
  <blockquote>
    <p>Fatal error during compilation org.apache.tools.ant.BuildException:
    java.lang.NoClassDefFoundError:
    org/springframework/beans/factory/Aware</p>
  </blockquote>
  
  <p>From Dependency Tree i noticed</p>
  
  <p><strong>(org.springframework:spring-beans:jar:3.1.3.RELEASE:compile - omitted for conflict with 3.1.4.RELEASE)</strong></p>
  
  <p>In my pom.xml, I added the following dependency, yet the error doesn't seem to go</p>
  
  <pre><code>&lt;spring.version&gt;3.1.3.RELEASE&lt;/spring.version&gt;
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails&lt;/groupId&gt;
          &lt;artifactId&gt;grails-dependencies&lt;/artifactId&gt;
          &lt;version&gt;${grails.version}&lt;/version&gt;
          &lt;type&gt;pom&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails&lt;/groupId&gt;
          &lt;artifactId&gt;grails-plugin-testing&lt;/artifactId&gt;
          &lt;version&gt;${grails-test-plugin.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails&lt;/groupId&gt;
          &lt;artifactId&gt;grails-test&lt;/artifactId&gt;
          &lt;version&gt;${grails-test-plugin.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-beans&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;tomcat&lt;/artifactId&gt;
          &lt;version&gt;${grails.version}&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;cache&lt;/artifactId&gt;
          &lt;version&gt;1.0.0&lt;/version&gt;
          &lt;scope&gt;compile&lt;/scope&gt;
          &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate&lt;/artifactId&gt;
          &lt;version&gt;${grails.version}&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;filterpane&lt;/artifactId&gt;
          &lt;version&gt;2.2.1&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;console&lt;/artifactId&gt;
          &lt;version&gt;1.2&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;resources&lt;/artifactId&gt;
          &lt;version&gt;1.1.6&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;database-migration&lt;/artifactId&gt;
          &lt;version&gt;1.1&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;jawr&lt;/artifactId&gt;
          &lt;version&gt;3.3.3&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;jaxrs&lt;/artifactId&gt;
          &lt;version&gt;0.8&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;yui-minify-resources&lt;/artifactId&gt;
          &lt;version&gt;0.1.4&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;jquery&lt;/artifactId&gt;
          &lt;version&gt;1.8.0&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;webxml&lt;/artifactId&gt;
          &lt;version&gt;1.4.1&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;richui&lt;/artifactId&gt;
          &lt;version&gt;0.8&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>Please help</p>