Skip to content

Building DMASON from source

Flavio Serrapica edited this page Jul 13, 2016 · 23 revisions

The following tutorial will guide you through the download and setup of the D-MASON project into Eclipse. Of course you can use any IDE of your choice, or no one at all.

Prerequisites

  • [Eclipse "Mars" or newer][eclipse]
  • [Subversion plug-in for Eclipse][svn] (it should already be included in Eclipse)
  • [Apache Maven][maven] (it should already be included in Eclipse)

Downloading DMASON as Eclipse Project

  1. Open menu "File" > "Import" and select "Projects from Git" under "Git" folder
  2. Select "Clone URI" and press the "Next" button
  3. In the "URI" field insert "https://github.com/isislab-unisa/dmason.git"
  4. Fill all fields in "Authentication" with your GitHub credentials. Than press the "Next" button
  5. In "Branch Selection" view, select the branch on which you want work (master is the main branch), alternatively you can select all of them. Than press the "Next" button.
  6. Press the "Next" button in the "Local Destination" view.
  7. Wait until the download ends, than select "Import as general project" in "Wizard for project import" and press the "Next" button
  8. Fille the "Project name" field in "Import Project" section and press "Fisish" button
  9. Right-click on project > "Configure" > "Convert to Maven Project"

Now you can use DMASON

Launching DMASON

DMASON is built upon Three components: an ActiveMQ server, one or more Workers and a Master which include a Web Server.

In this tutorial, we’ll setup a DMASON simulation using two workers. Also, we will run all of the component on a single machine, but in a real simulation environment you may want to run the server and every worker on different hosts.

Launching the ActiveMQ server

We include the ActiveMQ library using the maven repository (see pom.xml file). The actual version is the 5.13.3.