Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 491317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:59:56+00:00 2026-05-13T01:59:56+00:00

Does anyone know of a good guide for creating a project with the new

  • 0

Does anyone know of a good guide for creating a project with the new 2.0 release of GWT using maven and eclipse? I am running into a lot of problems getting them to play nicely together.

For what it’s worth, I can create a gwt project using the maven eclipse plugin which works fine, but porting it to maven doesn’t work (so a guide for this would be great).

Likewise, I can use the maven plugin (gwt-maven-plugin), but when I import it to eclipse (import -> materialize maven projects), it does not get recognised as a GWT project…

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T01:59:56+00:00Added an answer on May 13, 2026 at 1:59 am

    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:

    • Eclipse 3.5
    • Google Plugin for Eclipse (installed from http://dl.google.com/eclipse/plugin/3.5, see instructions)
    • m2eclipse Plugin for Eclipse (installed from http://m2eclipse.sonatype.org/update)

    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="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      <!--
        GWT-Maven archetype generated POM
      -->
      <modelVersion>4.0.0</modelVersion>
      <groupId>com.mycompany.demo</groupId>
      <artifactId>my-gwtapp</artifactId>
      <packaging>war</packaging>
      <version>0.0.1-SNAPSHOT</version>
      <name>gwt-maven-archetype-project</name>
    
      <properties>
    
          <!-- convenience to define GWT version in one place -->
          <gwt.version>2.0.0</gwt.version>
    
          <!--  tell the compiler we can use 1.5 -->
          <maven.compiler.source>1.5</maven.compiler.source>
          <maven.compiler.target>1.5</maven.compiler.target>
    
      </properties>
    
      <dependencies>
    
        <!--  GWT dependencies (from central repo) -->
        <dependency>
          <groupId>com.google.gwt</groupId>
          <artifactId>gwt-servlet</artifactId>
          <version>${gwt.version}</version>
          <scope>runtime</scope>
        </dependency>
        <dependency>
          <groupId>com.google.gwt</groupId>
          <artifactId>gwt-user</artifactId>
          <version>${gwt.version}</version>
          <scope>provided</scope>
        </dependency>
    
        <!-- test -->
        <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>4.4</version>
          <scope>test</scope>
        </dependency>
      </dependencies>
    
      <build>
        <outputDirectory>war/WEB-INF/classes</outputDirectory>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>gwt-maven-plugin</artifactId>
            <version>1.2</version>
            <executions>
              <execution>
                <goals>
                  <goal>compile</goal>
                  <goal>generateAsync</goal>
                  <goal>test</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <runTarget>com.mycompany.demo.gwt.Application/Application.html</runTarget>
            </configuration>
          </plugin>
          <!--
              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.
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-war-plugin</artifactId>
                    <configuration>
                        <webXml>target/web.xml</webXml>
                        <warSourceExcludes>.gwt-tmp/**</warSourceExcludes>
                    </configuration>
                </plugin>
                -->
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.0.2</version>
            <configuration>
              <warSourceDirectory>war</warSourceDirectory>
              <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
            </configuration>
          </plugin>    
        </plugins>
      </build>
    
    </project>
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 251k
  • Answers 251k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You should do better error-checking, and more sensible buffer handling:… May 13, 2026 at 9:29 am
  • Editorial Team
    Editorial Team added an answer It is not a file, but the contents of the… May 13, 2026 at 9:29 am
  • Editorial Team
    Editorial Team added an answer I got the answer a long time ago. I just… May 13, 2026 at 9:29 am

Related Questions

I would like to be able to hide another application's window from the taskbar,
After working in Eclipse for the past 3 years and memorizing all of the
I have a large Silverlight application, and we have decided to redesign the whole
Does anyone know of a MM7 server I can use for testing my MMS

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.