<?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>9</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>1.3</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>${maven.version}</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/1.3</connection>
    <developerConnection>scm:svn:https://svn.code.sf.net/p/dirctxsrc/code/tags/1.3</developerConnection>
    <url>http://sourceforge.net/p/dirctxsrc/code/HEAD/tree/tags/1.3</url>
  </scm>
  <build>
    <defaultGoal>package</defaultGoal>
    <plugins>
      <plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <executions>
          <execution>
            <id>delete-dependency-reduced-pom</id>
            <phase>clean</phase>
            <goals>
              <goal>clean</goal>
            </goals>
            <configuration>
              <filesets>
                <filesets>
                  <directory>${basedir}</directory>
                  <includes>
                    <include>dependency-reduced-pom.xml</include>
                  </includes>
                </filesets>
              </filesets>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <includes>
                  <include>org.apache.commons:commons-lang3</include>
                </includes>
              </artifactSet>
              <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>
                    <include>org/apache/commons/lang3/BooleanUtils.class</include>
                    <include>org/apache/commons/lang3/math/NumberUtils.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>
            <java.util.logging.config.file>${project.build.directory}/test-classes/tomcat6x-home/conf/logging.properties</java.util.logging.config.file>
            <org.slf4j.simplelogger.defaultlog>warn</org.slf4j.simplelogger.defaultlog>
          </systemPropertyVariables>
          <redirectTestOutputToFile>true</redirectTestOutputToFile>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>unpack-site-resources</id>
            <phase>pre-site</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>${project.parent.groupId}</groupId>
                  <artifactId>${project.parent.artifactId}</artifactId>
                  <version>${project.parent.version}</version>
                  <classifier>site-resources</classifier>
                  <type>zip</type>
                  <overWrite>true</overWrite>
                  <outputDirectory>${project.build.directory}/site</outputDirectory>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <configuration>
          <locale>en</locale>
          <links>
            <link>http://docs.spring.io/spring-ldap/docs/${spring-ldap.version}/apidocs</link>
            <link>http://docs.spring.io/spring/docs/${spring.version}/javadoc-api</link>
          </links>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.5.1</version>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>sourceforge-release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.6</version>
            <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>
            <version>2.7</version>
            <executions>
              <execution>
                <id>default-testResources</id>
                <phase>process-test-resources</phase>
                <goals>
                  <goal>testResources</goal>
                </goals>
              </execution>
              <execution>
                <id>default-resources</id>
                <phase>process-resources</phase>
                <goals>
                  <goal>resources</goal>
                </goals>
              </execution>
              <execution>
                <id>javadoc-resources</id>
                <phase>generate-resources</phase>
                <goals>
                  <goal>copy-resources</goal>
                </goals>
                <configuration>
                  <outputDirectory>D:\Entwicklung\workspace-4.5\dircontextsource\target\checkout\target/apidocs</outputDirectory>
                  <resources>
                    <resource>
                      <directory>D:\Entwicklung\workspace-4.5\dircontextsource\target\checkout</directory>
                      <targetPath>META-INF</targetPath>
                      <includes>
                        <include>LICENSE.txt</include>
                      </includes>
                    </resource>
                  </resources>
                </configuration>
              </execution>
              <execution>
                <id>prepare-sourceforge-release-files</id>
                <phase>process-resources</phase>
                <goals>
                  <goal>copy-resources</goal>
                </goals>
                <configuration>
                  <outputDirectory>D:\Entwicklung\workspace-4.5\dircontextsource\target\checkout\target/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>
            <version>1.0</version>
            <executions>
              <execution>
                <id>upload-sourceforge-release-src-assembly</id>
                <phase>deploy</phase>
                <goals>
                  <goal>upload</goal>
                </goals>
                <configuration>
                  <fromDir>D:\Entwicklung\workspace-4.5\dircontextsource\target\checkout\target</fromDir>
                  <includes>dircontextsource-1.3-src.*</includes>
                  <serverId>sourceforge.net</serverId>
                  <url>sftp://frs.sourceforge.net/home/frs/project/dirctxsrc</url>
                  <toDir>1.3</toDir>
                </configuration>
              </execution>
              <execution>
                <id>upload-sourceforge-release-bin-assembly</id>
                <phase>site-deploy</phase>
                <goals>
                  <goal>upload</goal>
                </goals>
                <configuration>
                  <fromDir>D:\Entwicklung\workspace-4.5\dircontextsource\target\checkout\target</fromDir>
                  <includes>dircontextsource-1.3-bin.*</includes>
                  <serverId>sourceforge.net</serverId>
                  <url>sftp://frs.sourceforge.net/home/frs/project/dirctxsrc</url>
                  <toDir>1.3</toDir>
                </configuration>
              </execution>
              <execution>
                <id>upload-sourceforge-release-files</id>
                <phase>site-deploy</phase>
                <goals>
                  <goal>upload</goal>
                </goals>
                <configuration>
                  <fromDir>D:\Entwicklung\workspace-4.5\dircontextsource\target\checkout\target/sf-release</fromDir>
                  <serverId>sourceforge.net</serverId>
                  <url>sftp://frs.sourceforge.net/home/frs/project/dirctxsrc</url>
                  <toDir>1.3</toDir>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>org.springframework.ldap</groupId>
      <artifactId>spring-ldap-core</artifactId>
      <version>2.0.4.RELEASE</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-beans</artifactId>
      <version>3.2.16.RELEASE</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.directory.server</groupId>
      <artifactId>apacheds-core-integ</artifactId>
      <version>1.5.7</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.7.21</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version>1.7.21</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.tomcat</groupId>
      <artifactId>catalina</artifactId>
      <version>6.0.45</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.tomcat</groupId>
      <artifactId>coyote</artifactId>
      <version>6.0.45</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.tomcat</groupId>
      <artifactId>jasper</artifactId>
      <version>6.0.45</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.tomcat</groupId>
      <artifactId>servlet-api</artifactId>
      <version>6.0.45</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>2.4</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <reporting>
    <plugins>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <configuration>
          <locale>en</locale>
          <links>
            <link>http://docs.spring.io/spring-ldap/docs/${spring-ldap.version}/apidocs</link>
            <link>http://docs.spring.io/spring/docs/${spring.version}/javadoc-api</link>
          </links>
        </configuration>
      </plugin>
    </plugins>
  </reporting>
  <distributionManagement>
    <site>
      <id>sourceforge.net</id>
      <name>SourceForge.net Project Web</name>
      <url>scp://shell.sourceforge.net/home/project-web/dirctxsrc/htdocs</url>
    </site>
  </distributionManagement>
  <properties>
    <tomcat.version>6.0.45</tomcat.version>
    <spring.version>3.2.16.RELEASE</spring.version>
    <slf4j.version>1.7.21</slf4j.version>
    <spring-ldap.version>2.0.4.RELEASE</spring-ldap.version>
  </properties>
</project>

