| Apache Droids > Index > installation |
Before starting to work with Droids you need to install
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
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
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->General->Maven projects, 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:clean eclipse:eclipse
For further information about the maven eclipse plugin visit http://maven.apache.org/plugins/maven-eclipse-plugin/
After you imported the projects you will find:
See Installation Guide for Netbeans 6.7.1 - Retrieving the source from svn and opening the Maven projects
Now that you are all setup you should go read getStarted to understand the best strategy to work with droids.