Hi Frank! I had a rough last week trying to upgrade our application to 2.1, but I think I finally got it working when the gwt maven plugin was released. Relevant parts of the pom:
<project> ... <properties> <gwt.version>2.1.0</gwt.version> </properties> ... <build> <finalName>${project.artifactId}</finalName> <outputDirectory>${basedir}/war/WEB-INF/classes</outputDirectory> <plugins> <!-- Eclipse Project Generation --> <plugin> <artifactId>maven-eclipse-plugin</artifactId> <configuration> <additionalProjectnatures> <projectnature>com.google.gwt.eclipse.core.gwtNature</ projectnature> <projectnature>com.google.gdt.eclipse.core.webAppNature</ projectnature> </additionalProjectnatures> <additionalBuildcommands> <buildcommand>com.google.gwt.eclipse.core.gwtProjectValidator</ buildcommand> <buildcommand>com.google.gdt.eclipse.core.webAppProjectValidator</ buildcommand> </additionalBuildcommands> <classpathContainers> <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</ classpathContainer> <classpathContainer>com.google.gwt.eclipse.core.GWT_CONTAINER</ classpathContainer> </classpathContainers> <excludes> <!--These are provided by the GWT container --> <exclude>com.google.gwt:gwt-user</exclude> <exclude>com.google.gwt:gwt-dev</exclude> </excludes> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <warSourceDirectory>${basedir}/war</warSourceDirectory> <webappDirectory>${basedir}/war</webappDirectory> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <version>${gwt.version}</version> <configuration> <module>our.module</module> <warSourceDirectory>${basedir}/war</warSourceDirectory> <inplace>true</inplace> <i18nConstantsBundles> <i18nConstantsBundle>our.gwt.shared.i18n.OurConstants</ i18nConstantsBundle> </i18nConstantsBundles> <i18nMessagesBundles> <i18nMessagesBundle>our.gwt.shared.i18n.OurMessages</ i18nMessagesBundle> </i18nMessagesBundles> <localWorkers>2</localWorkers> </configuration> <executions> <execution> <id>Generation</id> <phase>generate-sources</phase> <goals> <goal>generateAsync</goal> <goal>i18n</goal> </goals> </execution> <execution> <id>Compilation</id> <phase>prepare-package</phase> <goals> <goal>compile</goal> </goals> </execution> </executions> </plugin> </plugins> </build> ... <!-- Dependencies --> <dependencies> ... <!-- GWT --> <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> ... </dependencies> </project> The maven eclipse plugin should include the GWT SDK which is set as default in your project this way. One minor obstacle remains though: when running the debugger (developer mode) in eclipse it looks for / your/home/.m2/repository/com/google/gwt/gwt-servlet/2.1.0/gwt- servlet.jar which does not exist. I solved this by copying and renaming gwt-servlet-2.1.0.jar in the same directory. I hope this helps out. Regards /Karl On Nov 7, 10:50 pm, Frank Bølviken <frank.bolvi...@gmail.com> wrote: > Hi, > > Im so tired of searching around the internet and finding no good > answers to this subject. > Do anyone know of any good guide for creating a gwt 2.1 project in > maven, and fully integrating it with eclipse? > Gwt 2.1 is suppoed to be easier to integrate with maven, but I can't > get it to work properly. > > Any pointers? > Thanks in advance, > > Frank B -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.