You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

 Thalia has two pieces: the IME back end, which is a Java .war file, and the .swf front end, which is written in OpenLazlo.

 COMMON STEPS:

1. Make sure all developers have checked in their code.

 BACK END

Configuring the Build Environment

1. download the latest version of maven at http://maven.apache.org/download.html (maven 2.0.7)

2.  a. Unzip  Unzip maven-2.0.7-bin.zip to the directory you wish to install Maven 2.0.7.
 b. Add the bin directory to your path
 c. make sure that JAVA_HOME is set to the location of your JDK
        d. Run mvn --version to verify that maven is correctly installed .

3. Confirm you have access to the svn repository: svn+ssh://svn.mit.edu/zest/thalia-maven

Building 

0. For a release, make sure you have no un-committed code changes hanging around with

svn status

If there are modified files, either check out a fresh copy or commit your changes.

1. Check out the thalia code from svn:

svn checkout svn+ssh://username@svn.mit.edu/zest/thalia-maven

SVN will create or update a directory named thalia-maven with the latest code.

2.  If you're doing a release, create a new branch from the trunk. The naming convention for branches is thalia<version>-sprint<num>  ( e.g. thalia1.0-sprint2 ). 

svn copy Trunk/thalia Branches/thalia<version>-sprint<num>
cd  Branches/thalia<version>-sprint<num> 

3. Make a clean build of the .war file:

cd thalia-maven/trunk/thalia
mvn clean package

4. If you're doing a release and the build completed without error, commit the branch. 

svn commit 

5.   Deploy the war:
  a. By default, it will deploy to isda-thalia-1.mit.edu . Modify the Branches/branchname/pom.xml file to specify a different location

  b. to specify tomcat authentication info, add the following line in settings.xml in $M2_HOME/conf/settings.xml
    <server>
      <id>deploymentserver</id>
      <username>username</username>
      <password>password</password>
    </server>

  c. do
 mvn tomcat:deploy

For more info on maven, go to :
http://maven.apache.org/run-maven/index.html

Maven book is at: http://www.sonatype.com/book/

  • No labels