This guide walks through building and deploying Sakai from source code.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sakaiproject/sakai/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before starting, ensure you have:- Java 17 (for Sakai 24+) or Java 11 (for Sakai 22-23)
- Maven 3.9+ or use the included Maven wrapper
- Apache Tomcat 9 downloaded and extracted
- MySQL/MariaDB database server running
Quick Start
For a complete installation guide, see the Sakai Install Guide on the Sakai wiki.Step 1: Clone the Repository
Clone the Sakai source code from GitHub:Choose a Branch or Release
master- Sakai 24 development25.1- Latest stable release23.4- Maintenance release
Step 2: Build Sakai
Build Sakai using Maven:Build Options
Skip tests (faster build):Step 3: Configure Tomcat
See the Tomcat Configuration guide for detailed setup instructions. Key configuration files:setenv.sh- JVM memory and optionsserver.xml- Tomcat server configurationsakai.properties- Sakai-specific settings
Step 4: Deploy to Tomcat
Deploy the built Sakai artifacts to Tomcat:/path/to/your/tomcat with your actual Tomcat installation path.
Alternative: Deploy Exploded (Development)
For development with faster redeployment:Step 5: Start Tomcat
Start Tomcat and monitor the logs:Step 6: Access Sakai
Once startup is complete, open your browser and navigate to:- Username:
admin - Password:
admin
Troubleshooting
Build Failures
OutOfMemoryError during build:- Check your internet connection
- Try clearing Maven cache:
rm -rf ~/.m2/repository
Deployment Issues
Tomcat won’t start:- Check
catalina.outfor error messages - Verify JVM settings in
setenv.sh - Ensure ports 8080 and 8005 are not in use
- Verify database is running
- Check connection settings in
sakai.properties - Ensure database user has proper permissions
Development Workflow
Building a Single Module
Running Tests
Frontend Development
For web components development:Next Steps
- Configure Tomcat for production settings
- Review the official Sakai documentation
- Join the Sakai community