Pages

Wednesday, July 15, 2009

Maven, GWT, and Eclipse round 2

So I've definitely made some progress in the Maven, GWT, and Eclipse integration. Below would be a working sample starting from a GWT project started using the google eclipse plugin.

Prerequisites:Eclipse 3.4Google Eclipse Pluginm2eclipse plugin

Create your gwt project:Create a pom for your project:Edit the pom to look like this (profiles and resource filtering are definitely not needed and can be removed) and add any other jars you may need for your project:

You'll have to install some of the jars into maven manually, they aren't really keeping up to date with these things. For the datanucleus-appengine-1.0.2.final.jar you have to use the one that was placed in the lib folder and run this command

At this time I would enable maven (I got some error message but just hit ok):If you are using profiles (you probably have an error in your project at this point) tell maven which active profile to use:You'll get a message if you want maven to update your project, hit ok.You're done, just ignore the warning about the missing gwt-servlet.jar, it will be there, just named differently.

now we just need to make an ant build.xml to make compiling, and deploying easy.