Accepted answer

EDIT: I've updated my answer with additional steps provided by the OP. Credits to the OP for the details.

I just broke my Eclipse setup trying to install the latest version of the Google Plugin for Eclipse (for GWT 2.0) so I can't confirm everything but, let's assume the following prerequisites are fulfilled:

Did you try to:

  1. Create a new project from Eclipse (New > Other... then select Maven Project and choose the gwt-maven-plugin archetype).

  2. Edit the generated pom.xml, update the gwt.version property to 2.0.0 (which has been released in the central repo), add the Codehaus Snapshot repository and set the gwt-maven-plugin version to 1.2-SNAPSHOT (the version 1.2 isn't released in central, this should happen soon) 1.2 (which has been released in central too).

  3. Add a <runTarget> to the gwt-maven-plugin configuration as documented in Using the Google Eclipse Plugin.

  4. Configure the maven-war-plugin as documented in the page mentioned in the previous step.

  5. Manually enable GWT on the project from project preference by setting the Use Google Web Toolkit checkbox This step is unnecessary since you'll be building/running with a Maven run configuration, not the GWT Plugin for Eclipse.

This is how my pom.xml actually looks like:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="" xmlns:xsi=""
    GWT-Maven archetype generated POM


      <!-- convenience to define GWT version in one place -->

      <!--  tell the compiler we can use 1.5 -->



    <!--  GWT dependencies (from central repo) -->

    <!-- test -->

          If you want to use the target/web.xml file mergewebxml produces,
          tell the war plugin to use it.
          Also, exclude what you want from the final artifact here.


Run the gwt:eclipse goal (using m2eclipse Maven2 > build...) to setup your environment and create the launch configuration for your GWT modules.

Run gwt:compile gwt:run to compile and run a GWT module in the GWT Hosted mode.


very useful thread

@Pascal: thank you (I donot have enough reputations to comment on others posts; so here I am posting on what is working for me).

I needed 2.5.1 GWT (not 2.6, the latest) working with maven and eclipse (because sencha GXT is not supported for 2.6 yet). Tried following without luck

1)tried few archetypes with in eclipse to generate the project

2)modify pom file (based on above discussion) to change versions to 2.5.1

Following worked for me

 mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersion=2.5.1
 mvn gwt:eclipse
 mvn gwt:run


Just in case. If you use Google GIN in your project you should add compile goal before gwt:compile. So the whole sequence would be:

compile gwt:compile gwt:run

You can read explanation here:


An annoying problem with GWT and m2eclipse:

GWT Development Mode requires all JARs to be placed in WEB-INF/lib. It's especially painful when programmers use m2eclipse, which provides its own Eclipse classpath container.

good news, the workaround is working for me


You can run the following command to generate a Maven GWT project:

webAppCreator -maven -noant -out

For more information:

GWT webappcreator creating a Maven project: the source attachment does not contain the source for the file URLClassPath.class

Related Query

More Query from same tag