Now that you have a SmartGWT distribution for Maven, you can use a Maven archetype to get up and running quickly. Creating your own isn't difficult, but here's a simple one that includes a JNDI connection to the Isomorphic sample database in the SDK, and 2 (localized) SQL DataSource definitions based on the tables in it. It should all work from the command line, but here's how I use it with Eclipse 3.7, Google Plugin for Eclipse, and and m2eclipse 1.0 (Springsource Tool Suite 2.8.0, actually).
- Download and unpack the attachment
and mvn install (or deploy) the project inside - Run the New Maven Project wizard
- Include snapshot archetypes and select smartgwtee-archetype-basic
- The 'module' property takes the name of your GWT module, and should be capitalized. So I might choose something like
- groupId=com.mycompany
- artifactId=mymodule
- package=com.mycompany.mymodule
- module=MyModule
- Your new EntryPoint references some GWT i18n Messages interfaces. Run mvn:generate-sources on your new project to have them created from the included resource bundles.
- Add the target/generated-sources/gwt folder to your Eclipse build path
- Debug As (Google) Web Application.
Enjoy.