title: Groovy test - unable to resolve class
body: <p>I am writing a groovy test case in IntelliJ which uses some external java jar with Maven as the dependency manager.</p>
  
  <p>Maven dependency</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.mobicents.sipunit&lt;/groupId&gt;
      &lt;artifactId&gt;sipunit&lt;/artifactId&gt;
      &lt;version&gt;2.0.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>The project can auto-import the needed packages and even auto-completion works when writing code but it fails to compile.</p>
  
  <p><a href="http://i.stack.imgur.com/4qzMU.png" rel="nofollow">Auto completion works</a></p>
  
  <p>When compiling the error message below is shown</p>
  
  <pre><code>Error:(11, 1) Groovyc: unable to resolve class org.cafesip.sipunit.SipPhone
  Error:(12, 1) Groovyc: unable to resolve class org.cafesip.sipunit.SipStack
  </code></pre>
  
  <p>I am doing the same thing with other external jars / maven dependencies but do not experience the error described above.</p>