﻿<?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>com.ithit.webdav.integration</groupId>
    <artifactId>android-integration</artifactId>
    <name>Android integration for ITHit WebDav Server</name>
    <description>ITHit WebDAV integration for android based on NanoHttpd</description>
    <url>https://www.webdavsystem.com/javaserver/</url>
    <version>6.2.9090-Beta</version>

    <licenses>
        <license>
            <name>IT Hit Software License</name>
            <url>https://www.webdavsystem.com/media/1199/it-hit-webdav-server-engine-java-license-agreement.rtf</url>
        </license>
    </licenses>

    <developers>
        <developer>
            <name>IT Hit, LTD</name>
            <email>info@ithit.com</email>
            <organization>IT Hit, LTD</organization>
            <organizationUrl>https://www.webdavsystem.com/javaserver/</organizationUrl>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:git://github.com/ITHit/WebDAVServerSamplesJava.git</connection>
        <developerConnection>scm:git:ssh://github.com:ITHit/WebDAVServerSamplesJava.git</developerConnection>
        <url>http://github.com/ITHit/WebDAVServerSamplesJava/tree/master</url>
    </scm>

    <properties>
        <javax.servlet>2.5</javax.servlet>
        <maven-javadoc-plugin.version>2.10.4</maven-javadoc-plugin.version>
        <maven-source-plugin.version>2.3</maven-source-plugin.version>
        <maven.compiler.plugin.version>3.1</maven.compiler.plugin.version>
        <java.compile.version>1.6</java.compile.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.ithit.webdav</groupId>
            <artifactId>webdav-server</artifactId>
            <version>6.2.9090-Beta</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.nanohttpd</groupId>
            <artifactId>nanohttpd</artifactId>
            <version>2.3.1</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${maven.compiler.plugin.version}</version>
                <configuration>
                    <source>${java.compile.version}</source>
                    <target>${java.compile.version}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>${maven-source-plugin.version}</version>
                <executions>
                    <execution>
                        <id>deploy</id>
                        <phase>deploy</phase>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                        <configuration>
                            <excludes>
                                <exclude>**/*.java</exclude>
                            </excludes>
                        </configuration>
                    </execution>
                    <execution>
                        <id>attach-sources</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <excludeResources>true</excludeResources>
                    <attach>true</attach>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>${maven-javadoc-plugin.version}</version>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <sourcepath>${basedir}/src/main/java</sourcepath>
                    <doctitle><![CDATA[<h1>Java WebDAV Android Integration library</h1>]]></doctitle>
                    <bottom><![CDATA[<i>Copyright &#169 ITHit. All Rights Reserved.</i>]]></bottom>
                    <additionalparam>${javadoc.opts}</additionalparam>
                    <offlineLinks>
                        <offlineLink>
                            <url>https://docs.oracle.com/javase/8/docs/api//</url>
                            <location>C:\tmp</location>
                        </offlineLink>
                    </offlineLinks>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
                <version>1.6</version>
                <executions>
                    <execution>
                        <id>sign-artifacts</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>sign</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <executable>${project.build.directory}/../../Build/gpg/gpg2.exe</executable>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.sonatype.plugins</groupId>
                <artifactId>nexus-staging-maven-plugin</artifactId>
                <version>1.6.7</version>
                <extensions>true</extensions>
                <configuration>
                    <serverId>ossrh</serverId>
                    <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                    <autoReleaseAfterClose>true</autoReleaseAfterClose>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>doclint-java8-disable</id>
            <activation>
                <jdk>[1.8,)</jdk>
            </activation>
            <properties>
                <javadoc.opts>-Xdoclint:none</javadoc.opts>
            </properties>
        </profile>
    </profiles>
</project>