This is done in the "Deployment Properties" section of the project properties (available through the project context menu). You add / remove projects, library libraries that will be collected in your deployment unit.
Edit: As in Eclipse Kepler, you can find this by right-clicking the project and selecting Deployment Assembly
. Click Add
and add the dependency project.
source share