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

	  <prerequisites>
		    <maven>3.0</maven>
	  </prerequisites>

	  <groupId>info.textgrid</groupId>
	  <artifactId>textgridlab-dependencies</artifactId>
	  <version>1.0.0-SNAPSHOT</version>
	  <packaging>pom</packaging>
	  <name>TextGridLab Dependencies</name>

	  <description>This collects required libraries etc. for the TextGridLab and publishes them to a P2 repository.

In this build, existing OSGi bundles that have been deployed to some maven repository are collected into features and published to an update site that can then be consumed by the lab build or by TextGridLab developers (through the target platform). For OSGifying plain jars, see the OSGification build (tbd).</description>
	  <properties>
      <tycho-version>0.18.0</tycho-version>
      <lab.repository.eclipse>http://download.eclipse.org/releases/indigo</lab.repository.eclipse>
      <lab.repository.dependencies>http://download.digital-humanities.de/updates/repository</lab.repository.dependencies>
		    <tycho.version>${tycho-version}</tycho.version>
		    <tycho.extras.version>${tycho-version}</tycho.extras.version>
		    <jettison.version>1.3.5</jettison.version>
		    <confclient.version>1.4.1</confclient.version>
		    <tgcrud.version>2.8.0</tgcrud.version>
		    <tgsearch.version>3.3.2-SNAPSHOT</tgsearch.version>
		    <tgpublish.version>3.7.4-SNAPSHOT</tgpublish.version>
		    <tgauthclient.version>1.1.0</tgauthclient.version>
		    <metadata-core.version>1.2.1</metadata-core.version>
		    <projectfile.version>1.2.1</projectfile.version>
		    <cxf.version>2.5.5</cxf.version>
		    <neethi.version>3.0.1</neethi.version>
		    <link-rewriter-version>0.4.1-SNAPSHOT</link-rewriter-version>
		    <saxon-version>9.4.0.1_2</saxon-version>
		    <guava-version>15.0</guava-version>
	  </properties>

	  <modules>
		    <module>confclient-feature</module>
		    <module>authclient-feature</module>
		    <module>core-libs-feature</module>
		    <module>projectfile-feature</module>
		    <module>crudclient-feature</module>
		    <!--module>authclient-feature.source</module-->
		<module>tgcrudclient-cxf-fragment</module>
		    <module>tgauthclient-cxf-fragment</module>
		    <module>searchclient-feature</module>
		    <module>tgpublish-client-feature</module>
		    <module>tgrep-core-feature</module>
		    <module>jre16-fragment</module>
		    <module>cxf-feature</module>
		    <module>net.sf.saxon9he.feature</module>
		    <module>p2repository</module>
	  </modules>

	  <repositories>
		    <repository>
			      <id>eclipse-indigo</id>
			      <layout>p2</layout>
			      <url>${lab.repository.eclipse}</url>
		    </repository>

                <repository>
                        <id>nexus.dariah</id>
                        <name>DARIAH Nexus Public Repository</name>
                        <url>http://dev.dariah.eu/nexus/content/groups/public</url>
                        <releases>
                                <enabled>true</enabled>
                        </releases>
                        <snapshots>
                                <enabled>true</enabled>
                        </snapshots>
                </repository>

                <repository>
                        <id>dh.nexus.releases</id>
                        <name>Cophi Nexus Releases</name>
                        <url>http://dev.digital-humanities.de/nexus/content/repositories/releases</url>
                        <releases>
                                <enabled>true</enabled>
                        </releases>
                        <snapshots>
                                <enabled>false</enabled>
                        </snapshots>
                </repository>
                <repository>
                        <id>dh.nexus.snapshots</id>
                        <name>Cophi Nexus snapshots</name>
                        <url>http://dev.digital-humanities.de/nexus/content/repositories/snapshots</url>
                        <releases>
                                <enabled>true</enabled>
                        </releases>
                        <snapshots>
                                <enabled>true</enabled>
                        </snapshots>
                </repository>


	  </repositories>


	  <dependencies>
		<!-- confclient -->
		<dependency>
			      <groupId>info.textgrid.middleware</groupId>
			      <artifactId>confclient</artifactId>
			      <version>${confclient.version}</version>
		    </dependency>

		    <!-- tgcrud client -->
		<dependency>
			      <groupId>info.textgrid.middleware</groupId>
			      <artifactId>tgcrud-client</artifactId>
			      <version>${tgcrud.version}</version>
		    </dependency>
		    <!--dependency>
			<groupId>info.textgrid.middleware</groupId>
			<artifactId>tgcrud-client</artifactId>
			<version>${tgcrud.version}</version>
			<classifier>sources</classifier>
		</dependency-->
		<!-- tgauth client -->
		<dependency>
			      <groupId>info.textgrid.middleware</groupId>
			      <artifactId>tgauth-client</artifactId>
			      <version>${tgauthclient.version}</version>
		    </dependency>
		    <!--dependency>
			<groupId>info.textgrid.middleware</groupId>
			<artifactId>tgauth-client</artifactId>
			<version>${tgauthclient.version}</version>
			<classifier>sources</classifier>
		</dependency-->

		<!-- tgsearch client -->
		<dependency>
			      <groupId>info.textgrid.middleware</groupId>
			      <artifactId>tgsearch-client</artifactId>
			      <version>${tgsearch.version}</version>
		    </dependency>
		    <dependency>
			      <groupId>info.textgrid.middleware</groupId>
			      <artifactId>tgsearch-api</artifactId>
			      <version>${tgsearch.version}</version>
		    </dependency>

		    <!-- tgpublish client -->
		<dependency>
			      <groupId>de.langzeitarchivierung.kolibri</groupId>
			      <artifactId>kolibri-tgpublish-client</artifactId>
			      <version>${tgpublish.version}</version>
			      <!--version>1.5.1-SNAPSHOT</version-->
		</dependency>

		    <!-- textgrid common dependencies -->
		<dependency>
			      <groupId>info.textgrid.namespaces</groupId>
			      <artifactId>metadata-core-jaxb</artifactId>
			      <version>${metadata-core.version}</version>
		    </dependency>
		    <dependency>
			      <groupId>info.textgrid.namespaces</groupId>
			      <artifactId>projectfile-jaxb</artifactId>
			      <version>${projectfile.version}</version>
		    </dependency>

		    <!-- 3rd party dependencies -->
		<dependency>
			      <groupId>org.apache.cxf</groupId>
			      <artifactId>cxf-bundle</artifactId>
			      <version>${cxf.version}</version>
		    </dependency>
		    <dependency>
			      <groupId>org.codehaus.jettison</groupId>
			      <artifactId>jettison</artifactId>
			      <version>${jettison.version}</version>
		    </dependency>
		    <dependency>
			      <groupId>org.apache.ws.commons.axiom</groupId>
			      <artifactId>axiom-api</artifactId>
			      <version>1.2.12</version>
		    </dependency>
		    <dependency>
			      <groupId>org.apache.ws.commons.axiom</groupId>
			      <artifactId>axiom-impl</artifactId>
			      <version>1.2.12</version>
		    </dependency>
		    <dependency>
			      <groupId>org.apache.servicemix.bundles</groupId>
			      <artifactId>org.apache.servicemix.bundles.jaxen</artifactId>
			      <version>1.1.3_1</version>
		    </dependency>
		    <dependency>
			      <groupId>org.apache.servicemix.specs</groupId>
			      <artifactId>org.apache.servicemix.specs.jsr311-api-1.1.1</artifactId>
			      <version>1.9.0</version>
		    </dependency>
		    <!--dependency>
			<groupId>org.apache.servicemix.specs</groupId>
			<artifactId>org.apache.servicemix.specs.jaxws-api-2.2</artifactId>
			<version>1.9.0</version>
		</dependency>
		<dependency>
			<groupId>org.apache.servicemix.specs</groupId>
			<artifactId>org.apache.servicemix.specs.jaxb-api-2.2</artifactId>
			<version>1.9.0</version>
		</dependency>
		<dependency>
			<groupId>org.apache.servicemix.bundles</groupId>
			<artifactId>org.apache.servicemix.bundles.jaxb-impl</artifactId>
			<version>2.2.1.1_1</version>
		</dependency-->

		<dependency>
			      <groupId>org.apache.neethi</groupId>
			      <artifactId>neethi</artifactId>
			      <version>${neethi.version}</version>
		    </dependency>

		    <dependency>
		       <groupId>info.textgrid.utils</groupId>
		       <artifactId>link-rewriter-core</artifactId>
		       <version>${link-rewriter-version}</version>
		    </dependency>

		    <dependency>
			  <groupId>org.apache.servicemix.bundles</groupId>
			  <artifactId>org.apache.servicemix.bundles.saxon</artifactId>
			  <version>${saxon-version}</version>
		    </dependency>

		    <dependency>
			  <groupId>com.google.guava</groupId>
			  <artifactId>guava</artifactId>
			  <version>${guava-version}</version>
		    </dependency>


	      </dependencies>

	  <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>tycho-source-plugin</artifactId>
				        <version>${tycho.version}</version>
				        <executions>
					          <execution>
						            <id>plugin-source</id>
						            <goals>
							              <goal>plugin-source</goal>
						            </goals>
					          </execution>
				        </executions>
			      </plugin>
			      <!--plugin>
				<groupId>org.eclipse.tycho.extras</groupId>
				<artifactId>tycho-source-feature-plugin</artifactId>
				<version>${tycho-extras.version}</version>
				<executions>
					<execution>
						<id>source-feature</id>
						<phase>package</phase>
						<goals>
							<goal>source-feature</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-p2-plugin</artifactId>
        <version>${tycho.version}</version>
        <executions>
          <execution>
            <id>attached-p2-metadata</id>
            <phase>package</phase>
            <goals>
              <goal>p2-metadata</goal>
            </goals>
          </execution>
        </executions>
      </plugin-->
			<plugin>
			         <groupId>org.eclipse.tycho</groupId>
			         <artifactId>target-platform-configuration</artifactId>
			         <version>${tycho.version}</version>
			         <configuration>
				           <resolver>p2</resolver>
				           <pomDependencies>consider</pomDependencies>
				           <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>
		    </plugins>
		</build>
		<organization>
		    <name>TextGrid</name>
		    <url>http://www.textgrid.de/</url>
		</organization>
		<issueManagement>
		    <system>jira</system>
		    <url>https://develop.sub.uni-goettingen.de/jira</url>
		</issueManagement>
		<ciManagement>
		    <system>Jenkins</system>
		    <url>http://dev.digital-humanities.de/ci</url>
		</ciManagement>
	    </project>