<?xml version="1.0" encoding="UTF-8"?>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~ Copyright (c) 2007, Dave Whitla
  ~
  ~ All rights reserved.
  ~
  ~ Redistribution and use in source and binary forms, with or without
  ~ modification, are permitted provided that the following conditions are met:
  ~
  ~  * Redistributions of source code must retain the above copyright notice,
  ~    this list of conditions and the following disclaimer.
  ~
  ~  * Redistributions in binary form must reproduce the above copyright notice,
  ~    this list of conditions and the following disclaimer in the documentation
  ~    and/or other materials provided with the distribution.
  ~
  ~  * Neither the name of the copyright holder nor the names of contributors
  ~    may be used to endorse or promote products derived from this software
  ~    without specific prior written permission.
  ~
  ~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  ~ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  ~ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  ~ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
  ~ OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  ~ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  ~ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  ~ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  ~ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  ~ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  ~ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->

<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>
    <groupId>au.net.ocean.ext</groupId>
    <artifactId>httpclient-auth-spnego</artifactId>
    <packaging>jar</packaging>
    <version>1.0</version>
    <name>HTTPClient SPNego Extensions</name>

    <description>
        Negotiated authentication (SPNego) extensions for the Apache Commons HTTPClient library
    </description>

    <inceptionYear>2007</inceptionYear>

    <licenses>
        <license>
            <name>The Revised BSD Licence</name>
            <url>http://www.ocean.net.au/licences/BSDLicence.txt</url>
        </license>
    </licenses>

    <issueManagement>
        <system>Jira</system>
        <url>http://jira.ocean.net.au/browse/HCS</url>
    </issueManagement>

    <ciManagement>
        <system>TeamCity</system>
        <url>http://teamcity.ocean.net.au/viewType.html?buildTypeId=bt9</url>
        <notifiers>
            <notifier>
                <type>email</type>
                <configuration>
                    <subscription-address>http://teamcity.ocean.net.au/profile.html?</subscription-address>
                </configuration>
                <sendOnError>true</sendOnError>
                <sendOnFailure>true</sendOnFailure>
                <sendOnSuccess>true</sendOnSuccess>
                <sendOnWarning>true</sendOnWarning>
            </notifier>
            <notifier>
                <type>jabber</type>
                <configuration>
                    <subscription-address>http://teamcity.ocean.net.au/profile.html?</subscription-address>
                </configuration>
                <sendOnError>true</sendOnError>
                <sendOnFailure>true</sendOnFailure>
                <sendOnSuccess>true</sendOnSuccess>
                <sendOnWarning>true</sendOnWarning>
            </notifier>
        </notifiers>
    </ciManagement>

    <distributionManagement>
        <snapshotRepository>
            <id>snapshot.ocean.net.au</id>
            <name>Ocean Snapshot Repository</name>
            <url>dav:http://maven.ocean.net.au/snapshot</url>
        </snapshotRepository>
        <!--<repository>-->
        <!--<id>release.ocean.net.au</id>-->
        <!--<name>Ocean Release Repository</name>-->
        <!--<url>dav:http://maven.ocean.net.au/release</url>-->
        <!--</repository>-->
        <repository>
            <uniqueVersion>false</uniqueVersion>
            <id>maven2.dev.java.net</id>
            <name>JavaNet Release Repository</name>
            <url>java-net:/maven2-repository/trunk/www/repository/</url>
        </repository>
        <!--<site>-->
        <!--<id>maven.ocean.net.au</id>-->
        <!--<name>Ocean MavenPlugins Web Site</name>-->
        <!--<url>dav:http://maven.ocean.net.au/lib/httpclient-auth-spnego</url>-->
        <!--</site>-->
    </distributionManagement>

    <repositories>
        <repository>
            <id>maven2.dev.java.net</id>
            <name>Java.net Repository for Maven</name>
            <url>http://download.java.net/maven/2</url>
            <layout>default</layout>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
            </releases>
            <snapshots>
                <enabled>false</enabled>
                <updatePolicy>never</updatePolicy>
            </snapshots>
        </repository>
    </repositories>

    <scm>
        <connection>scm:svn:http://svn.ocean.net.au/httpclient-auth-spnego/tags/httpclient-auth-spnego-1.0</connection>
        <developerConnection>scm:svn:http://svn.ocean.net.au/httpclient-auth-spnego/tags/httpclient-auth-spnego-1.0</developerConnection>
        <url>http://fisheye.ocean.net.au/browse/httpclient-auth-spnego/tags/httpclient-auth-spnego-1.0</url>
    </scm>

    <parent>
        <groupId>au.net.ocean</groupId>
        <artifactId>maven</artifactId>
        <version>1.8</version>
    </parent>

    <dependencies>
        <dependency>
            <groupId>commons-httpclient</groupId>
            <artifactId>commons-httpclient</artifactId>
            <version>3.0.1</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.3</version>
            <scope>compile</scope>
        </dependency>
        <!--<dependency>-->
            <!--<groupId>au.net.ocean.security.auth.gss</groupId>-->
            <!--<artifactId>auth-gss-api</artifactId>-->
            <!--<version>[1.3,)</version>-->
            <!--<scope>compile</scope>-->
        <!--</dependency>-->
        <dependency>
            <groupId>au.net.ocean.security.auth.gss</groupId>
            <artifactId>auth-gss-kerberos5</artifactId>
            <version>[1.3,)</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>au.net.ocean</groupId>
            <artifactId>util</artifactId>
            <version>1.1</version>
            <scope>compile</scope>
        </dependency>

        <!-- test -->
        <!--<dependency>-->
            <!--<groupId>au.net.ocean.security.auth.jaas</groupId>-->
            <!--<artifactId>testLoginModule</artifactId>-->
            <!--<version>1.0</version>-->
            <!--<scope>test</scope>-->
        <!--</dependency>-->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <properties>
        <licence>BSD</licence>
        <!--
           - The following properties are required for successful test execution.
           - They are not provided by default to prevent the public dissemination of
           - potentially sensitive auth credentials.
           - Developers wishing to build this project should supply the named
           - properties via a profile within a profiles.xml file in the same directory as
           - this file.  DO NOT COMMIT your profiles.xml file to the VCS repository.
           - Successful test execution is contingent upon the developer having a
           - working Kerberos5 authentication system and a HTTP service for which
           - a test resource has been configured to require negotiated Kerberos5
           - authentication.  A suggested system would be comprised of an MIT Kerberos
           - KDC and Admin server and an Apache2.2 HTTP server with the
           - libapache2-mod-auth-kerb authentication plugin installed. The documentation
           - already available on the Interweb regarding such a setup is more than
           - adequate and is assumed knowledge for anyone building this project.
           
        <test.server.host></test.server.host>
        <test.server.port></test.server.port>
        <test.service.principal></test.service.principal>
        <test.realm></test.realm>
        <test.kdc></test.kdc>
        <test.user></test.user>
        <test.password></test.password>
        <test.protected.resource></test.protected.resource>
           -->
    </properties>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-release-plugin</artifactId>
            </plugin>
            <!--<plugin>-->
            <!--<groupId>org.apache.maven.plugins</groupId>-->
            <!--<artifactId>maven-site-plugin</artifactId>-->
            <!--</plugin>-->
        </plugins>
        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-webdav</artifactId>
                <version>1.0-beta-2</version>
            </extension>
            <extension>
                <groupId>org.jvnet.wagon-svn</groupId>
                <artifactId>wagon-svn</artifactId>
                <version>1.8</version>
            </extension>
        </extensions>
    </build>

</project>
