SweetDEV RIA documentation for Maven 2

  1. You want to begin a new Maven 2 project, based on SweetDEV RIA.
  2. You want to build SweetDEV RIA.

In both case, you'll have to install Maven 2.
To do so, download latest Maven 2 release and install it.
After installation, don't forget to set Maven variables (MAVEN_HOME and PATH).
To check the correct installation, type on command line : mvn --version

Begin a new Maven 2 project, based on SweetDEV RIA

Follow theses steps to add SweetDEV RIA to your maven 2 project :

  1. Get global sources files by typing these command line : svn checkout https://svn.sourceforge.net/svnroot/sweetdev-ria/sweetdev-ria/trunk/global global,
  2. Get SweetDEV RIA core sources files by typing these command line : svn checkout https://svn.sourceforge.net/svnroot/sweetdev-ria/sweetdev-ria/trunk/sweetdev-ria-core sweetdev-ria-core,
  3. launch maven build in this last directory : mvn clean install,
  4. merge dependencies and plugins from SweetDEV RIA blank web application's pom.xml to your pom.xml project.

You want to build SweetDEV RIA from scratch

1. Get sources files

To built SweetDEV RIA, you have to check out all source files by using subversion :
svn checkout https://svn.sourceforge.net/svnroot/sweetdev-ria/sweetdev-ria/trunk sweetdev-ria

2. Get JBoss

You have to download JBoss Application Server zip file and unzip it.
Then, go into JBoss bin directory and launch it by run.bat on Windows or run.sh on Linux / MacOs system.

3. Build SweetDEV RIA

Then, go back to your sweetdev-ria directory and type : mvn clean install to launch the build process.
Specifics RIA's dependencies or plugins will be downloaded from our maven repository .
After this step, each SweetDEV RIA project will be built.
Note that SweetDEV RIA Tests web application will be deployed on your JBoss server (by using JMX) to launch client side tests.
Maven will launch Internet Explorer and Firefox to play Selenium and JsUnit tests.
This assume you use Windows and have Firefox installed.
If not, you should install Firefox (in the default directory) or change browsers used for unit testing in last section on SweetDEV-RIA-tests/pom.xml.
Change this line according to your system configuration :
<browsersPath>C://Program Files/Internet Explorer/IEXPLORE.EXE;C://Program Files/Mozilla Firefox/firefox.exe</browsersPath>

To launch web application directly from Maven

The SweetDEV RIA Getting Started project can be directly launch by maven using cargo.
Maven will then download a web application server (Tomcat by default), launch it and deploy that web application. To use this feature, type mvn clean install cargo:start. By default, the web server will be downloaded in c:\\tmp\\appservers.
Depending on your needs, you will have to change that in SweetDEV-RIA-tests/pom.xml.
To stop the web server, hit control and c keys.

Support

If you have any technical questions, please use forum to have some support.