Skip to content

Instantly share code, notes, and snippets.

@bmatthews68
Created December 13, 2013 13:54
Show Gist options
  • Select an option

  • Save bmatthews68/7944529 to your computer and use it in GitHub Desktop.

Select an option

Save bmatthews68/7944529 to your computer and use it in GitHub Desktop.
<plugin>
<groupId>com.btmatthews.maven.plugins</groupId>
<artifactId>ldap-maven-plugin</artifactId>
<version>1.2.0</version>
<executions>
<execution>
<id>dump</id>
<goals>
<goal>dump</goal>
</goals>
<configuration>
<host>localhost</host>
<port>10389</port>
<authDn>uid=admin,ou=system</authDn>
<passwd>secret</passwd>
<searchBase>dc=btmatthews,dc=com</searchBase>
<filename>dump.dsml</filename>
<format>dsml</format>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.btmatthews.maven.plugins</groupId>
<artifactId>ldap-maven-plugin</artifactId>
<version>1.2.0</version>
<executions>
<execution>
<id>dump</id>
<goals>
<goal>dump</goal>
</goals>
<configuration>
<host>localhost</host>
<port>10389</port>
<authDn>uid=admin,ou=system</authDn>
<passwd>secret</passwd>
<searchBase>dc=btmatthews,dc=com</searchBase>
<filename>dump.ldif</filename>
<format>ldif</format>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.btmatthews.maven.plugins</groupId>
<artifactId>ldap-maven-plugin</artifactId>
<version>1.2.0</version>
<executions>
<execution>
<id>load</id>
<goals>
<goal>load</goal>
</goals>
<configuration>
<host>localhost</host>
<port>10389</port>
<authDn>uid=admin,ou=system</authDn>
<passwd>secret</passwd>
<sources>
<dsml>${basedir}/load.dsml</dsml>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.btmatthews.maven.plugins</groupId>
<artifactId>ldap-maven-plugin</artifactId>
<version>1.2.0</version>
<executions>
<execution>
<id>load</id>
<goals>
<goal>load</goal>
</goals>
<configuration>
<host>localhost</host>
<port>10389</port>
<authDn>uid=admin,ou=system</authDn>
<passwd>secret</passwd>
<sources>
<ldif>load.ldif</ldif>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.btmatthews.maven.plugins</groupId>
<artifactId>ldap-maven-plugin</artifactId>
<version>1.2.0</version>
</plugin>
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.btmatthews.maven.plugins</groupId>
<artifactId>ldap-maven-plugin</artifactId>
<version>1.2.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.btmatthews.maven.plugins</groupId>
<artifactId>ldap-maven-plugin</artifactId>
<version>1.2.0</version>
<configuration>
<monitorPort>11389</monitorPort>
<monitorKey>ldap</monitorKey>
<daemon>true</daemon>
</configuration>
<executions>
<execution>
<id>start-ldap</id>
<goals>
<goal>run</goal>
</goals>
<phase>pre-integration-test</phase>
</execution>
<execution>
<id>stop-ldap</id>
<goals>
<goal>stop</goal>
</goals>
<phase>post-integration-test</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment