<?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>de.cit-ec.scie</groupId>
	<artifactId>webservice</artifactId>
	<version>2.0</version>
	<packaging>jar</packaging>
	<name>Webservice</name>
	<description>Module providing the webservice interface based on the Jetty 
		embedded webserver and the FreeMarker template engine. Defines a simple 
		format for providing textual annotations and produced output in HTML or 
		JSON. This module has no dependencies to the other SCIE modules (except 
		for the PDF text extractor) or the UIMA framework and thus can be used 
		in any context, where text is annotated by an algorithm and should be 
		presented to an end user.</description>
	<url>http://openresearch.cit-ec.de/projects/scie/</url>
	<licenses>
		<license>
			<name>The GNU Affero General Public License, Version 3</name>
			<url>https://gnu.org/licenses/agpl.html</url>
		</license>
	</licenses>
	<developers>
		<developer>
			<name>Raphael Dickfelder</name>
			<organization>Centre of Excellence - Cognitive Interaction Technology (CITEC), 
				Faculty of Technology, 
				Bielefeld University</organization>
			<organizationUrl>https://www.cit-ec.de/</organizationUrl>
		</developer>
		<developer>
			<name>Jan Göpfert</name>
			<organization>Centre of Excellence - Cognitive Interaction Technology (CITEC), 
				Faculty of Technology, 
				Bielefeld University</organization>
			<organizationUrl>https://www.cit-ec.de/</organizationUrl>
		</developer>
		<developer>
			<name>Benjamin Paaßen</name>
			<email>bpaassen@techfak.uni-bielefeld.de</email>
			<organization>Centre of Excellence - Cognitive Interaction Technology (CITEC), 
				Faculty of Technology, 
				Bielefeld University</organization>
			<organizationUrl>https://www.cit-ec.de/</organizationUrl>
		</developer>
		<developer>
			<name>Andreas Stöckel</name>
			<email>astoecke@techfak.uni-bielefeld.de</email>
			<organization>Centre of Excellence - Cognitive Interaction Technology (CITEC), 
				Faculty of Technology, 
				Bielefeld University</organization>
			<organizationUrl>https://www.cit-ec.de/</organizationUrl>
		</developer>
	</developers>
	<scm>
		<connection>scm:git:https://opensource.cit-ec.de/git/scie</connection>
		<developerConnection>scm:git:https://opensource.cit-ec.de/git/scie</developerConnection>
		<url>https://opensource.cit-ec.de/projects/scie/repository/revisions/master/show/modules/webservice</url>
	</scm>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<maven.compiler.source>1.8</maven.compiler.source>
		<maven.compiler.target>1.8</maven.compiler.target>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.eclipse.jetty</groupId>
			<artifactId>jetty-server</artifactId>
			<version>9.2.2.v20140723</version>
		</dependency>
		<dependency>
			<groupId>org.freemarker</groupId>
			<artifactId>freemarker</artifactId>
			<version>2.3.20</version>
		</dependency>
		<dependency>
			<groupId>org.json</groupId>
			<artifactId>json</artifactId>
			<version>20140107</version>
		</dependency>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>pdf-extractor</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.11</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
	
	<distributionManagement>
		<snapshotRepository>
			<id>ossrh</id>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>
	
	<!-- This is a special profile for deploying a version, which generates
	everything the mvn central repository requires. For all non-deploying builds
	this is irrelevant. -->
	<profiles>
		<profile> 
			<id>release</id>
			<build>
				<plugins>
					<!-- Nexus Staging Plugin for Deploying to central repository -->
					<plugin>
						<groupId>org.sonatype.plugins</groupId>
						<artifactId>nexus-staging-maven-plugin</artifactId>
						<version>1.6.3</version>
						<extensions>true</extensions>
						<configuration>
							<serverId>ossrh</serverId>
							<nexusUrl>https://oss.sonatype.org/</nexusUrl>
							<autoReleaseAfterClose>true</autoReleaseAfterClose>
						</configuration>
					</plugin>
					<!-- Maven Source Plugin for generating a jar containing all sources.
					This is required by the maven central repository. -->
					<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>
					<!-- Maven Javadoc Plugin for generating a jar containing all javadoc.
					This is required by the maven central repository. -->
					<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>
					<!-- Maven PGP Plugin for generating a pgp signature of the project.
					This is required by the maven central repository. -->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.5</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>  
		</profile>
	</profiles>
</project>
