title: The maven project generated by gwt-maven-plugin can't be imported into eclipse via import existing maven project
body: <p>I firstly generated a gwt maven project by executing -- </p>
  
  <blockquote>
    <p>mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo
    -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersion=2.7.0</p>
  </blockquote>
  
  <p>After that, the pom.xml is as follows:</p>
  
  <pre><code>        &lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;project
        xmlns="http://maven.apache.org/POM/4.0.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
  
        &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
        &lt;groupId&gt;com.boye.games&lt;/groupId&gt;
        &lt;artifactId&gt;games-gwt&lt;/artifactId&gt;
        &lt;packaging&gt;war&lt;/packaging&gt;
        &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
        &lt;name&gt;GWT Maven Archetype&lt;/name&gt;
  
        &lt;properties&gt;
          &lt;!-- Convenience property to set the GWT version --&gt;
          &lt;gwtVersion&gt;2.7.0&lt;/gwtVersion&gt;
  
          &lt;!-- GWT needs at least java 1.6 --&gt;
          &lt;maven.compiler.source&gt;1.7&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;1.7&lt;/maven.compiler.target&gt;
  
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
        &lt;/properties&gt;
  
        &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
            &lt;dependency&gt;
              &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
              &lt;artifactId&gt;gwt&lt;/artifactId&gt;
              &lt;version&gt;${gwtVersion}&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
            &lt;/dependency&gt;
          &lt;/dependencies&gt;
        &lt;/dependencyManagement&gt;
  
        &lt;dependencies&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
            &lt;artifactId&gt;gwt-servlet&lt;/artifactId&gt;
            &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
            &lt;artifactId&gt;gwt-user&lt;/artifactId&gt;
            &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
            &lt;artifactId&gt;gwt-dev&lt;/artifactId&gt;
            &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;junit&lt;/groupId&gt;
            &lt;artifactId&gt;junit&lt;/artifactId&gt;
            &lt;version&gt;4.11&lt;/version&gt;
            &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
        &lt;/dependencies&gt;
  
        &lt;build&gt;
          &lt;!-- Output classes directly into the webapp, so that IDEs and "mvn process-classes" update them in DevMode --&gt;
          &lt;outputDirectory&gt;${project.build.directory}/${project.build.finalName}/WEB-INF/classes&lt;/outputDirectory&gt;
  
          &lt;plugins&gt;
  
            &lt;!-- GWT Maven Plugin --&gt;
            &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;gwt-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.7.0&lt;/version&gt;
              &lt;executions&gt;
                &lt;execution&gt;
                  &lt;goals&gt;
                    &lt;goal&gt;compile&lt;/goal&gt;
                    &lt;goal&gt;test&lt;/goal&gt;
                    &lt;goal&gt;generateAsync&lt;/goal&gt;
                  &lt;/goals&gt;
                &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;!-- Plugin configuration. There are many available options, see 
                gwt-maven-plugin documentation at codehaus.org --&gt;
              &lt;configuration&gt;
                &lt;runTarget&gt;LineThree.html&lt;/runTarget&gt;
                &lt;modules&gt;
                  &lt;module&gt;com.boye.games.linethree.LineThree&lt;/module&gt;
                &lt;/modules&gt;
              &lt;/configuration&gt;
            &lt;/plugin&gt;
          &lt;/plugins&gt;
        &lt;/build&gt;
  
      &lt;/project&gt;
  </code></pre>
  
  <p>Then I imported this project into eclipse via built-in eclipse function -- import existing Maven project. </p>
  
  <p>However, the process failed due to several reasons:</p>
  
  <ol>
  <li><code>GreetingServiceAsync</code> cannot be resolved to a type </li>
  <li>Execution default of goal <code>org.codehaus.mojo:gwt-maven-plugin:2.7.0:generateAsync</code> failed: </li>
  </ol>
  
  <blockquote>
    <p>Plugin org.codehaus.mojo:gwt-maven-plugin:2.7.0 or one of its
    dependencies could not be resolved: Failed to collect dependencies for
    org.codehaus.mojo:gwt-maven-plugin:jar:2.7.0 ()
    (org.codehaus.mojo:gwt-maven-plugin:2.7.0:generateAsync:default:generate-sources)</p>
  </blockquote>
  
  <ol start="3">
  <li>google plugin can't identify this project as gwt web application automatically.</li>
  </ol>
  
  <p>My environment as follows:</p>
  
  <ol>
  <li>java version 1.7.0_03</li>
  <li>eclipse version Kepler Service Release 2</li>
  <li>gwt version 2.7.0</li>
  </ol>
  
  <p>Please advice, thanks a lot!</p>