Set Up Eclipse with Maven

Content

  1. Introduction
  2. Get source code
  3. Get JDK, Eclipse and add BEAST Maven project
  4. Add EclipseLink
  5. Build software package

Introduction

The BEAST is implemented in Java. There are many integrated development environments (IDE) available to support Java programming, however, one of the most popular is the open source product Eclipse. BEAST was developed using the Ecplise IDE. To build the project (compiling, including imports, etc.) Apache Maven is used. Therefore, here comes a description how to set up an Eclipse project to modify and build the BEAST software.

Get source code

  1. Download the source code from https://sourceforge.net/projects/beast/

Get JDK, Eclipse and add BEAST Maven project

  1. Download Java SE Development Kit from Oracle (at least Java 8)
  2. Run installation
  3. Download Eclipse IDE for Java Developers from https://www.eclipse.org. (make sure it comes with Maven included)
  4. Extract the zip file
  5. Start Eclipse and select a workspace
  6. Select File > Import > Maven > Existing Maven Projects
    Maven Import
    Maven Import (2)
  7. Enter Root Directory, e.g., C:\Users\\Documents\Beast
  8. Select Projects: /pom.xml org.beast:BEAST-DSS:1.0-SNAPSHOT:jar
  9. Select Add project(s) to working set: Beast
    Maven Import (3)
  10. Maven Import (4)

  1. Select Help - Install New Software...
    Install Eclipse Link (1)
  2. Add Work with: http://download.eclipse.org/rt/eclipselink/updates/
    Install Eclipse Link (2)
  3. Confirm the Add Repository dialog
  4. Install Eclipse Link (3)

Go to top

Build software package

Run Maven install to create a software package located in target/packaged.

Go to top