<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>net.customware.license</groupId>
    <artifactId>license-webapp</artifactId>
    <packaging>jar</packaging>
    <version>2.0.0</version>
    <name>CustomWare Webapp License Support</name>
    <url>http://www.customware.net/repository/display/AtlassianPlugins/CustomWare+License+Support</url>
    <description>Provides support for licensing in a generic webapp environment.</description>

    <licenses>
        <license>
            <name>New BSD License</name>
            <url>http://www.opensource.org/licenses/bsd-license.php</url>
        </license>
    </licenses>

    <organization>
        <name>CustomWare Asia Pacific</name>
        <url>http://www.customware.net/</url>
    </organization>

    <developers>
        <developer>
            <name>David Peterson</name>
            <organization>CustomWare Asia Pacific</organization>
            <organizationUrl>http://www.customware.net/</organizationUrl>
            <roles>
                <role>Original Developer</role>
            </roles>
        </developer>
        <developer>
            <name>Bo Wang</name>
            <organization>CustomWare Asia Pacific</organization>
            <organizationUrl>http://www.customware.net/</organizationUrl>
            <roles>
                <role>Developer</role>
            </roles>
        </developer>
    </developers>

    <properties>
        <tagBase>
            https://studio.plugins.atlassian.com/svn/CWLICSUP/tags/libraries/license-webapp
        </tagBase>
    </properties>

    <scm>
        <connection>
            scm:svn:https://studio.plugins.atlassian.com/svn/CWLICSUP/branches/2.x/libraries/license-webapp
        </connection>
        <developerConnection>
            scm:svn:https://studio.plugins.atlassian.com/svn/CWLICSUP/branches/2.x/libraries/license-webapp
        </developerConnection>
        <url>
            https://studio.plugins.atlassian.com/svn/CWLICSUP/branches/2.x/libraries/license-webapp
        </url>
    </scm>

    <dependencies>
        <dependency>
            <groupId>net.customware.license</groupId>
            <artifactId>license-support</artifactId>
            <version>2.0.0</version>
        </dependency>

        <dependency>
            <groupId>opensymphony</groupId>
            <artifactId>propertyset</artifactId>
            <version>1.3</version>
        </dependency>

        <!-- Test dependencies -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.0</version>
                <configuration>
                    <mavenExecutorId>forked-path</mavenExecutorId>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <repositories>
        <repository>
            <id>atlassian-public</id>
            <url>https://maven.atlassian.com/repository/public</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
        <repository>
            <id>atlassian-contrib</id>
            <url>https://maven.atlassian.com/contrib</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
        <repository>
            <id>sonatype-nexus-snapshot</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>
    </repositories>

    <distributionManagement>
        <repository>
            <id>sonatype-nexus-staging</id>
            <name>Nexus Release Repository</name>
            <url>http://oss.sonatype.org/service/local/staging/deploy/maven2</url>
        </repository>
        <snapshotRepository>
            <id>sonatype-nexus-snapshots</id>
            <name>Sonatype Nexus Snapshots</name>
            <url>http://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
    </distributionManagement>

    <profiles>
        <profile>
            <id>release-sign-artifacts</id>
            <activation>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

</project>