Sakai Logo

3. Build and Deploy Sakai

3.1 Download Source

Download the Sakai Source archive from:

Getting the Code from Subversion
Alternatively, you may check out the source code from subversion with the command:
svn co https://source/

In which case you could skip the unpacking step below, and your root directory would be sakai_2-1-0 instead of sakai-src.

3.2 Unpack Source

Choose a location to unpack the Sakai source (your home directory is fine), and when you unpack it you will see a directory named sakai-src.

3.3 Run Maven

From within sakai-src, run the command:
maven sakai

This will run for quite some time with fairly verbose output, particularly if it's your first build. It may take 10-15 minutes, depending on your machine and connection speed. Maven will download any dependencies into the local repository, compile the Sakai code, and deploy Sakai to Tomcat in the form of .war files in the $CATALINA_HOME/webapps directory.

If Maven completes with the message BUILD SUCCESSFUL, you should be able to move on to the next step. If you are greeted with the report BUILD FAILED read the accompanying error message carefully to troubleshoot (see the Troubleshooting section).

You will probably be able to start up Tomcat and run Sakai with the default configuration at this point, but it might be better to take care of some basic configuration first. Please continue on to the Post-Installation Configuration section.