<?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>

	<parent>
		<groupId>net.sansa-stack</groupId>
		<artifactId>sansa-parent</artifactId>
		<version>0.7.1</version>
	</parent>

	<artifactId>sansa-inference-parent_2.11</artifactId>
	<packaging>pom</packaging>
	<name>Inference API - Parent</name>

	<description>An inference layer for RDF and OWL</description>

	<organization>
		<name>Smart Data Analytics (SDA) Research Group</name>
		<url>http://sda.tech/</url>
	</organization>

	<inceptionYear>2016</inceptionYear>

	<url>http://sansa-stack.net/</url>

	<licenses>
		<license>
			<name>Apache License 2.0</name>
			<url>https://www.apache.org/licenses/LICENSE-2.0</url>
			<distribution>repo</distribution>
		</license>
	</licenses>

	<scm>
		<connection>scm:git:https://github.com/SANSA-Stack/SANSA-Inference.git</connection>
		<url>https://github.com/SANSA-Stack/SANSA-Inference</url>
		<developerConnection>scm:git:https://github.com/SANSA-Stack/SANSA-Inference.git</developerConnection>
	</scm>


	<developers>
		<developer>
			<id>lorenz</id>
			<name>Lorenz Buehmann</name>
			<email>buehmann@informatik.uni-leipzig.de</email>
			<organization>AKSW, Department of Computer Science, University of Leipzig</organization>
			<organizationUrl>http://www.aksw.org</organizationUrl>
			<roles>
				<role>developer</role>
			</roles>
			<timezone>0</timezone>
		</developer>
	</developers>

	<issueManagement>
		<system>GitHub</system>
		<url>https://github.com/SANSA-Stack/SANSA-Inference</url>
	</issueManagement>

	<modules>
		<module>sansa-inference-common</module>
		<module>sansa-inference-flink</module>
		<module>sansa-inference-spark</module>
		<module>sansa-inference-tests</module>
	</modules>


	<dependencyManagement>
		<dependencies>
			<!-- RDF Layer -->
			<dependency>
				<groupId>${project.groupId}</groupId>
				<artifactId>sansa-rdf-spark_${scala.binary.version}</artifactId>
				<version>${project.version}</version>
				<!-- we have to exclude an old version here transitively included by 
					a Kafka dependency of Spark Don't know how Spark 2.3 is able to work with 
					Kafka 0.10 right now ... -->
				<exclusions>
					<exclusion>
						<groupId>net.jpountz.lz4</groupId>
						<artifactId>lz4</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
			<!-- SANSA OWL -->
			<dependency>
				<groupId>${project.groupId}</groupId>
				<artifactId>sansa-owl-spark_${scala.binary.version}</artifactId>
				<version>${project.version}</version>
			</dependency>
			<!-- Query Layer -->
			<dependency>
				<groupId>${project.groupId}</groupId>
				<artifactId>sansa-query-spark_${scala.binary.version}</artifactId>
				<version>${project.version}</version>
			</dependency>

		</dependencies>
	</dependencyManagement>

	<distributionManagement>
		<repository>
			<id>maven.aksw.internal</id>
			<name>AKSW Release Repository</name>
			<url>http://maven.aksw.org/archiva/repository/internal</url>
		</repository>
		<snapshotRepository>
			<id>maven.aksw.snapshots</id>
			<name>AKSW Snapshot Repository</name>
			<url>http://maven.aksw.org/archiva/repository/snapshots</url>
		</snapshotRepository>
	</distributionManagement>

	<repositories>
		<repository>
			<id>oss-sonatype</id>
			<name>oss-sonatype</name>
			<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>apache-snapshot</id>
			<name>Apache repository (snapshots)</name>
			<url>https://repository.apache.org/content/repositories/snapshots/</url>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>maven.aksw.snapshots</id>
			<name>AKSW Snapshot Repository</name>
			<url>http://maven.aksw.org/archiva/repository/snapshots</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
	</repositories>

	<profiles>
		<!-- the profile used for deployment to Sonatype Maven repository -->
		<profile>
			<!-- for Maven Central deployment -->
			<id>release</id>
			<distributionManagement>
				<repository>
					<id>ossrh</id>
					<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
				</repository>
			</distributionManagement>
			<build>
				<plugins>
					<plugin>
						<groupId>net.alchim31.maven</groupId>
						<artifactId>scala-maven-plugin</artifactId>
						<version>3.2.2</version>
						<executions>
							<execution>
								<goals>
									<goal>compile</goal>
									<goal>testCompile</goal>
								</goals>
								<configuration>
									<scalaVersion>${scala.version}</scalaVersion>
									<recompileMode>incremental</recompileMode>
									<useZincServer>true</useZincServer>
									<args>
										<arg>-unchecked</arg>
										<arg>-deprecation</arg>
										<arg>-feature</arg>
										<arg>-dependencyfile</arg>
										<arg>${project.build.directory}/.scala_dependencies</arg>
										<arg>-Xmax-classfile-name</arg>
										<arg>128</arg>
									</args>
									<jvmArgs>
										<jvmArg>-Xms1024m</jvmArg>
										<jvmArg>-Xmx1024m</jvmArg>
										<jvmArg>-XX:PermSize=${PermGen}</jvmArg>
										<jvmArg>-XX:MaxPermSize=${MaxPermGen}</jvmArg>
										<jvmArg>-XX:ReservedCodeCacheSize=${CodeCacheSize}</jvmArg>
									</jvmArgs>
									<!--<javacArgs> -->
									<!--<javacArg>-source</javacArg> -->
									<!--<javacArg>${java.version}</javacArg> -->
									<!--<javacArg>-target</javacArg> -->
									<!--<javacArg>${java.version}</javacArg> -->
									<!--<javacArg>-Xlint:all,-serial,-path</javacArg> -->
									<!--</javacArgs> -->

								</configuration>
							</execution>
							<execution>
								<id>attach-javadocs</id>
								<goals>
									<goal>doc-jar</goal>
								</goals>
							</execution>
						</executions>

					</plugin>

					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<executions>
							<execution>
								<phase>verify</phase>
								<id>attach-sources</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>

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

					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.6</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
								<configuration>
									<keyname>AKSW</keyname>
									<passphraseServerId>${gpg.keyname}</passphraseServerId>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.sonatype.plugins</groupId>
						<artifactId>nexus-staging-maven-plugin</artifactId>
						<version>1.6.8</version>
						<extensions>true</extensions>
						<configuration>
							<serverId>ossrh</serverId>
							<nexusUrl>https://oss.sonatype.org/</nexusUrl>
							<autoReleaseAfterClose>true</autoReleaseAfterClose>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- for Scalastyle plugin -->
		<profile>
			<id>root-dir</id>
			<activation>
				<file>
					<exists>${project.basedir}/../../scalastyle-config.xml</exists>
				</file>
			</activation>
			<properties>
				<scalastyle.config.path>${project.basedir}/../scalastyle-config.xml</scalastyle.config.path>
			</properties>
		</profile>
	</profiles>
</project>
