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. You will probably have to change the Catalog to "All Catalogs".
- The 'module' property takes the name of your GWT module, and should be capitalized.
- Once you click finish eclipse will create the project and after a bit of time (some times a couple minutes) eclipse will setup the project properly (classpaths, builders, etc based on the POM file). This may take a bit of time as it downloads any resources it needs. Keep an eye on the "Progress" tab to see how far along it is.
- 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.
EnjoyIsomorphic Software does not currently support or recommend any Maven archetype for the creation of SmartGWT/SmartClient applications. One or more such archetypes are planned for the future, however, and will likely be hosted on GitHub and deployed to Maven Central when they become available. Check back here for updates, and as always, keep an eye on blog and forum resources for announcements.