<?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>io.github.liveontologies</groupId>
	<artifactId>elk-parent</artifactId>
	<version>0.6.0</version>
	<packaging>pom</packaging>

	<name>ELK Reasoner</name>
	<description>A Java-based ontology reasoner for the OWL 2 EL profile.</description>
	<url>https://github.com/liveontologies/elk-reasoner</url>

	<scm>
		<connection>scm:git:https://github.com/liveontologies/elk-reasoner.git</connection>
		<developerConnection>scm:git:git@github.com:liveontologies/elk-reasoner.git</developerConnection>
		<url>https://github.com/liveontologies/elk-reasoner</url>
		<tag>HEAD</tag>
	</scm>

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

	<organization>
		<name>Live Ontologies Project</name>
		<url>http://liveontologies.org</url>
	</organization>

	<inceptionYear>2011</inceptionYear>

	<developers>
		<developer>
			<id>yevgeny</id>
			<name>Yevgeny Kazakov</name>
			<url>https://github.com/ykazakov</url>
		</developer>
		<developer>
			<id>markus</id>
			<name>Markus Kroetzsch</name>
			<url>https://github.com/mkroetzsch</url>
		</developer>
		<developer>
			<id>frantisek</id>
			<name>Frantisek Simancik</name>
			<url>https://github.com/fsimancik</url>
		</developer>
		<developer>
			<id>pavel</id>
			<name>Pavel Klinov</name>
			<url>https://github.com/klinovp</url>
		</developer>
		<developer>
			<id>petesko</id>
			<name>Peter Skocovsky</name>
			<url>https://github.com/aifargonos</url>
		</developer>
		<developer>
			<id>saa</id>
			<name>Alexander Stupnikov</name>
			<url>https://github.com/saarus72</url>
		</developer>
	</developers>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<owlapi.version>5.1.20</owlapi.version>
		<protege-proof-explanation.version>0.1.0</protege-proof-explanation.version>
		<!-- try to keep the version low for backward compatibility -->
		<protege.version>5.5.0</protege.version>
		<java.required.version>8</java.required.version>
		<slf4j.version>2.0.13</slf4j.version>
		<logback.version>1.3.14</logback.version>
		<elk.wiki>https://github.com/liveontologies/elk-reasoner/wiki</elk.wiki>
		<protege.pluginId>org.semanticweb.elk</protege.pluginId>
		<protege.update.url>https://raw.githubusercontent.com/liveontologies/elk-reasoner/release/${project.parent.artifactId}/${project.artifactId}</protege.update.url>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    	<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
	</properties>

	<reporting>
		<plugins>
			<plugin>
				<artifactId>maven-project-info-reports-plugin</artifactId>
				<version>3.5.0</version>
			</plugin>
			<plugin>
				<artifactId>maven-javadoc-plugin</artifactId>
				<reportSets>
					<reportSet>
						<id>aggregate</id>
						<reports>
							<report>aggregate</report>
						</reports>
						<configuration>
							<source>8</source>
							<show>public</show>
							<maxmemory>2g</maxmemory>
							<minmemory>128m</minmemory>
						</configuration>
					</reportSet>
				</reportSets>
			</plugin>
		</plugins>
	</reporting>

	<distributionManagement>
		<downloadUrl>https://github.com/liveontologies/${project.artifactId}/releases</downloadUrl>
		<snapshotRepository>
			<id>ossrh-snapshots</id>
			<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>

	<issueManagement>
		<system>GitHub</system>
		<url>https://github.com/liveontologies/${project.artifactId}/issues/</url>
	</issueManagement>

	<mailingLists>
		<mailingList>
			<name>ELK-reasoner announcements</name>
			<subscribe>elk-reasoner-users+subscribe@googlegroups.com</subscribe>
			<archive>http://groups.google.com/group/elk-reasoner-users</archive>
		</mailingList>
		<mailingList>
			<name>ELK-reasoner discussion</name>
			<subscribe>elk-reasoner-discussion+subscribe@googlegroups.com</subscribe>
			<archive>http://groups.google.com/group/elk-reasoner-discussion</archive>
		</mailingList>
		<mailingList>
			<name>ELK-reasoner activities</name>
			<subscribe>elk-reasoner-activities+subscribe@googlegroups.com</subscribe>
			<archive>http://groups.google.com/group/elk-reasoner-activities</archive>
		</mailingList>
	</mailingLists>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<artifactId>maven-assembly-plugin</artifactId>
					<version>3.6.0</version>
				</plugin>
				<plugin>
					<artifactId>maven-changes-plugin</artifactId>
					<version>2.12.1</version>
				</plugin>
				<plugin>
					<artifactId>maven-clean-plugin</artifactId>
					<version>3.3.2</version>
				</plugin>
				<plugin>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.12.1</version>
				</plugin>
				<plugin>
					<artifactId>maven-dependency-plugin</artifactId>
					<version>3.6.1</version>
				</plugin>
				<plugin>
					<artifactId>maven-deploy-plugin</artifactId>
					<version>3.1.1</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-enforcer-plugin</artifactId>
					<version>3.4.1</version>
					<executions>
						<execution>
							<id>enforce-maven</id>
							<goals>
								<goal>enforce</goal>
							</goals>
							<configuration>
								<rules>
									<requireMavenVersion>
										<version>3.5.4</version>
									</requireMavenVersion>
								</rules>
							</configuration>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<artifactId>maven-gpg-plugin</artifactId>
					<version>3.2.4</version>
				</plugin>
				<plugin>
					<artifactId>maven-install-plugin</artifactId>
					<version>3.1.1</version>
				</plugin>				
				<plugin>
					<artifactId>maven-jar-plugin</artifactId>
					<version>3.3.0</version>
				</plugin>
				<plugin>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>3.6.3</version>
				</plugin>
				<plugin>
					<artifactId>maven-source-plugin</artifactId>
					<version>3.3.1</version>
				</plugin>
				<plugin>
					<artifactId>maven-resources-plugin</artifactId>
					<version>3.3.1</version>
				</plugin>
				<plugin>
					<artifactId>maven-site-plugin</artifactId>
					<version>4.0.0-M14</version>
				</plugin>
				<plugin>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>3.2.5</version>
				</plugin>
				<plugin>
					<groupId>org.apache.felix</groupId>
					<artifactId>maven-bundle-plugin</artifactId>
					<version>5.1.9</version>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>build-helper-maven-plugin</artifactId>
					<version>3.4.0</version>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>license-maven-plugin</artifactId>
					<version>2.3.0</version>
					<configuration>
						<verbose>false</verbose>
						<addSvnKeyWords>true</addSvnKeyWords>
						<extraExtensions>
							<g>java</g>
							<jj>java</jj>
						</extraExtensions>
					</configuration>
					<executions>
						<execution>
							<id>first</id>
							<goals>
								<goal>update-file-header</goal>
								<goal>update-project-license</goal>
							</goals>
							<phase>package</phase>
							<configuration>
								<licenseName>apache_v2</licenseName>
								<roots>
									<root>src/main/java</root>
									<root>src/test/java</root>
								</roots>
							</configuration>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</pluginManagement>
		
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>license-maven-plugin</artifactId>
			</plugin>
			<!-- making sure that the sources are always installed so that sources 
				are included in elk-distribution -->
			<plugin>
				<artifactId>maven-source-plugin</artifactId>
				<executions>
					<execution>
						<id>attach-sources</id>
						<phase>verify</phase>
						<goals>
							<goal>jar-no-fork</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<!-- ensure the required java version is used -->
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.${java.required.version}</source>
					<target>1.${java.required.version}</target>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>analyze</id>
						<goals>
							<goal>analyze-only</goal>
						</goals>
						<configuration>
							<failOnWarning>true</failOnWarning>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<!-- ensure a minimum Maven version -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-enforcer-plugin</artifactId>
			</plugin>
			<!-- deploying snapshots to sonatype and releases to maven central -->
			<plugin>
				<groupId>org.sonatype.plugins</groupId>
				<artifactId>nexus-staging-maven-plugin</artifactId>
				<version>1.6.13</version>
				<extensions>true</extensions>
				<configuration>
					<serverId>ossrh</serverId>
					<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
					<autoReleaseAfterClose>false</autoReleaseAfterClose>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<modules>
		<module>elk-bom</module>
		<module>elk-cli</module>
		<module>elk-distribution-parent</module>
		<module>elk-ore-parent</module>
		<module>elk-owlapi</module>
		<module>elk-owl-parent</module>		
		<module>elk-proofs</module>
		<module>elk-reasoner</module>
		<module>elk-util-parent</module>
	</modules>

	<profiles>
		<!-- compile only modules for the provided version of java -->
		<profile>
			<id>java-8+</id>
			<activation>
				<jdk>[1.8,)</jdk>
			</activation>
			<modules>
				<module>elk-protege</module>
			</modules>
		</profile>
		<profile>
			<!-- activated only when staging a release -->
			<id>release</id>
			<build>
				<plugins>
					<!-- sign released artifacts using PGP, required by maven central -->
					<plugin>
						<artifactId>maven-gpg-plugin</artifactId>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<!-- generate javadocs, required by maven central -->
					<plugin>
						<artifactId>maven-javadoc-plugin</artifactId>
						<executions>
							<execution>
								<id>attach-javadocs</id>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<maxmemory>512m</maxmemory>
									<minmemory>128m</minmemory>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

</project>