- [OPTIONAL] Run the following maven commands in your sakai-src root folder (e.g. /opt/cafe-2.5.x)
This will clean out any eclipse files that are in there already:mvn eclipse:clean
- [OPTIONAL] Generate the eclipse files using maven (this is not required and not recommended)
This will generate valid eclipse .project and .classpath files from the maven buildmvn eclipse:eclipse
- If you are using the Maven Plugin for Eclipse then you should run this instead:
mvn eclipse:m2eclipse
- If you are using the Maven Plugin for Eclipse then you should run this instead:
- Startup eclipse if it is not running
- Create a new workspace for Sakai
- Click on File -> Switch Workspace
- Enter "WS-Sakai" in place of the default "workspace" directory
- Click OK (eclipse will restart)
- The following steps should be done in the WS-Sakai workspace
- Add Maven Repository libraries to classpath
- NOTE: This is for backwards compatibility with projects using the M2_REPO variable so it can be skipped
- Select Window -> Preferences -> Java -> Build Path -> Classpath Variables
- Add MAVEN_REPO classpath variable with the path to the local maven repository (Sakai 2.4 or lower)
- The path should be: $USER_HOME/.maven/repository
- Add M2_REPO classpath variable with the path to the local maven repository (Sakai 2.5 or higher)
- The path should be: $USER_HOME/.m2/repository
- Switch to the Java perspective (Window -> Open Perspective -> Java)
- Make sure you are in the package explorer
- Turn off Automatic builds
- Select Project and uncheck Build automatically
- Select File -> Import -> Existing Projects into Workspace
- Enter the full path to the sakai source directory for the root directory
- This should be something like /opt/cafe-2.5.x if you followed the development setup guide
- Click Finish to import the selected projects
- This will take awhile, probably 5+ minutes
- Clean all Sakai projects
- Select Project -> Clean
- Select Clean all projects
- Check Start a build immediately
- Click OK
- Build All (Project -> Build All)
- There will be hundreds of warnings, do not worry about these
- Enter the full path to the sakai source directory for the root directory
- Turn back on Automatic builds
- Select Project and check Build automatically
- Select project and then use the down triangle menu to add Filters (target, m2-target)
Manage space
Manage content
Integrations
App links