Hi Owen,

I took some time this afternoon to test the plugin and, as expected, it's very 
interesting and works well.

I created a simple Maven project and configured the 'maven-failsafe-plugin' 
plugin to run a simple test which tries to connect to the directory server 
created by your plugin.

At the moment, the configuration options are only covering a small set of 
Apache DS' configuration, but it's definitely a good starting point.

I really think this Maven plugin adds some value to ApacheDS when it's used 
during integration.

Great work!

Thanks,
Pierre-Arnaud


On 4 sept. 2010, at 21:53, Owen Jacobson wrote:

> Hi there,
> 
> I'm a big believer in black-box testing, and my application uses LDAP as a 
> user store. The embedded ApacheDS support is great, but it's not very 
> black-box if you have to modify the app to add a directory server. Since I 
> use maven, I put together a maven plugin that runs ApacheDS within the build. 
> It'll go into central sometime in the next 24 hours.
> 
> A simple example:
> 
>            <plugin>
>                <groupId>ca.grimoire.maven</groupId>
>                <artifactId>apacheds-maven-plugin</artifactId>
>                <version>0.1</version>
> 
>                <configuration>
>                    <partitions>
>                        <partition>
>                            <id>example.com</id>
>                            <baseDn>dc=example,dc=com</baseDn>
>                        </partition>
>                    </partitions>
>                    
> <ldifDirectory>\${baseDir}/src/test/ldif/example.com.ldif</ldifDirectory>
>                </configuration>
> 
>                <executions>
>                    <execution>
>                        <id>start-apache-ds</id>
>                        <phase>pre-integration-test</phase>
>                        <goals>
>                            <goal>start</goal>
>                        </goals>
>                    </execution>
> 
>                    <execution>
>                        <id>stop-apache-ds</id>
>                        <phase>post-integration-test</phase>
>                        <goals>
>                            <goal>stop</goal>
>                        </goals>
>                    </execution>
>                </executions>
>            </plugin>
> 
> Documentation: 
> http://alchemy.grimoire.ca/m2/sites/ca.grimoire.maven/apacheds-maven-plugin/
> 
> Source: http://bitbucket.org/ojacobson/apacheds-maven-plugin (Mercurial; 
> patches and bug reports welcome; MIT license).
> 
> Enjoy!
> -o
> 

Reply via email to