Master's thesis by Christian Rasmussen and David Åse.
- Download "Eclipse Modeling Tools v4.4.0 (64-bit)" from http://www.eclipse.org/downloads/
- Download "Play 2.3.0 (Activator)" from https://www.playframework.com/download#older-versions (NOTE: Make sure to download this exact version)
- Download "JExercise" from https://github.com/hallvard/jexercise/
- Clone git repo (
git clone https://github.com/chrrasmussen/NTNU-Master-Project.git
)
- Start Eclipse
- Set workspace to the root of project (the folder containing README.md)
- Open "File" > "Import..."
- Select "General" > "Existing Projects into Workspace"
- Press "Next"
- In the "Select root directory" field, browse to
<projectDir>/no.ntnu.assignmentsystem.model
- Make sure the project is checked
- Click "Finish"
- Repeat for
<projectDir>/no.ntnu.assignmentsystem.editor
- Go to "Window" > "Preferences" > "Java" > "Installed JREs"
- If jre8 is not in the list, click "Add"
- Choose "Standard VM"
- Set "JRE Home" to your jre8 path
- Click "Finish"
- Go to "Help" in the menu bar
- Open "Eclipse Marketplace"
- Search for
maven 1.5
- Install "Maven Integration for Eclipse (Luna and newer) 1.5" (Select the one with the most downloads)
- Complete the wizard
- Restart Eclipse when prompted
The Maven command line tool (mvn
) can be installed using brew install maven
on Mac OS X.
- Open terminal and navigate to
<projectDir>/Setup
folder - Run
mvn p2:site
(https://github.com/reficio/p2-maven-plugin) - Open Eclipse
- Go to "Help" > "Install new Software..." in menu bar
- Click "Add..."
- Click "Local..."
- Navigate to
<projectDir>/setup/target/repository/
and click "Open" - Click "OK"
- Check "Maven osgi-bundles" in table view
- Click "Next >"
- Click "Finish"
- Restart Eclipse when prompted
- Navigate to
no.ntnu.assignmentsystem.model/model/model.genmodel
- Right-click on "Model"
- Click on "Generate Model Code"
- Repeat for
no.ntnu.assignmentsystem.model/model/services.genmodel
These steps must be performed every time the .ecore
model changes.
- Open the source file
no.ntnu.assignmentsystem.model/src/no.ntnu.assignmentsystem.services/EditorActor.java
- Go to line 45
- Update the path to match the current installation:
<eclipseInstall>/plugins/org.eclipse.equinox.launcher_1.3.0.<version>.jar
- Right-click the project
no.ntnu.assignmentsystem.editor
and select "Export..." - Select "Plug-in Development" > "Deployable plug-ins and fragments"
- Click "Next"
- Set directory to
<eclipseInstall>/dropins/
- Click "Finish"
These steps must be performed every time the source code in no.ntnu.assignmentsystem.editor
changes.
- Open "Run" > "Run Configurations" in menu bar
- Right-click "Java Application" and select "New"
- Set name to
Main
- Set project to
no.ntnu.assignmentsystem.model
- Set main class to
no.ntnu.assignmentsystem.services.Main
- Click "Run" and confirm that it compiles
- Right-click the project
no.ntnu.assignmentsystem.model
and select "Export..." - Select "Java" > "Runnable JAR file"
- Click "Next"
- Set launch configuration to "Main"
- Set export destination to
<projectDir>/AssignmentModel/lib/no.ntnu.assignmentsystem.model.jar
(Folder must be created) - Set library handling to "Copy required libraries into a sub-folder next to the generated JAR"
- Click "Finish"
- Move the JAR-files from
<projectDir>/AssignmentModel/lib/no.ntnu.assignmentsystem.model_lib/
to<projectDir>/AssignmentModel/lib/
These steps must be performed every time the code in no.ntnu.assignmentsystem.model
changes.
- Move the TDT4100 problems from
<downloads>/jexercise-master/no.hal.jex.collection/
to<projectDir>/no.hal.jex.collection/
- Move the files from
<downloads>/activator-1.2.10-minimal/
to<projectDir>/AssignmentModel/
- Open terminal and navigate to
<projectDir>/AssignmentModel/
- Run
./activator run
- Open web browser and navigate to: http://localhost:9000
- Generate IDEA-files (
./activator idea
) - Start IntelliJ
- Select "Open Project"
- Navigate to
<projectDir>/AssignmentSystem/