title: Setting up GWT project with maven in Eclipse
body: <p>I am trying to set up a maven project in Eclipse using Maven. What I have tried so far:</p>
  
  <ol>
  <li>creating the project in Eclipse by creating a new Maven project and selecting the org.codehouse.mojo gwt-maven-plugin in version 2.7.0.</li>
  </ol>
  
  <p>The problem:
  - Eclispe doesn't offer me any run configuration</p>
  
  <p>So I went to the properties of the project, to the Google tab, pointed Eclipse to the webapp folder and checked the chedkbox that says "Use Google Web Toolkit".</p>
  
  <p>After that, Eclipse did recognize my project as a GWT project, however, it added several jars to my build path (which I think shouldn't be necessary because I'm using Maven and the same jar are already listed as maven dependencies) and when I run it in Super Dev Mode, I get this error:</p>
  
  <pre><code>Missing required argument 'module[s]'
  Google Web Toolkit 2.7.0
  </code></pre>
  
  <p>Also, when I rightlick and choose Google > GWT Compile, it tells me that my project isn't a GWT project.</p>
  
  <ol start="2">
  <li><p>I created the project using the command line:</p>
  
  <p>mvn archetype:generate</p>
  
  <p>org.codehaus.mojo:gwt-maven-plugin</p>
  
  <p>Choose archetype:</p>
  
  <p>1: remote -> org.codehaus.mojo:gwt-maven-plugin (Maven plugin for the Google Web Toolkit.)</p>
  
  <p>Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1</p>
  
  <p>org.codehaus.mojo:gwt-maven-plugin version:</p>
  
  <p>23: 2.7.0</p></li>
  </ol>
  
  <p>The project was successfully generated, I imported it as maven project into Eclipse. Again, Eclipse doesn't recognize it as a GWT project.</p>
  
  <ol start="3">
  <li>I wanted to create a project with the 2.8.0 archetype from here:</li>
  </ol>
  
  <p><a href="https://gwt-maven-plugin.github.io/gwt-maven-plugin/user-guide/archetype.html" rel="nofollow">https://gwt-maven-plugin.github.io/gwt-maven-plugin/user-guide/archetype.html</a></p>
  
  <p>However, I get this error:</p>
  
  <pre><code>mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersion=2.8.0-SNAPSHOT
  [INFO] Scanning for projects...
  [INFO]
  [INFO] ------------------------------------------------------------------------
  [INFO] Building Maven Stub Project (No POM) 1
  [INFO] ------------------------------------------------------------------------
  [INFO]
  [INFO] &gt;&gt;&gt; maven-archetype-plugin:2.4:generate (default-cli) &gt; generate-sources @ standalone-pom &gt;&gt;&gt;
  [INFO]
  [INFO] &lt;&lt;&lt; maven-archetype-plugin:2.4:generate (default-cli) &lt; generate-sources @ standalone-pom &lt;&lt;&lt;
  [INFO]
  [INFO] --- maven-archetype-plugin:2.4:generate (default-cli) @ standalone-pom ---
  [INFO] Generating project in Interactive mode
  [INFO] Archetype repository not defined. Using the one from [org.codehaus.mojo:gwt-maven-plugin:2.7.0] found in catalog remote
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 17.449 s
  [INFO] Finished at: 2015-11-14T23:47:50+01:00
  [INFO] Final Memory: 13M/182M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.codehaus.mojo:gwt-ma
  ven-plugin:2.8.0-SNAPSHOT) -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  </code></pre>
  
  <p>What exactly am I doing wrong?</p>