<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>dk.sds.nsp.accesshandler</groupId>
    <artifactId>api</artifactId>
    <version>1.0.2</version>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>

    <scm>
        <connection>scm:svn:https://svn.nspop.dk/svn/nsp/tags/tools/access-handler/api/release-1.0.2</connection>
    </scm>

    <distributionManagement>
        <repository>
            <id>nsp-nexus-release</id>
            <name>NSPOP Nexus Releases Repository</name>
            <url>https://nexus.nspop.dk/nexus/content/repositories/releases</url>
        </repository>
        <snapshotRepository>
            <id>nsp-nexus-snapshot</id>
            <name>NSPOP Nexus Snapshots Repository</name>
            <url>https://nexus.nspop.dk/nexus/content/repositories/snapshots</url>
        </snapshotRepository>
    </distributionManagement>

    <repositories>
        <repository>
            <id>NSP Nexus</id>
            <url>https://nexus.nspop.dk/nexus/content/groups/public</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-api</artifactId>
            <version>7.0</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <finalName>accesshandler-api</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <archive>
                        <index>true</index>
                        <manifest>
                            <addClasspath>false</addClasspath>
                        </manifest>
                        <manifestEntries>
                            <Implementation-Title>NSP Accesshandler API</Implementation-Title>
                            <Specification-Version>${project.version}</Specification-Version>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.5.3</version>
                <configuration>
                    <checkModificationExcludes>
                        <checkModificationExclude>*.project</checkModificationExclude>
                        <checkModificationExclude>*.classpath</checkModificationExclude>
                        <checkModificationExclude>**/*.iml</checkModificationExclude>
                        <checkModificationExclude>*.idea</checkModificationExclude>
                        <checkModificationExclude>**/*.log</checkModificationExclude>
                        <checkModificationExclude>doc/*.pdf</checkModificationExclude>
                    </checkModificationExcludes>
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                    <tagBase>https://svn.nspop.dk/svn/nsp/tags/tools/access-handler/api</tagBase>
                    <tagNameFormat>release-@{project.version}</tagNameFormat>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>2.8.2</version>
                <dependencies>

                    <dependency>
                        <!-- on its own, this very old plugin seems to include very old versions
                            of wagon-ssh, jsch and svnkit -->
                        <groupId>com.google.code.maven-svn-wagon</groupId>
                        <artifactId>maven-svn-wagon</artifactId>
                        <version>1.4</version>
                    </dependency>

                    <dependency>
                        <groupId>org.apache.maven.wagon</groupId>
                        <artifactId>wagon-ssh</artifactId>
                        <version>2.12</version>
                    </dependency>

                    <dependency>
                        <groupId>com.jcraft</groupId>
                        <artifactId>jsch</artifactId>
                        <version>0.1.54</version>
                    </dependency>

                    <dependency>
                        <groupId>org.tmatesoft.svnkit</groupId>
                        <artifactId>svnkit</artifactId>
                        <version>1.8.14</version>
                    </dependency>

                </dependencies>
            </plugin>
        </plugins>
    </build>

</project>