title: GMaven build fails with "An API incompatibility was encountered"
body: <p>While trying to compile my project using the Maven <code>Gmaven</code> plugin, the following error occurred:</p>
  
  <blockquote>
    <p><code>[ERROR] Failed to execute goal org.codehaus.gmaven:gmaven-plugin:1.4:compile (default) on project concorde-web: Execution default of goal org.codehaus.gmaven:gmaven-plugin:1.4:compile failed: An API incompatibility was encountered while executing org.codehaus.gmaven:gmaven-plugin:1.4:compile: java.lang.NoSuchMethodError: org.codehaus.groovy.ast.ModuleNode.getStarImports()Ljava/util/List;</code></p>
  </blockquote>
  
  <p>Googling suggests that this is because of multiple groovy versions ending up in my dependency chain.  However, after checking the full dependency tree, I find that there is only one dependency in the full tree.</p>
  
  <p>Here's the excerpt of my pom.xml:</p>
  
  <pre><code>    &lt;!-- Groovy dependencies --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
          &lt;artifactId&gt;groovy-all&lt;/artifactId&gt;
          &lt;version&gt;1.8.5&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- ... snip ... --&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.gmaven&lt;/groupId&gt;
              &lt;artifactId&gt;gmaven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.4&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;generateStubs&lt;/goal&gt;
                          &lt;goal&gt;compile&lt;/goal&gt;
                          &lt;goal&gt;generateTestStubs&lt;/goal&gt;
                          &lt;goal&gt;testCompile&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  </code></pre>