Prerequisites
Before starting to work with Droids you need to install
- jdk >= 1.6
- maven >= 2.0.9
Download
First of all create a new directory and download the sources:
mkdir droids cd droids svn co https://svn.apache.org/repos/asf/incubator/droids/trunk . cd trunk
Build
Create a distribution (all components of droids will be build) and install them to your local maven repository (usually ~/.m2/repository) with the following command.
mvn clean install
Eclipse integration
Before using the following command you should have deleted all old eclipse files (.classpath and .project) that you have in your project. Further make sure you have installed the maven eclipse plugin, For installation instructions, see the m2eclipse website.
mvn eclipse:clean eclipse:eclipse
Next go to eclipse, and make sure you haven't got trunk mounted as a project already.
Do File-Import->Existing projects into workspace, then point to your trunk directory and it should detect the newly created
components as projects.
Note that you need to declare the M2_REPO classpath variable in your workspace, it should point to your local m2 repository.
You can also get eclipse to download the sources of the dependent libraries and attach them to the jars in eclipse :
mvn -Declipse.downloadSources=true eclipse:eclipse
For further information about the maven eclipse plugin visit http://maven.apache.org/plugins/maven-eclipse-plugin/