Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
mvn clean install -Dversion=2.5p -Dedition=eval -Dbuild=release -Disc.username=MY_USERNAME -Disc.password=MY_PASSWORD

SetupAutomatic Download of Builds

The step of downloading a build from SmartClient.com depends on an http-client plugin that was at one time available on a sonatype repository.  For some reason, that artifact has gone missing.  Until such time as it's restored, you'll unfortunately need to download+another attachment+ and install its contents manually:

Code Block
mvn install:install-file -Dfile=maven-http-client-plugin-1.0.0-SNAPSHOT.jar -DpomFile=maven-http-client-plugin-1.0.0-SNAPSHOT.pom

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:

...

  1. The POMs at each project's root are used to mavenize the resources from the package downloaded from SmartClient.com.  Unless you're interested in how that works, the POM you care about is at src/main/resources.
  2. The build does require the use of Maven 3.  You don't need Maven 3 to use the resulting artifact, just to build it.
  3. There currently isn't any good way to attach each artifact's javadoc independently, but the artifacts that have documentation in either the client or server bundles has the full bundle attached.
  4. The dependencies are based on the SmartGWT docs.  If any of the dependencies are wrong, or you have suggestions for improvements to the setup, please comment here or on thisforum post.

Bypassing download from SmartClient.com

If you already have a build downloaded, or you are having trouble getting the download to work, you can bypass the scripts behavior skip the download step and work directly with a downloaded build by doing the following.:

  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.

...