Maven Support

Each nightly build includes the POMs that outline each module's dependencies. These files can be used to install either SmartClient or SmartGWT artifacts to your own Maven repositories, where they can be referenced like any other Maven artifact.  

 

Example:

 

<dependencies>
<dependency>
<groupId>com.isomorphic.smartclient.lgpl</groupId>
<artifactId>smartclient-lgpl</artifactId>
<version>11.0-p20160829</version>
</dependency>
</dependencies>
or
<dependencies>
  <dependency>
    <groupId>com.isomorphic.smartgwt.lgpl</groupId>
    <artifactId>smartgwt-lgpl</artifactId>
    <version>6.0-p20160829</version>
  </dependency>
</dependencies>

 

The plugin is deployed to Maven Central, so minimal configuration is required. Refer to the documentation at http://github.smartclient.com/isc-maven-plugin/ for more detaied documentation, but the simplest possible invocation for an LGPL build might look something like

 
mvn com.isomorphic:isc-maven-plugin:install -Dproduct=SMARTGWT -Dlicense=LGPL -DbuildNumber=6.0p
or
mvn com.isomorphic:isc-maven-plugin:install -Dproduct=SMARTCLIENT -Dlicense=LGPL -DbuildNumber=11.0p

 

which will cause Maven to install the plugin (if necessary) and cause the plugin to download and install the relevant artifacts for the LGPL version onto your local Maven repository. The process is the same for Pro editions and higher, just provide your Developer Login on the command line:

 

mvn com.isomorphic:isc-maven-plugin:install -Dproduct=SMARTCLIENT -Dlicense=POWER -DbuildNumber=11.0p -Dusername=[YOUR_USERNAME] -Dpassword=[YOUR_PASSWORD]

or

mvn com.isomorphic:isc-maven-plugin:install -Dproduct=SMARTGWT -Dlicense=POWER -DbuildNumber=6.0p -Dusername=[YOUR_USERNAME] -Dpassword=[YOUR_PASSWORD]


As always, please feel free to add your own examples here on the wiki or post questions about usage, etc. to the forums.