title: How to add Java JAR files to Grails project?
body: <p>I have a few Java/Maven projects that I want to use in a Grails 2.0.4 project. I have tried various approaches, such as:</p>
  
  <ol>
  <li>Installing the JAR files in my local maven repository, and executing <code>grails install-dependency com.foo:my-project:0.0.1-SNAPSHOT</code></li>
  <li>Copying the JAR files into the <code>lib</code> folder of grails.</li>
  <li>Adding <code>compile com.foo:my-project:0.0.1-SNAPSHOT</code> to the dependencies section of <code>BuildConfig.groovy</code></li>
  <li>Uncommenting <code>mavenLocal()</code> and passing <code>/home/me/.m2/repository</code></li>
  </ol>
  
  <p>I may have tried a few other things, such as superstitiously throwing in a <code>grails clean</code> whenever convenient. In every case <code>grails compile</code> yields the following result: compilation fails, unable to resolve every reference to any of the classes in either of the JARs.</p>
  
  <p>Any idea what I'm missing?</p>