See this pom.xml<http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/mobilewebapp/pom.xml> and fow define gwt-maven-plugin.
PD: The gwt-user jar you must put in scope provided. 2011/9/30 K H <[email protected]> > I use GWT with Maven and with GWT 2.3.0, "mvn clean gwt:run" works without > problems. > When I upgrade to GWT 2.4.0 however, I get an "Module Load Error" (see > linked image). > > The GWT Version is controled by the following excerpt from my pom.xml: > > <dependency> > <groupId>com.google.gwt</groupId> > <artifactId>gwt-servlet</artifactId> > <version>${gwtVersion}</version> > </dependency> > <dependency> > <groupId>com.google.gwt</groupId> > <artifactId>gwt-user</artifactId> > <version>${gwtVersion}</version> > <scope>compile</scope> > </dependency> > > gwtVersion is defined as either "2.3.0" or "2.4.0". > How can I get rid of the error while still using an up-to-date GWT? > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/vcVn_DsuzLEJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
