Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Current »

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).

  1. Download and unpack the attachment and mvn install (or deploy) the project inside
  2. Run the New Maven Project wizard
  3. Include snapshot archetypes and select smartgwtee-archetype-basic. You will probably have to change the Catalog to "All Catalogs".
  4. The 'module' property takes the name of your GWT module, and should be capitalized. 
  5. 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.
  6. 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.
  7. Add the target/generated-sources/gwt folder to your Eclipse build path
  8. Debug As (Google) Web Application.

Enjoy.

  • No labels