Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Panel

NOTE:  A new and improved method, still in draft form, is outlined at this forum post.   Start there, as it should become the preferred method for using Maven with SmartGWT.  Check back here soon for more complete documentation.

Background

Currently Isomorphic does not have a Maven repository for Pro+ editions of SmartGWT.  However, this article provides a downloadable Maven configuration that will:

...

If you have any trouble with this setup, see Bypassing Download from SmartClient.com below.

Setup

-Next, set up a Maven .settings profile with property values applicable to your environment.  The following example shows 2 profiles, both for building Power Edition with both the Messaging and Analytics optional modules purchased:-

...

The <repo*> elements are for deploying to an internal, organization-specific Maven repo.  Remove these properties if you don't have an internal Maven repo.

Usage

You can override these settings on the command line.  For example, this would download and deploy the 3.0 Power Edition release build instead of the 3.0p patch build as shown in the .settings file above, then deploy it to the central corporate repo (if you have one):

...

Code Block
mvn deploy -Psmartgwt-mainline -Dsnapshots=false -Ddate=2011-12-02

Notes

The build figures out where to get your downloads based on version, edition, build, and date properties.  It's worth reviewing the Download Page narrative at least once, but for the impatient:

...

  1. Rename your downloaded SmartGWT distribution to smartgwt.zip
  2. Copy the smartgwt.zip file into [Extracted Maven Configuration]\binary-distribution\binary-distribution\target\downloads (create any missing folders as necessary)
  3. When using the script, do not specify the "clean" command.

Project POM Example

Adding the following dependencies to your project POM would enable the basic server functionality plus SQL support, as well as make additional skins available.   Take a look at the generated artifacts to decide what you need for your own project, or get started with this Maven archetype

...