Maven Support
SmartGWT artifacts are not published to any public repository, but a
POM for each is included in the SDK, and can be used to install them to your own private Maven
repository. The official
Isomorphic plugin for
Maven contains a handful of targets intended
to simplify that process through automation. Please refer to the plugin's documentation for
usage and examples.
For a complete listing of artifacts installed in your environment, consult your repository
manager. Where no repository manager
is in use, a directory listing can often provide all the detail you need. Once you've made an
artifact available to your build,
you can use it just like you'd use any other dependency.
That said, typical installations of the current build will include the artifacts documented
here, where coordinates in most cases
will vary slightly by date and license.
A sample configuration using a few artifacts from an eval build released on November 14, 2016
follows:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.isomorphic.smartgwt.samples</groupId>
<artifactId>builtinds</artifactId>
<version>1.0.0</version>
<packaging>war</packaging>
<dependencies>
<!-- Standard GWT depdendency -->
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>2.7.0</version>
<scope>provided</scope>
</dependency>
<!-- The SmartGWT Evaluation edition -->
<dependency>
<groupId>com.isomorphic.smartgwt.eval</groupId>
<artifactId>smartgwt-eval</artifactId>
<version>6.0-p20161114</version>
</dependency>
<!-- Add support for SQLDataSources -->
<dependency>
<groupId>com.isomorphic.smartgwt.eval</groupId>
<artifactId>isomorphic-sql</artifactId>
<version>6.0-p20161114</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Standard GWT Compile -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.7.0</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>