Building Sysiphus

Checking out the sources

All of the source code for Sysiphus and its related libraries is in Subversion. You can directly browse the repository. To check out the code you need to download svn or one of this alternativ SVN clients

Instructions on Subversion use can be found at http://svnbook.red-bean.com.

SVN clients

This is a list of alternative svn clients:

NameLinkDescription
SVN for Mac OSXhttp://www.codingmonkeys.de/mbo/Command client for OSX
TortoiseSVNhttp://tortoisesvn.tigris.org/Graphical Client for Windows
Subclipsehttp://subclipse.tigris.org/update_1.0.xPlugin for Eclipse

Check out

Sysiphus consists of several components. To check out a single component, for example RAT, run the command:

svn co http://wwwbruegge.in.tum.de/repos/sysiphus/trunk/rat rat

To check out the hole Sysiphus project with all components, run the command:

svn co http://wwwbruegge.in.tum.de/repos/sysiphus/trunk sysiphus

See this list containing the links to the repositories of all components:

CommonsRepository: http://wwwbruegge.in.tum.de/repos/sysiphus/trunk/commons
Elementstore AdminRepository: http://wwwbruegge.in.tum.de/repos/sysiphus/trunk/es
Elementstore ServerRepository: http://wwwbruegge.in.tum.de/repos/sysiphus/trunk/esadmin
Model LayerRepository: http://wwwbruegge.in.tum.de/repos/sysiphus/trunk/model
RATRepository: http://wwwbruegge.in.tum.de/repos/sysiphus/trunk/rat
REQestRepository: http://wwwbruegge.in.tum.de/repos/sysiphus/trunk/req
Entire SysiphusRepository: http://wwwbruegge.in.tum.de/repos/sysiphus/trunk

Compiling using Maven

This Section describes how to compile the sources using the command line.

Install Maven

Sysiphus uses Maven for dependency management. You need to download and install Maven.

See http://maven.apache.org/download.html

Compiling

To compile a component run the command mvn with the selected target in the directory of the specific component. For example if you want to build the RAT application, change in the rat directory and run the command:

:~ wolft$ cd rat/
:~/rat wolft$ mvn assembly:directory 

Maven-Targets

TargetDescription
assembly:directorycompiles the component, creates a jar file and creates the application structure
assembly:assemblycompiles the component, creates a jar file and the application structure and packs the application into a zip and tar
compilecompiles the component
packagecompiles the component and creates a package (jar or war)
installcompiles the component, creates a jar file and installs it to your local maven repository
runruns the component
cleancleans the target directories

Compiling using ANT

To simplify development, we created ANT scripts to build and run the components of Sysiphus. ANT is supported and integrated in the main IDEs.

Install ANT

See http://ant.apache.org/

Compiling

To compile a component run the command ant with the selected target in the directory of the specific component. For example if you want to compile RAT run the command:

:~/rat wolft$ ant compile

Important Note: You should run mvn install on all Sysiphus projects you are using at least once to make Maven retrieve all neccessary Jars before you run the Ant scripts for the first time. The Ant scripts will only use but not update the Maven library repository.

ANT-Targets

TargetDescription
compilecompiles the component
packagecompiles the component and creates a package (jar or war)
assemblycompiles the component, creates a jar file and creates the application structure
installcompiles the component, creates a jar file and installs it to your local maven repository
runruns the component
cleancleans the target directories

Compiling with Eclipse

Install and Enable Maven Plugin for Eclipse

See http://m2eclipse.codehaus.org/

Compile a component

To build a component, use the Ant View of Eclipse to run the build.xml in the root directory of the component you want to build. See ANT-Targets for a list of the avaiable targets.