Skip to content
Tiago Leao edited this page Feb 20, 2015 · 26 revisions

Development Environment setup

Install Maven 3: https://maven.apache.org/download.cgi

You will need to have at least JAVA 7 in order to build the Application.

Headless Build

In order to build it over the command line then ensure that maven and java are set in the environment path, navigate to the the root of the repository and do a mvn clean && mvn install. The compiled final executables will appear under net.leaobr.cm.product/target/products/net.leaobr.cm.product

Through Eclipse

  1. Get the latest version of Eclipse 4 here: http://www.eclipse.org/eclipse4/

  2. Once into Eclipse, install the SWT Designer (WindowBuilder)

  3. Install the E4 Tools

  4. Finally, in order to import the project into Eclipse then I would recommend having a dedicated workspace just for this project. Once that's done, go to File > Import... > Existing Maven Projects. Point it to the root of the repository and make sure all sub-projects bundles are ticked. Once all projects are imported then right click at the parent project > Run as > Maven Install. It will take a little while the first time... After maven finishes you need to set the target platform which can be found under the net.leaobr.cm.target project, open the CanisMajorRCP.target and click on "Set as Target Platform" (This will take a little while to complete). And now you can run the application, under net.leaobr.cm.product open cm.product with the Eclipse editor and search for the Run/Debug icons, that will enable the application to run in debug mode.

Lastly, read this short intro about the application model before jumping into code (ignore the 'Live Editing' part, bug).

Clone this wiki locally