For test and other purposes Apache Directory Projects can be deployed to a custom location (e.g. locally). This guide will walk you through the process by preparing your maven configuration.
You'll need a profiles section to add the properties needed for customization. Here's what my settings.xml file in ~/.m2 looks like:
<!-- This property is needed to customize where the goal 'deploy' will deploy artifacts to -->