title: How to package gwt application as a war file in maven?
body: <p>We are using <code>gwt-maven-plugin:2.4.0</code><br>
  <code>mvn compile</code> does work fine.<br>
  However <code>mvn package</code> does not work and ends up with a following error. The CLASSPATH does look right and contains all the classes of user and server part of gwt/2.4.0 </p>
  
  <p>.gwt.xml does look right too.</p>
  
  <p>Not sure if this is the right life cycle phase we should be using to create the package that contains generated war file. ?
  How do we generate the package in the first place, where gwt is involved ?</p>
  
  <pre><code>[INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ xyz-alp-ui-web ---
  [INFO] auto discovered modules [com.xyz.solutions.alp.alpui]
  [INFO] Compiling module com.xyz.solutions.alp.alpui
  [INFO]    
  [ERROR] Errors in 'file:/Z:/xyz-alp-ui-web/src/main/java/com/xyz/solutions/alp/client/ApplicationController.java'
  [INFO]
  [ERROR]  Internal compiler error
  [INFO] java.lang.NoClassDefFoundError: com/google/gwt/autobean/shared/AutoBeanFactory
  </code></pre>
  
  <p>I have <code>com\google\gwt\gwt-user\2.4.0\gwt-user-2.4.0.jar</code>, <code>com\google\gwt\gwt-dev\2.4.0\gwt-dev-2.4.0.jar</code> in classpath.<br>
  We are using maven 3.0</p>