title: GWT Development Mode with Eclipse/Maven
body: <p>I am just starting with GWT.  I use Eclipse and have installed the GWT plugin.</p>
  <p>I have followed the directions here <a href="https://stackoverflow.com/questions/1894003/maven-gwt-2-0-and-eclipse">Maven GWT 2.0 and Eclipse</a> to set up a GWT project using the gwt-maven-plugin.  When I run the Maven goals <code>gwt:compile gwt:run</code>, GWT Development Mode is launched and I can copy the url from it to my browser and view the label.</p>
  <p>However, the project has this problem:</p>
  <pre><code>Description: The web.xml file does not exist
  Resource: WEB-INF   
  Path: /GWTExample/war
  Location: Unknown
  Type: Google Web App Problem
  </code></pre>
  <p>If I try to run the project as a Google Web Application, I get this warning:</p>
  <pre><code>[WARN] No startup URLs supplied and no plausible ones found -- use -startupUrl
  </code></pre>
  <p>I can get rid of the problem by copying the web.xml to the war directory, but I still get the URL issue when running as a Google Web App.</p>
  <p>If I'm using Maven and GWT in Eclipse, should I just ignore the web.xml problem and always run applications in development mode via the Maven goals?  Or is there a way to set things so I can run as a Google Web App?</p>
  <p>EDIT: Related to the above, is it possible to debug a GWT app running in development mode started by <code>gwt:compile gwt:run</code>?  I have added breakpoints to my application but it doesn't stop on them. I'm not sure if it is something I've configured wrong or if it's just not possible.</p>
  <h3>Update:</h3>
  <p>In response to Prem's answer...</p>
  <p>When I run a <code>compile gwt:run</code>, the web.xml file isn't copied.  When I run the <code>install gwt:run</code>, I get this error:</p>
  <pre><code>[INFO] --- gwt-maven-plugin:1.2:test (default) @ SampleGWT ---
  [INFO] using GWT jars from project dependencies : 2.0.4
  [INFO] establishing classpath list (scope = test)
  [ERROR] java.lang.NoClassDefFoundError: org/codehaus/mojo/gwt/test/MavenTestRunner
  [ERROR] Caused by: java.lang.ClassNotFoundException: org.codehaus.mojo.gwt.test.MavenTestRunner
  [ERROR]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
  [ERROR]     at java.security.AccessController.doPrivileged(Native Method)
  [ERROR]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
  [ERROR]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
  [ERROR]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
  [ERROR]     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
  [ERROR] Could not find the main class: org.codehaus.mojo.gwt.test.MavenTestRunner.  Program will exit.
  [ERROR] Exception in thread &quot;main&quot;
  </code></pre>
  <p>I’m guessing that bug <a href="http://jira.codehaus.org/browse/MGWT-24" rel="noreferrer">http://jira.codehaus.org/browse/MGWT-24</a> is included in version 1.2 of the gwt-maven-plugin.  Normally I wouldn’t run install on a project that builds a war file, but I would expect to at least get past the test phase of the build cycle.</p>
  <p>Does anybody have any idea why I would get this error on the install but not the compile goals?  Also, should I be expecting either goal to copy the web.xml file from src/main/webapp/WEB-INF/web.xml to the /war directory?</p>