<?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">
    <!-- GWT-Maven archetype generated POM -->
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.googlecode.gwt-cropper</groupId>
    <artifactId>gwt-crop</artifactId>
    <packaging>jar</packaging>
    <version>0.5.5</version>
    <name>GWT Cropper</name>
    <description>GWT plugin for image cropping</description>
    <url>http://gwt-cropper.co.uk/</url>

    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>9</version>
    </parent>

    <issueManagement>
        <system>GitHub Issue Tracking</system>
        <url>https://github.com/w32blaster/gwt-cropper/issues</url>
    </issueManagement>

    <developers>
        <developer>
            <name>Ilja Hämäläinen</name>
            <organization>Comptel Corp.</organization>
            <organizationUrl>http://www.comptel.com/</organizationUrl>
            <email>ilja.hamalainen@gmail.com</email>
            <timezone>2</timezone>
        </developer>
    </developers>

    <contributors>

        <contributor>
            <name>Timo Höpfner</name>
            <url>https://github.com/thoepfner</url>
            <organizationUrl>https://github.com/projectwonder</organizationUrl>
        </contributor>

        <contributor>
            <name>Dawid Dziewulski</name>
        </contributor>

        <contributor>
            <name>enginer</name>
            <url>https://github.com/enginer</url>
        </contributor>

    </contributors>

    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <scm>
        <connection>scm:git:git@github.com:w32blaster/gwt-cropper.git</connection>
        <developerConnection>scm:git:git@github.com:w32blaster/gwt-cropper.git</developerConnection>
        <url>https://github.com/w32blaster/gwt-cropper/commits/master</url>
    </scm>

    <properties>
        <gwtVersion>2.5.0</gwtVersion>
        <java.version>1.7</java.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-user</artifactId>
            <version>${gwtVersion}</version>
            <scope>provided</scope>
        </dependency>

        <!-- test -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>com.google.gwt.gwtmockito</groupId>
            <artifactId>gwtmockito</artifactId>
            <version>1.1.5</version>
            <scope>test</scope>
        </dependency>

    </dependencies>

    <build>

        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-webdav-jackrabbit</artifactId>
                <version>1.0-beta-7</version>
            </extension>
        </extensions>

        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/client/**</include>
                    <include>**/*.gwt.xml</include>
                </includes>
            </resource>
        </resources>

        <plugins>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                    <preparationGoals>clean install</preparationGoals>
                    <goals>deploy</goals>
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <version>2.5.1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>resources</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.3</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                        <configuration>
                            <additionalparam>-Xdoclint:none</additionalparam>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

        </plugins>

    </build>

    <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>
                        <version>1.1</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

    <profile>
        <id>generate-javadocapi</id>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>2.9</version>
                    <configuration>
                        <docfilessubdirs>true</docfilessubdirs>
                        <overview>${basedir}/overview.html</overview>
                        <javadocDirectory>${basedir}/src/main/javadoc</javadocDirectory>
                        <stylesheetfile>${basedir}/src/main/javadoc/stylesheet-chrome.css</stylesheetfile>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    </profile>

    </profiles>


</project>
