<?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/maven-v4_0_0.xsd">
  <parent>
    <artifactId>michael-o-parent</artifactId>
    <groupId>net.sf.michael-o</groupId>
    <version>2</version>
    <relativePath>../pom.xml/pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>net.sf.michael-o.dirctxsrc</groupId>
  <artifactId>dircontextsource</artifactId>
  <name>JNDI DirContextSource</name>
  <version>0.9</version>
  <description>A JNDI DirContext factory which works very much like a JDBC DataSource returning ready-to-use DirContext objects.</description>
  <url>http://dirctxsrc.sourceforge.net</url>
  <prerequisites>
    <maven>2.2.1</maven>
  </prerequisites>
  <issueManagement>
    <system>SourceForge.net Tickets</system>
    <url>http://sourceforge.net/p/dirctxsrc/tickets</url>
  </issueManagement>
  <inceptionYear>2012</inceptionYear>
  <mailingLists>
    <mailingList>
      <name>General Discussion</name>
      <post>general@discussion.dirctxsrc.p.re.sf.net</post>
      <archive>http://sourceforge.net/p/dirctxsrc/discussion/general</archive>
    </mailingList>
  </mailingLists>
  <scm>
    <connection>scm:svn:http://svn.code.sf.net/p/dirctxsrc/code/tags/0.9</connection>
    <developerConnection>scm:svn:https://svn.code.sf.net/p/dirctxsrc/code/tags/0.9</developerConnection>
    <url>http://sourceforge.net/p/dirctxsrc/code/HEAD/tree/tags/0.9</url>
  </scm>
  <build>
    <defaultGoal>package</defaultGoal>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <filters>
                <filter>
                  <artifact>org.apache.commons:commons-lang3</artifact>
                  <includes>
                    <include>org/apache/commons/lang3/StringUtils.class</include>
                    <include>org/apache/commons/lang3/Validate.class</include>
                  </includes>
                </filter>
              </filters>
              <relocations>
                <relocation>
                  <pattern>org.apache.commons.lang3</pattern>
                  <shadedPattern>internal.org.apache.commons.lang3</shadedPattern>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <systemPropertyVariables>
            <buildDirectory>${project.build.directory}</buildDirectory>
            <org.slf4j.simplelogger.defaultlog>warn</org.slf4j.simplelogger.defaultlog>
          </systemPropertyVariables>
          <redirectTestOutputToFile>true</redirectTestOutputToFile>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
          <arguments>-Psonatype-oss-release,sourceforge-release</arguments>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>sourceforge-release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <executions>
              <execution>
                <id>build-src-assembly</id>
                <phase>package</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <attach>false</attach>
                  <descriptors>
                    <descriptor>src/assembly/src.xml</descriptor>
                  </descriptors>
                </configuration>
              </execution>
              <execution>
                <id>build-bin-assembly</id>
                <phase>site</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <attach>false</attach>
                  <descriptors>
                    <descriptor>src/assembly/bin.xml</descriptor>
                  </descriptors>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-resources-plugin</artifactId>
            <executions>
              <execution>
                <id>prepare-sourceforge-release-files</id>
                <phase>process-resources</phase>
                <goals>
                  <goal>copy-resources</goal>
                </goals>
                <configuration>
                  <outputDirectory>${project.build.directory}/sf-release</outputDirectory>
                  <resources>
                    <resource>
                      <directory>src/sf-release</directory>
                      <filtering>true</filtering>
                    </resource>
                  </resources>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>wagon-maven-plugin</artifactId>
            <executions>
              <execution>
                <id>upload-sourceforge-release-src-assembly</id>
                <phase>deploy</phase>
                <goals>
                  <goal>upload</goal>
                </goals>
                <configuration>
                  <fromDir>${project.build.directory}</fromDir>
                  <includes>${project.artifactId}-${project.version}-src.*</includes>
                  <serverId>sourceforge.net</serverId>
                  <url>sftp://frs.sourceforge.net/home/frs/project/dirctxsrc</url>
                  <toDir>${project.version}</toDir>
                </configuration>
              </execution>
              <execution>
                <id>upload-sourceforge-release-bin-assembly</id>
                <phase>site-deploy</phase>
                <goals>
                  <goal>upload</goal>
                </goals>
                <configuration>
                  <fromDir>${project.build.directory}</fromDir>
                  <includes>${project.artifactId}-${project.version}-bin.*</includes>
                  <serverId>sourceforge.net</serverId>
                  <url>sftp://frs.sourceforge.net/home/frs/project/dirctxsrc</url>
                  <toDir>${project.version}</toDir>
                </configuration>
              </execution>
              <execution>
                <id>upload-sourceforge-release-files</id>
                <phase>deploy</phase>
                <goals>
                  <goal>upload</goal>
                </goals>
                <configuration>
                  <fromDir>${project.build.directory}/sf-release</fromDir>
                  <serverId>sourceforge.net</serverId>
                  <url>sftp://frs.sourceforge.net/home/frs/project/dirctxsrc</url>
                  <toDir>${project.version}</toDir>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.10</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.directory.server</groupId>
      <artifactId>apacheds-core-integ</artifactId>
      <version>1.5.7</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>apacheds-i18n</artifactId>
          <groupId>org.apache.directory.server</groupId>
        </exclusion>
        <exclusion>
          <artifactId>apacheds-test-framework</artifactId>
          <groupId>org.apache.directory.server</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-io</artifactId>
          <groupId>commons-io</groupId>
        </exclusion>
        <exclusion>
          <artifactId>ldap-client-api</artifactId>
          <groupId>org.apache.directory.client.ldap</groupId>
        </exclusion>
        <exclusion>
          <artifactId>shared-ldap</artifactId>
          <groupId>org.apache.directory.shared</groupId>
        </exclusion>
        <exclusion>
          <artifactId>shared-ldap-schema</artifactId>
          <groupId>org.apache.directory.shared</groupId>
        </exclusion>
        <exclusion>
          <artifactId>shared-ldap-schema-loader</artifactId>
          <groupId>org.apache.directory.shared</groupId>
        </exclusion>
        <exclusion>
          <artifactId>shared-ldap-schema-manager</artifactId>
          <groupId>org.apache.directory.shared</groupId>
        </exclusion>
        <exclusion>
          <artifactId>shared-cursor</artifactId>
          <groupId>org.apache.directory.shared</groupId>
        </exclusion>
        <exclusion>
          <artifactId>shared-ldap-jndi</artifactId>
          <groupId>org.apache.directory.shared</groupId>
        </exclusion>
        <exclusion>
          <artifactId>shared-asn1-codec</artifactId>
          <groupId>org.apache.directory.shared</groupId>
        </exclusion>
        <exclusion>
          <artifactId>shared-asn1</artifactId>
          <groupId>org.apache.directory.shared</groupId>
        </exclusion>
        <exclusion>
          <artifactId>shared-ldap-constants</artifactId>
          <groupId>org.apache.directory.shared</groupId>
        </exclusion>
        <exclusion>
          <artifactId>shared-ldap-converter</artifactId>
          <groupId>org.apache.directory.shared</groupId>
        </exclusion>
        <exclusion>
          <artifactId>shared-ldap-schema-dao</artifactId>
          <groupId>org.apache.directory.shared</groupId>
        </exclusion>
        <exclusion>
          <artifactId>shared-ldif</artifactId>
          <groupId>org.apache.directory.shared</groupId>
        </exclusion>
        <exclusion>
          <artifactId>shared-dsml-parser</artifactId>
          <groupId>org.apache.directory.shared</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.6.6</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version>1.6.6</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <distributionManagement>
    <site>
      <id>dirctxsrc.sf.net</id>
      <name>SourceForge.net Project Web</name>
      <url>scp://shell.sourceforge.net/home/project-web/dirctxsrc/htdocs</url>
    </site>
  </distributionManagement>
</project>

