<?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">
    <modelVersion>4.0.0</modelVersion>
    <groupId>de.swm</groupId>
    <artifactId>swm-mobile-base</artifactId>
    <packaging>pom</packaging>
    <version>3.1</version>
    <name>SWM Mobile project collection</name>
    <description>This is the common project for all smw mobile project collections</description>
    <inceptionYear>2011</inceptionYear>
    <url>https://code.google.com/p/swm-mobile/</url>
    <licenses>
        <license>
            <name>Apache License Version 2</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
        </license>
    </licenses>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <guice.version>3.0</guice.version>
        <gwt.version>2.6.1</gwt.version>
        <gwt.plugin.version>2.6.1</gwt.plugin.version>
        <!-- 1) Fuer release auskommentieren (schritt 1 von 3)-->
        <maven.javadoc.skip>false</maven.javadoc.skip>
    </properties>
    <scm>
        <connection>scm:git:git@github.com:SWM-IT/swm-mobile.git</connection>
        <developerConnection>scm:git:git@github.com:SWM-IT/swm-mobile.git</developerConnection>
        <url>git@github.com/SWM-IT/swm-mobile.git</url>
    </scm>
    <organization>
        <name>SWM</name>
        <url>http://www.swm.de</url>
    </organization>
    <developers>
        <developer>
            <id>wiese.daniel</id>
            <name>Daniel Wiese</name>
            <email>wiese.daniel@swm.de</email>
            <organization>SWM</organization>
            <organizationUrl>http://www.swm.de</organizationUrl>
            <roles>
                <role>architect</role>
                <role>developer</role>
            </roles>
        </developer>
    </developers>
    <dependencyManagement>
        <dependencies>
            <!-- START SUBPROJEKTE -->
            <dependency>
                <groupId>de.swm</groupId>
                <artifactId>swm-gwt-client</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>de.swm</groupId>
                <artifactId>swm-mobile</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>de.swm</groupId>
                <artifactId>swm-mobile-kitchensink</artifactId>
                <version>${project.version}</version>
            </dependency>
            <!-- ENDE SUBPROJEKTE -->
            <!-- Open Street-Map integration -->
            <dependency>
                <groupId>org.gwtopenmaps.openlayers</groupId>
                <artifactId>gwt-openlayers-client</artifactId>
                <version>0.8</version>
            </dependency>
            <!-- Enable to use GIN as DI framework -->
            <dependency>
                <groupId>com.google.inject</groupId>
                <artifactId>guice</artifactId>
                <version>${guice.version}</version>
                <scope>provided</scope>
            </dependency>
            <!-- Piriti for GWT-JSON-Mapping http://code.google.com/p/piriti/ -->
            <dependency>
                <groupId>name.pehl</groupId>
                <artifactId>piriti-user</artifactId>
                <scope>provided</scope>
                <version>0.10</version>
            </dependency>
            <dependency>
                <groupId>javax.inject</groupId>
                <artifactId>javax.inject</artifactId>
                <version>1</version>
                <scope>provided</scope>
            </dependency>
            <!-- GWT Event bus -->
            <dependency>
                <groupId>com.google.gwt.eventbinder</groupId>
                <artifactId>eventbinder</artifactId>
                <version>1.0.2</version>
            </dependency>
            <!--http://gwt-mobile-webkit.googlecode.com/svn/repo/  -->
            <dependency>
                <groupId>com.google.code.gwt-mobile-webkit</groupId>
                <artifactId>gwt-html5-database</artifactId>
                <version>1.5.1.gwt2</version>
                <scope>provided</scope>
            </dependency>
            <!-- GWT dependencies (from maven "central" repo). -->
            <dependency>
                <groupId>com.google.gwt</groupId>
                <artifactId>gwt-servlet</artifactId>
                <version>${gwt.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.google.gwt</groupId>
                <artifactId>gwt-user</artifactId>
                <version>${gwt.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.google.gwt</groupId>
                <artifactId>gwt-dev</artifactId>
                <version>${gwt.version}</version>
                <scope>provided</scope>
            </dependency>
            <!-- Gin 1.5 -->
            <dependency>
                <groupId>com.google.gwt.inject</groupId>
                <artifactId>gin</artifactId>
                <version>2.1.2</version>
                <scope>provided</scope>
            </dependency>
            <!-- Testing -->
            <dependency>
                <groupId>org.easymock</groupId>
                <artifactId>easymock</artifactId>
                <version>3.0</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.5</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>joda-time</groupId>
                <artifactId>joda-time</artifactId>
                <version>2.0</version>
                <scope>test</scope>
            </dependency>
            <!-- zur Emulation von Json reader / Writer -->
            <dependency>
                <groupId>com.thoughtworks.xstream</groupId>
                <artifactId>xstream</artifactId>
                <scope>test</scope>
                <version>1.3.1</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>2.2.1</version>
                    <executions>
                        <execution>
                            <id>attach-sources</id>
                            <goals>
                                <goal>jar-no-fork</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>2.9.1</version>
                    <executions>
                        <execution>
                            <id>attach-javadocs</id>
                            <goals>
                                <goal>jar</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <!-- END: Plugins for maven central distribution -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.1</version>
                    <configuration>
                        <encoding>UTF-8</encoding>
                        <source>1.7</source>
                        <target>1.7</target>
                    </configuration>
                </plugin>
                <plugin>
                    <!-- lokale Konfiguration asusschliessen -->
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>2.3.1</version>
                    <configuration>
                        <excludes>
                            <value>**/local/**/*</value>
                        </excludes>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <profiles>
        <profile>
            <id>central-deployment</id>
            <build>
                <plugins>
                    <!-- START: Plugins for maven central distribution -->
                    <plugin>
                        <groupId>org.sonatype.plugins</groupId>
                        <artifactId>nexus-staging-maven-plugin</artifactId>
                        <version>1.6.1</version>
                        <extensions>true</extensions>
                        <configuration>
                            <serverId>ossrh</serverId>
                            <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                            <autoReleaseAfterClose>true</autoReleaseAfterClose>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>1.5</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <!-- 2) Fuer das release: verify einstellen -->
                                <phase>verify</phase>
                                <!-- Fuer normale benutzung auf deploy stellen (dann braucht nicht jeder das pgp plugin) -->
                                <!--<phase>deploy</phase>-->
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
            <!-- Central Distribution -->
            <distributionManagement>
                <snapshotRepository>
                    <id>ossrh</id>
                    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
                </snapshotRepository>
                <repository>
                    <id>ossrh</id>
                    <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
                </repository>
            </distributionManagement>
        </profile>
        <profile>
            <id>swm-deployment</id>
            <!-- Central Distribution -->
            <distributionManagement>
                <repository>
                    <id>SWMRepository</id>
                    <name>SWM-Main-Repository</name>
                    <!--<url>file:///Users/Shared/Development/swm-mobile/repository</url>-->
                    <url>http://ci.intra.swm.de/nexus/content/repositories/SWM-S-IP-AN-Repository</url>
                </repository>
                <snapshotRepository>
                    <id>SWMSnapshots</id>
                    <name>SWM Snapshots</name>
                    <!--<url>file:///Users/Shared/Development/swm-mobile/repository</url>-->
                    <url>http://nexus.intra.swm.de/nexus/content/repositories/swm-snapshot-repo/</url>
                </snapshotRepository>
            </distributionManagement>
        </profile>
    </profiles>
    <modules>
        <module>swm-gwt</module>
        <module>swm-mobile</module>
        <!-- 2) Fuer das release: kitchensink raus (noch nicht registriert) -->
        <module>swm-mobile-kitchensink</module>
    </modules>
</project>