<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/maven-v4_0_0.xsd ">
    <modelVersion>4.0.0</modelVersion>
    <!-- ====================================================================== -->
    <!-- P A R E N T  P R O J E C T  D E S C R I P T I O N                      -->
    <!-- ====================================================================== -->
    <parent>
        <groupId>com.day.crx</groupId>
        <artifactId>crx-parent</artifactId>
        <version>2.3.2</version>
        <relativePath>../../parent/pom.xml</relativePath>
    </parent>

    <!-- ====================================================================== -->
    <!-- P R O J E C T  D E S C R I P T I O N                                   -->
    <!-- ====================================================================== -->
    <groupId>com.day.crx</groupId>
    <artifactId>crx-auth-ldap</artifactId>
    <packaging>bundle</packaging>
  <url>https://adobe.com</url>
  <licenses>
    <license>
      <name>License Agreement</name>
      <url>http://adobe.com/go/terms</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <organization>
    <name>Adobe</name>
    <url>http://www.adobe.com/</url>
  </organization>
  <developers>
    <developer>
      <name>Adobe</name>
      <email>repo@adobe.com</email>
      <organization>Adobe</organization>
      <organizationUrl>http://www.adobe.com</organizationUrl>
    </developer>
  </developers>

    <name>Day CRX LDAP Authentication</name>

    <!-- ====================================================================== -->
    <!-- D E P E N D E N C I E S                                                -->
    <!-- ====================================================================== -->
    <dependencies>
        <!-- crx internal dependencies -->
        <dependency>
            <groupId>com.day.crx</groupId>
            <artifactId>crx-api</artifactId>
        </dependency>
        <dependency>
            <groupId>com.day.crx</groupId>
            <artifactId>crx-core</artifactId>
        </dependency>

        <!-- jsr 170 -->
        <dependency>
            <groupId>javax.jcr</groupId>
            <artifactId>jcr</artifactId>
        </dependency>

        <!-- ldap stuff -->
        <dependency>
            <groupId>com.day.commons</groupId>
            <artifactId>day-commons-ldapclient</artifactId>
        </dependency>

        <!-- misc -->
        <dependency>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
        </dependency>        
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>

        <!-- test dependencies -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.directory.server</groupId>
            <artifactId>apacheds-server-unit</artifactId>
            <version>1.5.5</version>
            <scope>test</scope>
        </dependency>
        
    </dependencies>

    <!-- ====================================================================== -->
    <!-- P R O F I L E   D E F I N I T I O N                                    -->
    <!-- ====================================================================== -->
    <profiles>
        <profile>
            <id>integrationTesting</id>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>

                            <excludes>
                                <exclude>nothing</exclude>
                            </excludes>
                            <!-- forkMode 'pertest' is important, because
                                 the various tests use different JAAS
                                 configurations that need to be reloaded
                                 for each test! -->
                            <forkMode>pertest</forkMode>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <!-- ====================================================================== -->
    <!-- B U I L D   D E F I N I T I O N                                        -->
    <!-- ====================================================================== -->
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-Category>jcr,crx</Bundle-Category>
                        <Bundle-Version>${project.version}</Bundle-Version>
                        <Export-Package>
                            com.day.crx.security.ldap,
                            com.day.crx.security.ldap.sync,
                            com.day.crx.security.ldap.principals,
                            com.day.util.ldap; version=${project.version}
                        </Export-Package>
                        <Include-Resource>
                            com/day/crx/security/principals=target/classes/com/day/crx/security/principals
                        </Include-Resource>
                        <DynamicImport-Package>
                            com.day.crx.security.principals
                        </DynamicImport-Package>
                    </instructions>
                </configuration>
            </plugin>

            <!-- use jaas configuration for tests -->
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <excludes>
                      <exclude>**/*Test.java</exclude>
                    </excludes>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>
