<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <modelVersion>4.0.0</modelVersion>
    <groupId>info.textgrid.lab</groupId>
    <artifactId>ttle</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>pom</packaging>
    <modules>
	<module>info.textgrid.lab.ttle</module>
	<module>info.textgrid.lab.ttle.feature</module>
	<module>ttle-repository</module>
    </modules>

    <properties>
	<tycho-version>0.14.1</tycho-version>
	<lab.repository.root>http://download.digital-humanities.de/updates/textgridlab</lab.repository.root>
	<lab.repository.core>${lab.repository.root}/core</lab.repository.core>
	<lab.repository.xmleditor>${lab.repository.root}/xmleditor</lab.repository.xmleditor>
    </properties>


    <repositories>

	<repository>
	    <id>lab-core</id>
	    <layout>p2</layout>
	    <url>${lab.repository.core}</url>
	</repository>

	<repository>
	    <id>lab-xmleditor</id>
	    <layout>p2</layout>
	    <url>${lab.repository.xmleditor}</url>
	</repository>

	<repository>
	    <id>indigo</id>
	    <layout>p2</layout>
	    <url>http://download.eclipse.org/releases/indigo</url>
	</repository>

	<repository>
	    <id>textgridlab-dependencies</id>
	    <layout>p2</layout>
	    <url>http://download.digital-humanities.de/updates/repository</url>
	</repository>

	<repository>
	    <id>guava-osgi</id>
	    <layout>p2</layout>
	    <url>http://download.digital-humanities.de/updates/repository</url>
	</repository>

	<repository>
	    <id>orbit</id>
	    <layout>p2</layout>
	    <url>http://download.eclipse.org/tools/orbit/downloads/drops/R20120119162704/repository/</url>
	</repository>

    </repositories>



    <build>
	<plugins>
	    <plugin>
		<groupId>org.eclipse.tycho</groupId>
		<artifactId>tycho-maven-plugin</artifactId>
		<version>${tycho-version}</version>
		<extensions>true</extensions>
	    </plugin>
	    <plugin>
		<groupId>org.eclipse.tycho</groupId>
		<artifactId>target-platform-configuration</artifactId>
		<version>${tycho-version}</version>
		<configuration>
		    <resolver>p2</resolver>
		    <ignoreTychoRepositories>false</ignoreTychoRepositories>
		    <!--target>
		      <artifact>
			  <groupId>info.textgrid.lab</groupId>
			  <artifactId>target-platform</artifactId>
			  <version>0.0.1-SNAPSHOT</version>
			  <classifier>TextGridLab-indigo</classifier>
		      </artifact>
		  </target-->
		  <environments>
		      <environment>
			  <os>linux</os>
			  <ws>gtk</ws>
			  <arch>x86</arch>
		      </environment>
		      <environment>
			  <os>linux</os>
			  <ws>gtk</ws>
			  <arch>x86_64</arch>
		      </environment>
		      <environment>
			  <os>win32</os>
			  <ws>win32</ws>
			  <arch>x86</arch>
		      </environment>
		      <environment>
			  <os>win32</os>
			  <ws>win32</ws>
			  <arch>x86_64</arch>
		      </environment>
		      <environment>
			  <os>macosx</os>
			  <ws>cocoa</ws>
			  <arch>x86_64</arch>
		      </environment>
		  </environments>
	      </configuration>
	  </plugin>

	  <plugin>
	      <groupId>org.eclipse.tycho</groupId>
	      <artifactId>tycho-compiler-plugin</artifactId>
	      <version>${tycho-version}</version>
	      <configuration>
		  <source>1.6</source>
		  <target>1.6</target>
	      </configuration>
	  </plugin>
      </plugins>
  </build>

  <profiles>
    <profile>
        <id>sign</id>
        <activation>
            <property>
                <name>jarsigner.alias</name>
            </property>
        </activation>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jarsigner-plugin</artifactId>
                    <version>1.2</version>
                    <executions>
                        <execution>
                            <id>sign</id>
                            <goals>
                                <goal>sign</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
    </profile>
  </profiles>
</project>